WO2019075895A1 - Smart pen, smart pen control method, apparatus, device, and storage medium - Google Patents

Smart pen, smart pen control method, apparatus, device, and storage medium Download PDF

Info

Publication number
WO2019075895A1
WO2019075895A1 PCT/CN2017/116743 CN2017116743W WO2019075895A1 WO 2019075895 A1 WO2019075895 A1 WO 2019075895A1 CN 2017116743 W CN2017116743 W CN 2017116743W WO 2019075895 A1 WO2019075895 A1 WO 2019075895A1
Authority
WO
WIPO (PCT)
Prior art keywords
trackball
smart
pen
smart pen
pulse signal
Prior art date
Application number
PCT/CN2017/116743
Other languages
French (fr)
Chinese (zh)
Inventor
扶宇琳
Original Assignee
广州视源电子科技股份有限公司
广州视臻信息科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州视源电子科技股份有限公司, 广州视臻信息科技有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2019075895A1 publication Critical patent/WO2019075895A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03545Pens or stylus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/0354Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of 2D relative movements between the device, or an operating part thereof, and a plane or surface, e.g. 2D mice, trackballs, pens or pucks
    • G06F3/03549Trackballs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/033Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
    • G06F3/038Control and interface arrangements therefor, e.g. drivers or device-embedded control circuitry
    • G06F3/0383Signal control means within the pointing device

Definitions

  • the invention relates to a smart terminal technology, in particular to a smart pen, a smart pen control method, device, device and storage medium.
  • the existing smart pen interaction mode is mainly based on button triggering, and is supplemented by the air mouse function based on sensor information such as gyroscope and 3D-Gsensor, and the experience in remote control is relatively poor.
  • the user needs to implement the operation of “opening the A application on the desktop”. The user needs to first align the pen to the screen, swing, find the cursor position, continue to swing the arm, move the cursor to the application icon, and press the button on the smart pen. The app opens.
  • the accuracy is affected by the algorithm of the sensor data converted into coordinates, and the sensitivity is also difficult to control. It is difficult for the user to accurately move the cursor to and maintain the operation area of the application icon (the hand is shaken by the cursor). ).
  • the embodiment of the invention provides a method, a device, a device and a storage medium for controlling a smart pen and a smart pen, which can expand the interaction mode of the smart pen, and can provide the user with the comfort while using the remote control. A new operating experience.
  • an embodiment of the present invention provides a smart pen, including: a pen body, a writing pen tip, a track ball, a roller column, a sensor, and a wireless module;
  • the writing pen tip is disposed at a first end of the pen body for movement on a screen of the smart tablet to be detected by the touch component of the smart tablet;
  • the trackball is disposed at a second end of the pen body, and the trackball drives the roller column to rotate;
  • the sensor is disposed inside the pen body and is mounted at an end of the roller column for generating a pulse signal when the trackball rotates;
  • the wireless module is disposed inside the pen body for transmitting data to the smart tablet, wherein the data includes a pulse signal.
  • an embodiment of the present invention provides a method for controlling a smart pen, where the method includes:
  • the movement trajectory of the cursor on the smart tablet screen is controlled according to the rotation direction and the rotation amplitude.
  • the method further includes:
  • the movement trajectory of the writing content on the smart tablet screen is controlled according to the rotation direction and the rotation amplitude of the trackball.
  • the method further includes:
  • the pressure value generated by the trackball is collected by a pressure sensor built in the smart pen;
  • the second preset operation is performed.
  • an embodiment of the present invention further provides a control device for a smart pen, the device comprising:
  • the acquiring module is configured to acquire a pulse signal generated when the trackball rotates by using a sensor built in the smart pen;
  • a determining module configured to determine a rotation direction and a rotation amplitude of the trackball according to the pulse signal
  • the first control module is configured to control a movement track of the cursor on the smart tablet screen according to the rotation direction and the rotation amplitude.
  • a second control module configured to control the writing content on the smart tablet screen according to the rotation direction and the rotation amplitude of the trackball when the triggering operation is acquired after determining the rotation direction and the rotation amplitude of the trackball according to the pulse signal The movement track.
  • An orientation module is configured to collect a current orientation of the smart pen by using a sensor built in the smart pen;
  • An erasing module configured to set a writing mode corresponding to the smart pen to an erasing mode if the current orientation of the smart pen is a first preset direction, in the erasing mode, erasing and The original writing track of the trackball in which the displacement in the vertical and horizontal directions coincides.
  • a pressure collecting module for collecting a pressure value generated by a trackball by a pressure sensor built in the smart pen
  • a first operation execution module configured to perform a first preset operation if the pressure value is greater than the first pressure threshold, and the duration of the pressure value is greater than the first preset time
  • a second operation execution module configured to perform a second preset operation if the pressure value is greater than the first pressure threshold twice and the time interval is less than the second preset time.
  • an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, where the processor implements the program, such as the present invention A method of controlling a smart pen according to any of the embodiments.
  • the embodiment of the present invention further provides a computer readable storage medium, where the computer program is stored, and when the program is executed by the processor, the method for controlling the smart pen according to any one of the embodiments of the present invention is implemented. .
  • the embodiment of the invention adopts a pen body, a writing pen tip, a track ball, a roller column, a sensor and a wireless module;
  • the writing pen tip is disposed at the first end of the pen body for moving on the screen of the smart tablet to be touched by the smart tablet
  • the component detects that the trackball is disposed at the second end of the pen body, and the trackball drives the roller column to rotate;
  • the sensor is disposed inside the pen body and is mounted at the end of the roller column for generating a pulse signal when the trackball rotates
  • the wireless module is disposed inside the pen body and is used for sending data to the smart tablet, wherein the data includes a pulse signal, which can expand the interaction mode of the smart pen, and can improve the user's comfort during remote control while serving the user. Provides a new operating experience.
  • FIG. 1 is a schematic structural diagram of a smart pen according to Embodiment 1 of the present invention.
  • FIG. 2 is a flowchart of a method for controlling a smart pen according to Embodiment 2 of the present invention
  • FIG. 3 is a flowchart of a method for controlling a smart pen according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic structural diagram of a control device for a smart pen according to Embodiment 4 of the present invention.
  • FIG. 5 is a schematic structural diagram of a computer device according to Embodiment 5 of the present invention.
  • FIG. 1 is a schematic structural diagram of a smart pen according to a first embodiment of the present invention.
  • the smart pen can be applied to a smart pen for erasing.
  • the smart pen can be applied to a capacitive touch screen, an infrared touch screen, or an electromagnetic Smart tablet with touch screen.
  • the smart pen includes: a pen body 110, a writing pen tip 120, a trackball 130, a roller column 140, a sensor 150, and a wireless module 160;
  • the writing tip 120 is disposed at a first end of the pen body 110 for movement on a screen of the smart tablet to be detected by the touch component of the smart tablet;
  • the trackball 130 is disposed at the second end of the pen body, and the track ball 130 drives the roller column 140 to rotate;
  • the sensor 150 is disposed inside the pen body and is mounted at an end of the roller column 140 for generating a pulse signal when the trackball 130 rotates;
  • the wireless module 160 is disposed inside the pen body 110 for transmitting data to the smart tablet, wherein the data includes a pulse signal.
  • the first end of the pen body 110 and the second end of the pen body 110 are opposite ends. Specifically, if the first end of the pen body 110 is the lower end of the smart pen, the pen body 110 The second end is the upper end of the smart pen; if the first end of the pen body 110 is the upper end of the smart pen, the second end of the pen body 110 is the lower end of the smart pen.
  • the trackball 130 can be pressed and rotated by a user.
  • FIG. 1 is only a schematic diagram showing the structure of the smart pen. Especially for the roller column 140 and the track ball 130, FIG. 1 does not reflect the actual cooperation relationship.
  • the senor 150 may be a grating signal sensor, and the grating signal sensor is a sensor that measures displacement by using a grating-stacking stripe principle.
  • a pen is placed inside the pen body 110, and the dragging operation of the writing content on the smart tablet can be implemented by combining the pressing switch and the scrolling of the trackball. For example, after pressing the switch on the smart pen, the writing content specified by the cursor is selected. The movement of the selected writing content and the dragging operation are realized by rotating the trackball.
  • the writing tip 120 is used for moving on the screen of the smart tablet, and the writing is realized by detecting the motion by the touch panel of the smart tablet.
  • the screen of the smart tablet is an electromagnetic touch screen
  • the pen body 110 needs to place a magnetic coil, and the writing information of the user is obtained by changing the magnetic field during the movement of the writing pen tip 120 on the screen of the smart tablet;
  • the screen of the smart tablet is an infrared touch screen, and the writing information of the user is obtained by changing the intensity of the infrared light in the tube during the movement of the writing pen tip 120 on the screen of the smart tablet.
  • the smart pen can realize the control of the capacitive touch screen, the infrared touch screen control, and the electromagnetic touch screen.
  • the technical solution of the embodiment of the present invention is a pen body, a writing pen tip, a track ball, a roller column, a sensor and a wireless module; a writing pen tip is disposed at the first end of the pen body for moving on the screen of the smart tablet to be described
  • the touch panel of the smart tablet detects that the trackball is disposed at the second end of the pen body, and the trackball drives the roller column to rotate; the sensor is disposed inside the pen body and is mounted at the end of the roller column for rotating on the trackball
  • the pulse signal is generated;
  • the wireless module is disposed inside the pen body for transmitting data to the smart tablet, wherein the data includes a pulse signal, which can expand the interaction mode of the smart pen, and can improve the comfort of the user during remote control. At the same time, it provides users with a new operating experience.
  • FIG. 2 is a flowchart of a method for controlling a smart pen according to a second embodiment of the present invention.
  • the present embodiment can be applied to the control of a smart pen.
  • the method can be executed by the control device of the smart pen in the embodiment of the present invention.
  • the device may be implemented in software and/or hardware. As shown in FIG. 2, the method specifically includes the following steps:
  • S210 Acquire a pulse signal generated when the trackball rotates by using a sensor built in the smart pen.
  • the sensor built in the smart pen may be a grating signal sensor, and the sensor is mounted on the end of the roller column, and can generate a pulse signal when the roller is rotated by the track ball.
  • the pulse signal generated by the rotation of the trackball is acquired by the sensor built in the smart pen.
  • the rotation direction of the trackball may be a horizontal rotation or a vertical rotation. For example, if the user rotates the trackball to the left, the direction of rotation of the trackball is horizontal to the left; if the user rotates the trackball to the right, the direction of rotation of the trackball is horizontal to the right.
  • the rotation amplitude of the trackball is the distance that the trackball rotates in the horizontal direction or the vertical direction. For example, if the user rotates the trackball to the left, the distance that the trackball rotates to the left is the rotation range of the trackball; The user rotates the trackball to the right, and the distance the trackball rotates to the right is the range of rotation of the trackball.
  • the sensor disposed at the end of the roller column collects a pulse signal, and determines the rotation direction and the rotation range of the trackball according to the pulse signal collected by the sensor.
  • the cursor is a small vertical line, a short small horizontal line or an arrow presented on a display area of the smart flat screen
  • the Windows system is a position that changes a computer command into coordinates on the display screen, for example: various menus, Labels, buttons, etc., when the cursor is at this position, is aligned with this computer command, when you press the corresponding switch, it is to command the computer to execute the instruction you align with the cursor.
  • the trackball rotates, the trackball drives the roller column to rotate, and the photoelectric pulse signal generated by the grating signal sensor installed at the end of the roller column reflects the rotation direction and the rotation amplitude of the trackball, and controls the screen through processing and conversion of the computer program.
  • the movement of the cursor is a simple operation of the trackball.
  • the method further includes:
  • the movement trajectory of the writing content on the smart tablet screen is controlled according to the rotation direction and the rotation amplitude of the trackball.
  • the triggering operation may be implemented by pressing a switch on the smart pen, or by triggering a touch area on the smart pen, which is not limited in this embodiment.
  • the writing content on the smart tablet corresponding to the cursor is selected, and then the moving track of the writing content on the smart tablet screen is controlled according to the rotation direction and the rotation amplitude of the trackball.
  • the user may select a picture corresponding to the current cursor by pressing a switch, and if the user rotates the track ball to the left, the selected image is moved to the left.
  • the technical solution of the embodiment obtains a pulse signal generated when the trackball rotates by using a sensor built in the smart pen; determines a rotation direction and a rotation range of the trackball according to the pulse signal; and controls a cursor on the smart tablet screen according to the rotation direction and the rotation amplitude.
  • the trajectory can expand the way the smart pen interacts, and can provide users with a new operating experience while improving the comfort of the user during remote control.
  • the rotation direction of the trackball is determined according to the pulse signal.
  • the method further includes: collecting the current orientation of the smart pen by using a sensor built in the smart pen; if the current orientation of the smart pen is the first preset direction, setting the writing mode corresponding to the smart pen to erase A mode in which an original writing trajectory coincident with a displacement of the trackball in a vertical and horizontal direction is erased.
  • the method in this embodiment specifically includes the following steps:
  • S310 Acquire a pulse signal generated when the trackball rotates by using a sensor built in the smart pen.
  • S330 Collect the current orientation of the smart pen through the built-in sensor of the smart pen.
  • the sensor may be an acceleration sensor or a gyroscope.
  • the current orientation of the smart pen can be determined according to the measured acceleration value; if the sensor is a gyroscope, the current orientation of the smart pen can be directly measured.
  • the first preset direction may be a direction set by the user, or may be a direction that is convenient for the user to use. For example, the user is accustomed to press the smart pen to turn the tip of the pen upward toward the trackball, and press the trackball. Scrolling on the table allows for erasing in the smart tablet or annotation software, so the first preset direction can be set to be vertically downward.
  • the displacement of the trackball of the smart pen in the vertical and horizontal directions is matched with the original writing track, and if the track of the trackball of the smart pen is in the erase mode and the original writing track is If they coincide, the original writing track will be erased.
  • the original writing track will be erased.
  • a whiteboard or annotation software we can erase by pressing the pen on the table and scrolling through the whiteboard or annotation software. This kind of interaction is very close to the erasure in life, which can greatly enhance the user experience.
  • it also includes:
  • the pressure value generated by the trackball is collected by a pressure sensor built in the smart pen;
  • the manner in which the pressure generated by the trackball is generated may be generated by the user pressing the finger, or may be generated by the user pressing the trackball on the table, which is not limited in this embodiment.
  • the pressure applied by the user on the trackball is collected by a pressure sensor built in the smart pen.
  • the first threshold may be set by a user, or may be data obtained according to experience.
  • the first preset time may be a shorter period of time, or may be a longer period of time. If the first preset time is a shorter period of time, the user's pressing operation may be regarded as a click. Event; if the first preset time is a long period of time, the user's pressing operation can be regarded as a long press event.
  • the first preset operation may be a selected operation, or may be an application that opens a certain setting, or may be an open menu, or may be an edit mode, etc., for example, if the first preset When the time is a short period of time, the user's pressing operation is regarded as a click event, and the operation of simulating the left mouse button is performed. If the first preset time is a long period of time, the user's pressing operation is regarded as a long press event, and the right mouse button menu operation is performed.
  • the first preset operation is performed.
  • the second preset operation is performed.
  • the second preset time is set by the user, and may also be an experience acquisition, and the second preset time is a shorter time period.
  • the second preset operation is different from the first preset operation. If the first preset operation is to simulate a left button operation of the mouse, the second preset operation may be an operation of simulating a right mouse button or a selected operation. It can also be an application that opens a certain setting, or it can be an open menu, or it can be some sort of editing mode.
  • the user will press the trackball twice in a row without rotating the trackball, and the pressure value of the pressing is greater than the first pressure threshold, and then performing the second preset operation.
  • one press in a period of time can be converted into a one-click event.
  • click can be used to simulate the left button operation of the mouse, or it can be customized to other events, such as opening a specific application.
  • Continuous compression over a period of time can be converted into a double click event.
  • double-click can be used to simulate the double-click operation of the mouse, and can also be used to simulate the right-click operation of the mouse, or customize to other interactive events.
  • a press that exceeds a certain time range can be converted into a long press event.
  • long press can be used to open the right-click menu operation, or to perform some sort of editing mode and so on.
  • a trackball is added to the end of the smart pen, which can be rotated, pressed, and most intuitively rotated by the trackball to position the cursor.
  • the system knows the position of the current cursor.
  • the pulse signal generated when the trackball is rotated is obtained by the built-in sensor of the smart pen, and the rotation direction and the rotation range of the trackball are determined according to the pulse signal, and the current orientation of the smart pen is collected by the built-in sensor of the smart pen.
  • the current orientation of the smart pen is a first preset direction, and the writing mode corresponding to the smart pen is set to an erasing mode, in which the erasing coincides with the displacement of the trackball in the vertical and horizontal directions.
  • the original writing track can expand the interaction mode of the smart pen, and can provide users with a new operating experience while improving the comfort of the user during remote control.
  • FIG. 4 is a schematic structural diagram of a control device for a smart pen according to Embodiment 4 of the present invention.
  • the embodiment can be applied to the control of the smart pen.
  • the device can be implemented in software and/or hardware.
  • the device can be integrated in any device that provides the control function of the smart pen, as shown in FIG. 4 .
  • the control device of the smart pen specifically includes: an obtaining module 410, a determining module 420, and a first control module 430.
  • the obtaining module 410 is configured to acquire a pulse signal generated when the trackball rotates by using a sensor built in the smart pen;
  • a determining module 420 configured to determine a rotation direction and a rotation amplitude of the trackball according to the pulse signal
  • the first control module 430 is configured to control a movement track of the cursor on the smart tablet screen according to the rotation direction and the rotation amplitude.
  • it also includes:
  • a second control module configured to control the writing content on the smart tablet screen according to the rotation direction and the rotation amplitude of the trackball when the triggering operation is acquired after determining the rotation direction and the rotation amplitude of the trackball according to the pulse signal The movement track.
  • it also includes:
  • An orientation module is configured to collect a current orientation of the smart pen by using a sensor built in the smart pen;
  • An erasing module configured to set a writing mode corresponding to the smart pen to an erasing mode if the current orientation of the smart pen is a first preset direction, in the erasing mode, erasing and The original writing track of the trackball in which the displacement in the vertical and horizontal directions coincides.
  • it also includes:
  • a pressure collecting module for collecting a pressure value generated by a trackball by a pressure sensor built in the smart pen
  • a first operation execution module configured to perform a first preset operation if the pressure value is greater than the first pressure threshold, and the duration of the pressure value is greater than the first preset time
  • a second operation execution module configured to perform a second preset operation if the pressure value is greater than the first pressure threshold twice and the time interval is less than the second preset time.
  • the technical solution of the embodiment obtains a pulse signal generated when the trackball rotates by using a sensor built in the smart pen; determines a rotation direction and a rotation range of the trackball according to the pulse signal; and controls a cursor on the smart tablet screen according to the rotation direction and the rotation amplitude.
  • the trajectory can expand the way the smart pen interacts, and can provide users with a new operating experience while improving the comfort of the user during remote control.
  • FIG. 5 is a schematic structural diagram of a computer device according to Embodiment 5 of the present invention.
  • FIG. 5 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention.
  • the computer device 12 shown in FIG. 5 is merely an example and should not impose any limitation on the function and scope of use of the embodiments of the present invention.
  • computer device 12 is embodied in the form of a general purpose computing device.
  • Components of computer device 12 may include, but are not limited to, one or more processors or processing units 16, system memory 28, and bus 18 that connects different system components, including system memory 28 and processing unit 16.
  • Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of a variety of bus structures.
  • these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA Bus, a Video Electronics Standards Association (VESA) local bus, and peripheral component interconnects ( PCI) bus.
  • ISA Industry Standard Architecture
  • MAC Micro Channel Architecture
  • VESA Video Electronics Standards Association
  • PCI peripheral component interconnects
  • Computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer device 12, including both volatile and nonvolatile media, removable and non-removable media.
  • System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache memory 32.
  • Computer device 12 may further include other removable/non-removable, volatile/non-volatile computer system storage media.
  • storage system 34 may be used to read and write non-removable, non-volatile magnetic media (not shown in Figure 5, commonly referred to as a "hard disk drive”).
  • a disk drive for reading and writing to a removable non-volatile disk (such as a "floppy disk"), and a removable non-volatile disk (such as a CD-ROM, DVD-ROM) may be provided.
  • each drive can be coupled to bus 18 via one or more data medium interfaces.
  • Memory 28 can include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present invention.
  • a program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more applications, other programs Modules and program data, each of these examples or some combination may include an implementation of a network environment.
  • Program module 42 typically performs the functions and/or methods of the described embodiments of the present invention.
  • Computer device 12 may also be in communication with one or more external devices 14 (eg, a keyboard, pointing device, display 24, etc.), and may also be in communication with one or more devices that enable a user to interact with the computer device 12, and/or Any device (eg, a network card, modem, etc.) that enables the computer device 12 to communicate with one or more other computing devices. This communication can take place via an input/output (I/O) interface 22. Also, computer device 12 can communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18.
  • external devices 14 eg, a keyboard, pointing device, display 24, etc.
  • Any device eg, a network card, modem, etc.
  • network adapter 20 communicates with other modules of computer device 12 via bus 18.
  • the processing unit 16 executes various functions and data processing by running a program stored in the system memory 28, for example, a control method of the smart pen provided by the embodiment of the present invention: when the trackball is rotated by the built-in sensor of the smart pen Generating a pulse signal; determining a rotation direction and a rotation amplitude of the trackball according to the pulse signal; and controlling a movement track of the cursor on the smart tablet screen according to the rotation direction and the rotation amplitude.
  • the sixth embodiment of the present invention provides a computer readable storage medium, which is stored with a computer program, and when the program is executed by the processor, the control method of the smart pen provided by the embodiments of the present invention is implemented by using a smart pen.
  • the sensor acquires a pulse signal generated when the trackball rotates; determines a rotation direction and a rotation amplitude of the trackball according to the pulse signal; and controls a movement track of the cursor on the smart tablet screen according to the rotation direction and the rotation amplitude.
  • the computer readable medium can be a computer readable signal medium or a computer readable storage medium.
  • the computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive lists) of computer readable storage media include: electrical connections having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read only memory (ROM), Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing.
  • a computer readable storage medium can be any tangible medium that can contain or store a program, which can be used by or in connection with an instruction execution system, apparatus or device.
  • a computer readable signal medium may include a data signal that is propagated in the baseband or as part of a carrier, carrying computer readable program code. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • the computer readable signal medium can also be any computer readable medium other than a computer readable storage medium, which can transmit, propagate, or transport a program for use by or in connection with the instruction execution system, apparatus, or device. .
  • Program code embodied on a computer readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
  • Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including an object oriented programming language - such as Java, Smalltalk, C++, and also conventional. Procedural programming language - such as the "C" language or a similar programming language.
  • the program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer, partly on the remote computer, or entirely on the remote computer or server.
  • the remote computer can be connected to the user's computer via any kind of network, including a local area network (LAN) or wide area network (WAN), or can be connected to an external computer (eg, using an Internet service provider) Internet connection).
  • LAN local area network
  • WAN wide area network
  • Internet service provider Internet service provider

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Position Input By Displaying (AREA)

Abstract

Disclosed in the present invention are a smart pen, a smart pen control method, an apparatus, a device and a storage medium. The smart pen comprises: a body, a nib, a trackball, a roller, a sensor, and a wireless module, the nib being provided at a first end of the body, for moving on the screen of a smart tablet, so as to be detected by a touch assembly of the smart tablet, the trackball being provided at a second end of the body, the trackball driving the roller to rotate, the sensor being provided inside the body and mounted at the end portion of the roller, for generating a pulse signal when the trackball rotates, the wireless module being provided inside the body for sending data to the smart tablet, the data comprising the pulse signal. The technical solutions of the present invention can expand interactive modes of a smart pen, can improve the usage comfort of the user during remote operation, and provide a new operation experience for the user at the same time.

Description

一种智能笔、智能笔的控制方法、装置、设备及存储介质Control method, device, device and storage medium for smart pen and smart pen 技术领域Technical field
本发明涉及一种智能终端技术,尤其涉及一种智能笔、智能笔的控制方法、装置、设备及存储介质。The invention relates to a smart terminal technology, in particular to a smart pen, a smart pen control method, device, device and storage medium.
背景技术Background technique
现有的智能笔交互方式主要以按键触发为主,再辅以陀螺仪、3D-Gsensor等传感器信息为基础的空中鼠标功能,在远程操控上的体验比较差。比如用户需要实现“打开桌面上A应用”的操作,用户需要首先将笔对准屏幕,进行挥动,找到光标位置,继续挥动手臂,将光标移至应用图标上,通过智能笔上的按键,将应用打开。The existing smart pen interaction mode is mainly based on button triggering, and is supplemented by the air mouse function based on sensor information such as gyroscope and 3D-Gsensor, and the experience in remote control is relatively poor. For example, the user needs to implement the operation of “opening the A application on the desktop”. The user needs to first align the pen to the screen, swing, find the cursor position, continue to swing the arm, move the cursor to the application icon, and press the button on the smart pen. The app opens.
在这个过程中,存在几个问题:In the process, there are several problems:
1.精准度受传感器数据转化成坐标的算法的好坏影响,灵敏度也很难控制,用户很难精准的将光标移至并保持到应用图标的操作区域上(手一抖光标就移位了)。1. The accuracy is affected by the algorithm of the sensor data converted into coordinates, and the sensitivity is also difficult to control. It is difficult for the user to accurately move the cursor to and maintain the operation area of the application icon (the hand is shaken by the cursor). ).
2.用户整个操作过程中,需要抬着手臂来回挥动,然后保持在某一个位置,长时间操作后,手会非常累,体验很差。2. During the whole operation of the user, it is necessary to raise the arm and swing back and forth, and then keep it in a certain position. After a long time of operation, the hand will be very tired and the experience is very poor.
发明内容Summary of the invention
本发明实施例提供一种智能笔、智能笔的控制方法、装置、设备及存储介质,能够扩展智能笔的交互方式,并且能够在提升用户在远程操控时使用舒适 度的同时,为用户提供了全新的操作体验。The embodiment of the invention provides a method, a device, a device and a storage medium for controlling a smart pen and a smart pen, which can expand the interaction mode of the smart pen, and can provide the user with the comfort while using the remote control. A new operating experience.
第一方面,本发明实施例提供了一种智能笔,包括:笔体、书写笔尖、轨迹球、辊柱、传感器和无线模组;In a first aspect, an embodiment of the present invention provides a smart pen, including: a pen body, a writing pen tip, a track ball, a roller column, a sensor, and a wireless module;
所述书写笔尖设置于所述笔体的第一端,用于在智能平板的屏幕运动以被所述智能平板的触摸组件检测到;The writing pen tip is disposed at a first end of the pen body for movement on a screen of the smart tablet to be detected by the touch component of the smart tablet;
所述轨迹球设置于所述笔体的第二端,所述轨迹球带动辊柱转动;The trackball is disposed at a second end of the pen body, and the trackball drives the roller column to rotate;
所述传感器设置于所述笔体内部,装在辊柱端部,用于在轨迹球转动时产生脉冲信号;The sensor is disposed inside the pen body and is mounted at an end of the roller column for generating a pulse signal when the trackball rotates;
所述无线模组设置于所述笔体内部,用于向所述智能平板发送数据,其中,所述数据包括脉冲信号。The wireless module is disposed inside the pen body for transmitting data to the smart tablet, wherein the data includes a pulse signal.
第二方面,本发明实施例提供了一种智能笔的控制方法,所述方法包括:In a second aspect, an embodiment of the present invention provides a method for controlling a smart pen, where the method includes:
通过智能笔内置的传感器获取轨迹球转动时产生的脉冲信号;Acquiring the pulse signal generated when the trackball rotates by the built-in sensor of the smart pen;
根据所述脉冲信号确定轨迹球的转动方向和转动幅度;Determining a rotation direction and a rotation range of the trackball according to the pulse signal;
根据所述转动方向和转动幅度控制智能平板屏幕上的光标的移动轨迹。The movement trajectory of the cursor on the smart tablet screen is controlled according to the rotation direction and the rotation amplitude.
进一步的,根据所述脉冲信号确定轨迹球的转动方向和转动幅度之后,还包括:Further, after determining the rotation direction and the rotation range of the trackball according to the pulse signal, the method further includes:
于获取到触发操作时,根据所述轨迹球的转动方向和转动幅度控制智能平板屏幕上的书写内容的移动轨迹。When the triggering operation is acquired, the movement trajectory of the writing content on the smart tablet screen is controlled according to the rotation direction and the rotation amplitude of the trackball.
进一步的,根据所述脉冲信号确定轨迹球的转动方向和转动幅度之后,还包括:Further, after determining the rotation direction and the rotation range of the trackball according to the pulse signal, the method further includes:
通过智能笔内置的传感器采集智能笔的当前朝向;Collecting the current orientation of the smart pen through the built-in sensor of the smart pen;
若所述智能笔的当前朝向为第一预设方向,则将所述智能笔对应的书写模 式设置为擦除模式,在所述擦除模式下,擦除与所述轨迹球在垂直和水平方向的位移重合的原有书写轨迹。If the current orientation of the smart pen is the first preset direction, setting a writing mode corresponding to the smart pen to an erasing mode, in which the erasing and the trackball are vertical and horizontal The displacement of the direction coincides with the original writing trajectory.
进一步的,还包括:Further, it also includes:
通过智能笔内置的压力传感器采集通过轨迹球产生的压力值;The pressure value generated by the trackball is collected by a pressure sensor built in the smart pen;
若所述压力值大于第一压力阈值,且所述压力值的持续时间大于第一预设时间,则执行第一预设操作;If the pressure value is greater than the first pressure threshold, and the duration of the pressure value is greater than the first preset time, performing a first preset operation;
若连续两次获取到所述压力值大于第一压力阈值,且两次的时间间隔小于第二预设时间,则执行第二预设操作。If the pressure value is obtained twice consecutively than the first pressure threshold, and the time interval between the two times is less than the second preset time, the second preset operation is performed.
第三方面,本发明实施例还提供了一种智能笔的控制装置,该装置包括:In a third aspect, an embodiment of the present invention further provides a control device for a smart pen, the device comprising:
获取模块,用于通过智能笔内置的传感器获取轨迹球转动时产生的脉冲信号;The acquiring module is configured to acquire a pulse signal generated when the trackball rotates by using a sensor built in the smart pen;
确定模块,用于根据所述脉冲信号确定轨迹球的转动方向和转动幅度;a determining module, configured to determine a rotation direction and a rotation amplitude of the trackball according to the pulse signal;
第一控制模块,用于根据所述转动方向和转动幅度控制智能平板屏幕上的光标的移动轨迹。The first control module is configured to control a movement track of the cursor on the smart tablet screen according to the rotation direction and the rotation amplitude.
进一步的,还包括:Further, it also includes:
第二控制模块,用于在根据所述脉冲信号确定轨迹球的转动方向和转动幅度之后,于获取到触发操作时,根据所述轨迹球的转动方向和转动幅度控制智能平板屏幕上的书写内容的移动轨迹。a second control module, configured to control the writing content on the smart tablet screen according to the rotation direction and the rotation amplitude of the trackball when the triggering operation is acquired after determining the rotation direction and the rotation amplitude of the trackball according to the pulse signal The movement track.
进一步的,还包括:Further, it also includes:
朝向采集模块,用于通过智能笔内置的传感器采集智能笔的当前朝向;An orientation module is configured to collect a current orientation of the smart pen by using a sensor built in the smart pen;
擦除模块,用于若所述智能笔的当前朝向为第一预设方向,则将所述智能笔对应的书写模式设置为擦除模式,在所述擦除模式下,擦除与所述轨迹球在 垂直和水平方向的位移重合的原有书写轨迹。An erasing module, configured to set a writing mode corresponding to the smart pen to an erasing mode if the current orientation of the smart pen is a first preset direction, in the erasing mode, erasing and The original writing track of the trackball in which the displacement in the vertical and horizontal directions coincides.
进一步的,还包括:Further, it also includes:
压力采集模块,用于通过智能笔内置的压力传感器采集通过轨迹球产生的压力值;a pressure collecting module for collecting a pressure value generated by a trackball by a pressure sensor built in the smart pen;
第一操作执行模块,用于若所述压力值大于第一压力阈值,且所述压力值的持续时间大于第一预设时间,则执行第一预设操作;a first operation execution module, configured to perform a first preset operation if the pressure value is greater than the first pressure threshold, and the duration of the pressure value is greater than the first preset time;
第二操作执行模块,用于若连续两次获取到所述压力值大于第一压力阈值,且两次的时间间隔小于第二预设时间,则执行第二预设操作。And a second operation execution module, configured to perform a second preset operation if the pressure value is greater than the first pressure threshold twice and the time interval is less than the second preset time.
第四方面,本发明实施例还提供了一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,所述处理器执行所述程序时实现如本发明实施例中任一所述的智能笔的控制方法。In a fourth aspect, an embodiment of the present invention further provides a computer device, including a memory, a processor, and a computer program stored on the memory and operable on the processor, where the processor implements the program, such as the present invention A method of controlling a smart pen according to any of the embodiments.
第五方面,本发明实施例还提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本发明实施例中任一所述的智能笔的控制方法。In a fifth aspect, the embodiment of the present invention further provides a computer readable storage medium, where the computer program is stored, and when the program is executed by the processor, the method for controlling the smart pen according to any one of the embodiments of the present invention is implemented. .
本发明实施例通过笔体、书写笔尖、轨迹球、辊柱、传感器和无线模组;书写笔尖设置于笔体的第一端,用于在智能平板的屏幕运动以被所述智能平板的触摸组件检测到;轨迹球设置于所述笔体的第二端,轨迹球带动辊柱转动;传感器设置于所述笔体内部,装在辊柱端部,用于在轨迹球转动时产生脉冲信号;无线模组设置于笔体内部,用于向智能平板发送数据,其中,数据包括脉冲信号,能够扩展智能笔的交互方式,并且能够在提升用户在远程操控时使用舒适度的同时,为用户提供了全新的操作体验。The embodiment of the invention adopts a pen body, a writing pen tip, a track ball, a roller column, a sensor and a wireless module; the writing pen tip is disposed at the first end of the pen body for moving on the screen of the smart tablet to be touched by the smart tablet The component detects that the trackball is disposed at the second end of the pen body, and the trackball drives the roller column to rotate; the sensor is disposed inside the pen body and is mounted at the end of the roller column for generating a pulse signal when the trackball rotates The wireless module is disposed inside the pen body and is used for sending data to the smart tablet, wherein the data includes a pulse signal, which can expand the interaction mode of the smart pen, and can improve the user's comfort during remote control while serving the user. Provides a new operating experience.
附图说明DRAWINGS
图1是本发明实施例一中的一种智能笔的结构示意图;1 is a schematic structural diagram of a smart pen according to Embodiment 1 of the present invention;
图2是本发明实施例二中的一种智能笔的控制方法的流程图;2 is a flowchart of a method for controlling a smart pen according to Embodiment 2 of the present invention;
图3是本发明实施例三中的一种智能笔的控制方法的流程图;3 is a flowchart of a method for controlling a smart pen according to Embodiment 3 of the present invention;
图4是本发明实施例四中的一种智能笔的控制装置的结构示意图;4 is a schematic structural diagram of a control device for a smart pen according to Embodiment 4 of the present invention;
图5是本发明实施例五中的一种计算机设备的结构示意图。FIG. 5 is a schematic structural diagram of a computer device according to Embodiment 5 of the present invention.
具体实施方式Detailed ways
下面结合附图和实施例对本发明作进一步的详细说明。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. It should also be noted that, for ease of description, only some, but not all, of the structures related to the present invention are shown in the drawings.
实施例一Embodiment 1
图1为本发明实施例一提供的一种智能笔的结构示意图,本实施例可适用于适用智能笔进行擦除的情况,该智能笔可适用于摸屏为电容式触摸屏、红外触摸屏或者电磁式触摸屏的智能平板。该智能笔包括:笔体110、书写笔尖120、轨迹球130、辊柱140、传感器150和无线模组160;FIG. 1 is a schematic structural diagram of a smart pen according to a first embodiment of the present invention. The smart pen can be applied to a smart pen for erasing. The smart pen can be applied to a capacitive touch screen, an infrared touch screen, or an electromagnetic Smart tablet with touch screen. The smart pen includes: a pen body 110, a writing pen tip 120, a trackball 130, a roller column 140, a sensor 150, and a wireless module 160;
所述书写笔尖120设置于所述笔体110的第一端,用于在智能平板的屏幕运动以被所述智能平板的触摸组件检测到;The writing tip 120 is disposed at a first end of the pen body 110 for movement on a screen of the smart tablet to be detected by the touch component of the smart tablet;
所述轨迹球130设置于所述笔体的第二端,轨迹球130带动辊柱140转动;The trackball 130 is disposed at the second end of the pen body, and the track ball 130 drives the roller column 140 to rotate;
所述传感器150设置于所述笔体内部,装在辊柱140端部,用于在轨迹球130转动时产生脉冲信号;The sensor 150 is disposed inside the pen body and is mounted at an end of the roller column 140 for generating a pulse signal when the trackball 130 rotates;
所述无线模组160设置于所述笔体110内部,用于向所述智能平板发送数据,其中,数据包括脉冲信号。The wireless module 160 is disposed inside the pen body 110 for transmitting data to the smart tablet, wherein the data includes a pulse signal.
其中,笔体110的第一端和笔体110的第二端为相对的两端,具体的,若所述笔体110的第一端为智能笔的下端,则所述笔体110的第二端为智能笔的上端;若所述笔体110的第一端为智能笔的上端,则所述笔体110的第二端为智能笔的下端。The first end of the pen body 110 and the second end of the pen body 110 are opposite ends. Specifically, if the first end of the pen body 110 is the lower end of the smart pen, the pen body 110 The second end is the upper end of the smart pen; if the first end of the pen body 110 is the upper end of the smart pen, the second end of the pen body 110 is the lower end of the smart pen.
其中,所述轨迹球130能够供用户进行按压和转动。Wherein, the trackball 130 can be pressed and rotated by a user.
具体的,当转动轨迹球130时,轨迹球130带动辊柱140转动,装在辊柱140端部的传感器150产生的光电脉冲信号反映出轨迹球130的转动方向和转动幅度,再通过程序的处理和转换来控制屏幕上光标的移动。需要说明的是,图1只是表示该智能笔的结构示意图,尤其对于辊柱140和轨迹球130,图1并不体现其实际配合关系。Specifically, when the trackball 130 is rotated, the trackball 130 drives the roller 140 to rotate, and the photoelectric pulse signal generated by the sensor 150 mounted at the end of the roller 140 reflects the rotation direction and the rotation range of the trackball 130, and then passes through the program. Processing and conversion to control the movement of the cursor on the screen. It should be noted that FIG. 1 is only a schematic diagram showing the structure of the smart pen. Especially for the roller column 140 and the track ball 130, FIG. 1 does not reflect the actual cooperation relationship.
其中,所述传感器150可以为光栅信号传感器,所述光栅信号传感器为采用光栅叠栅条纹原理测量位移的传感器。Wherein, the sensor 150 may be a grating signal sensor, and the grating signal sensor is a sensor that measures displacement by using a grating-stacking stripe principle.
可选的,笔体110内部放置有开关,可以结合按压开关以及轨迹球的滚动实现对智能平板上的书写内容的拖拽操作,例如,按压智能笔上的开关后,选中光标指定的书写内容,通过对轨迹球的转动实现对选中的书写内容的移动、拖拽的操作。Optionally, a pen is placed inside the pen body 110, and the dragging operation of the writing content on the smart tablet can be implemented by combining the pressing switch and the scrolling of the trackball. For example, after pressing the switch on the smart pen, the writing content specified by the cursor is selected. The movement of the selected writing content and the dragging operation are realized by rotating the trackball.
其中,所述书写笔尖120用于在智能平板的屏幕上运动,通过被智能平板的触控模组检测到运动来实现书写。例如可以是,若智能平板的屏幕为电磁式触摸屏,则笔体110需要放置磁线圈,通过书写笔尖120在智能平板的屏幕上的运动过程中磁场的变化情况,来获取用户的书写信息;若智能平板的屏幕为 红外触摸屏,通过书写笔尖120在智能平板的屏幕上的运动过程中红外对管中红外光的强度的变化情况,来获取用户的书写信息。The writing tip 120 is used for moving on the screen of the smart tablet, and the writing is realized by detecting the motion by the touch panel of the smart tablet. For example, if the screen of the smart tablet is an electromagnetic touch screen, the pen body 110 needs to place a magnetic coil, and the writing information of the user is obtained by changing the magnetic field during the movement of the writing pen tip 120 on the screen of the smart tablet; The screen of the smart tablet is an infrared touch screen, and the writing information of the user is obtained by changing the intensity of the infrared light in the tube during the movement of the writing pen tip 120 on the screen of the smart tablet.
具体的,所述智能笔既可以实现对电容式触摸屏控制,也可以实现对红外触摸屏控制,还可以实现对电磁式触摸屏的控制。Specifically, the smart pen can realize the control of the capacitive touch screen, the infrared touch screen control, and the electromagnetic touch screen.
本发明实施例的技术方案,通过笔体、书写笔尖、轨迹球、辊柱、传感器和无线模组;书写笔尖设置于笔体的第一端,用于在智能平板的屏幕运动以被所述智能平板的触摸组件检测到;轨迹球设置于所述笔体的第二端,轨迹球带动辊柱转动;传感器设置于所述笔体内部,装在辊柱端部,用于在轨迹球转动时产生脉冲信号;无线模组设置于笔体内部,用于向智能平板发送数据,其中,数据包括脉冲信号,能够扩展智能笔的交互方式,并且能够在提升用户在远程操控时使用舒适度的同时,为用户提供了全新的操作体验。The technical solution of the embodiment of the present invention is a pen body, a writing pen tip, a track ball, a roller column, a sensor and a wireless module; a writing pen tip is disposed at the first end of the pen body for moving on the screen of the smart tablet to be described The touch panel of the smart tablet detects that the trackball is disposed at the second end of the pen body, and the trackball drives the roller column to rotate; the sensor is disposed inside the pen body and is mounted at the end of the roller column for rotating on the trackball The pulse signal is generated; the wireless module is disposed inside the pen body for transmitting data to the smart tablet, wherein the data includes a pulse signal, which can expand the interaction mode of the smart pen, and can improve the comfort of the user during remote control. At the same time, it provides users with a new operating experience.
实施例二Embodiment 2
图2为本发明实施例二提供的一种智能笔的控制方法的流程图,本实施例可适用于智能笔的控制的情况,该方法可以由本发明实施例中的智能笔的控制装置来执行,该装置可采用软件和/或硬件的方式实现,如图2所示,该方法具体包括如下步骤:2 is a flowchart of a method for controlling a smart pen according to a second embodiment of the present invention. The present embodiment can be applied to the control of a smart pen. The method can be executed by the control device of the smart pen in the embodiment of the present invention. The device may be implemented in software and/or hardware. As shown in FIG. 2, the method specifically includes the following steps:
S210,通过智能笔内置的传感器获取轨迹球转动时产生的脉冲信号。S210: Acquire a pulse signal generated when the trackball rotates by using a sensor built in the smart pen.
其中,所述智能笔内置的传感器可以为光栅信号传感器,所述传感器装在辊柱的端部,能够在由于轨迹球转动带动辊柱转动的时候产生脉冲信号。The sensor built in the smart pen may be a grating signal sensor, and the sensor is mounted on the end of the roller column, and can generate a pulse signal when the roller is rotated by the track ball.
具体的,通过智能笔内置的传感器获取由于轨迹球转动而产生的脉冲信号。Specifically, the pulse signal generated by the rotation of the trackball is acquired by the sensor built in the smart pen.
S220,根据脉冲信号确定轨迹球的转动方向和转动幅度。S220, determining a rotation direction and a rotation amplitude of the trackball according to the pulse signal.
其中,所述轨迹球的转动方向可以为水平方向转动或者是垂直方向转动。例如,若用户向左转动轨迹球,轨迹球的转动方向为水平向左;若用户向右转动轨迹球,轨迹球的转动方向为水平向右。Wherein, the rotation direction of the trackball may be a horizontal rotation or a vertical rotation. For example, if the user rotates the trackball to the left, the direction of rotation of the trackball is horizontal to the left; if the user rotates the trackball to the right, the direction of rotation of the trackball is horizontal to the right.
其中,所述轨迹球的转动幅度为轨迹球在水平方向或者垂直方向转动的距离,例如,若用户向左转动轨迹球,轨迹球向左转动的距离则为轨迹球的转动幅度;若用户向右转动轨迹球,轨迹球向右转动的距离则为轨迹球的转动幅度。Wherein, the rotation amplitude of the trackball is the distance that the trackball rotates in the horizontal direction or the vertical direction. For example, if the user rotates the trackball to the left, the distance that the trackball rotates to the left is the rotation range of the trackball; The user rotates the trackball to the right, and the distance the trackball rotates to the right is the range of rotation of the trackball.
具体的,由于轨迹球带动辊柱转动,设置于辊柱端部的传感器采集脉冲信号,根据传感器采集到的脉冲信号确定轨迹球的转动方向和转动幅度。Specifically, since the track ball drives the roller column to rotate, the sensor disposed at the end of the roller column collects a pulse signal, and determines the rotation direction and the rotation range of the trackball according to the pulse signal collected by the sensor.
S230,根据转动方向和转动幅度控制智能平板屏幕上的光标的移动轨迹。S230, controlling a movement track of the cursor on the screen of the smart tablet according to the rotation direction and the rotation amplitude.
其中,所述光标为呈现在智能平板屏幕上显示区域的一个小竖线、短短的小横线或者箭头,Windows系统是把计算机命令变成显示器屏幕上坐标的位置,例如:各种菜单、标签、按钮等,当光标对准这个位置时,就是对准了这道计算机命令,当你按下对应的开关时,就是命令计算机执行你用光标对准的那条指令。Wherein, the cursor is a small vertical line, a short small horizontal line or an arrow presented on a display area of the smart flat screen, and the Windows system is a position that changes a computer command into coordinates on the display screen, for example: various menus, Labels, buttons, etc., when the cursor is at this position, is aligned with this computer command, when you press the corresponding switch, it is to command the computer to execute the instruction you align with the cursor.
具体的,轨迹球转动,轨迹球带动辊柱转动,装在辊柱端部的光栅信号传感器产生的光电脉冲信号反映出轨迹球的转动方向和转动幅度,通过电脑程序的处理和转换来控制屏幕上光标的移动。Specifically, the trackball rotates, the trackball drives the roller column to rotate, and the photoelectric pulse signal generated by the grating signal sensor installed at the end of the roller column reflects the rotation direction and the rotation amplitude of the trackball, and controls the screen through processing and conversion of the computer program. The movement of the cursor.
可选的,根据所述脉冲信号确定轨迹球的转动方向和转动幅度之后,还包括:Optionally, after determining the rotation direction and the rotation range of the trackball according to the pulse signal, the method further includes:
于获取到触发操作时,根据所述轨迹球的转动方向和转动幅度控制智能平板屏幕上的书写内容的移动轨迹。When the triggering operation is acquired, the movement trajectory of the writing content on the smart tablet screen is controlled according to the rotation direction and the rotation amplitude of the trackball.
其中,所述触发操作可以通过按压智能笔上的开关实现,也可以通过触发 智能笔上的触控区域实现,本实施例对此不进行限制。The triggering operation may be implemented by pressing a switch on the smart pen, or by triggering a touch area on the smart pen, which is not limited in this embodiment.
具体的,于获取到触发操作时,选中光标对应的智能平板上的书写内容,之后根据轨迹球的转动方向和转动幅度控制智能平板屏幕上的书写内容的移动轨迹。例如可以是,用户通过按压开关的形式,选中当前光标所对应的图片,若用户向左转动轨迹球,则将选中的图像向左移动。Specifically, when the triggering operation is acquired, the writing content on the smart tablet corresponding to the cursor is selected, and then the moving track of the writing content on the smart tablet screen is controlled according to the rotation direction and the rotation amplitude of the trackball. For example, the user may select a picture corresponding to the current cursor by pressing a switch, and if the user rotates the track ball to the left, the selected image is moved to the left.
本实施例的技术方案,通过智能笔内置的传感器获取轨迹球转动时产生的脉冲信号;根据脉冲信号确定轨迹球的转动方向和转动幅度;根据转动方向和转动幅度控制智能平板屏幕上的光标的移动轨迹,能够扩展智能笔的交互方式,并且能够在提升用户在远程操控时使用舒适度的同时,为用户提供了全新的操作体验。The technical solution of the embodiment obtains a pulse signal generated when the trackball rotates by using a sensor built in the smart pen; determines a rotation direction and a rotation range of the trackball according to the pulse signal; and controls a cursor on the smart tablet screen according to the rotation direction and the rotation amplitude. The trajectory can expand the way the smart pen interacts, and can provide users with a new operating experience while improving the comfort of the user during remote control.
实施例三Embodiment 3
图3为本发明实施例三中的一种智能笔的控制方法的流程图,本实施例以上述实施例为基础进行优化,在本实施例中,根据所述脉冲信号确定轨迹球的转动方向和转动幅度之后,还包括:通过智能笔内置的传感器采集智能笔的当前朝向;若所述智能笔的当前朝向为第一预设方向,则将所述智能笔对应的书写模式设置为擦除模式,在所述擦除模式下,擦除与所述轨迹球在垂直和水平方向的位移重合的原有书写轨迹。3 is a flowchart of a method for controlling a smart pen according to a third embodiment of the present invention. The present embodiment is optimized based on the foregoing embodiment. In this embodiment, the rotation direction of the trackball is determined according to the pulse signal. After the amplitude of the rotation, the method further includes: collecting the current orientation of the smart pen by using a sensor built in the smart pen; if the current orientation of the smart pen is the first preset direction, setting the writing mode corresponding to the smart pen to erase A mode in which an original writing trajectory coincident with a displacement of the trackball in a vertical and horizontal direction is erased.
如图3所示,本实施例的方法具体包括如下步骤:As shown in FIG. 3, the method in this embodiment specifically includes the following steps:
S310,通过智能笔内置的传感器获取轨迹球转动时产生的脉冲信号。S310: Acquire a pulse signal generated when the trackball rotates by using a sensor built in the smart pen.
S320,根据脉冲信号确定轨迹球的转动方向和转动幅度。S320, determining a rotation direction and a rotation range of the trackball according to the pulse signal.
S330,通过智能笔内置的传感器采集智能笔的当前朝向。S330: Collect the current orientation of the smart pen through the built-in sensor of the smart pen.
其中,所述传感器可以为加速度传感器,也可以为陀螺仪。The sensor may be an acceleration sensor or a gyroscope.
具体的,若所述传感器为加速度传感器,则可以根据测得的加速度数值判断智能笔的当前朝向;若所述传感器为陀螺仪,则可以直接测得智能笔的当前朝向。Specifically, if the sensor is an acceleration sensor, the current orientation of the smart pen can be determined according to the measured acceleration value; if the sensor is a gyroscope, the current orientation of the smart pen can be directly measured.
S340,若智能笔的当前朝向为第一预设方向,则将智能笔对应的书写模式设置为擦除模式,在擦除模式下,擦除与轨迹球在垂直和水平方向的位移重合的原有书写轨迹。S340, if the current orientation of the smart pen is the first preset direction, setting the writing mode corresponding to the smart pen to the erasing mode, and erasing the original of the displacement of the trackball in the vertical and horizontal directions in the erasing mode. There is a writing track.
其中,所述第一预设方向可以为用户设定的方向,也可以为设置的便于用户使用的方向,例如,用户习惯于将智能笔反过来笔尖朝上轨迹球朝下,将轨迹球按在桌子上滚动,进而实现在智能平板或批注软件中进行擦除,因此就可以将第一预设方向设定为竖直向下。The first preset direction may be a direction set by the user, or may be a direction that is convenient for the user to use. For example, the user is accustomed to press the smart pen to turn the tip of the pen upward toward the trackball, and press the trackball. Scrolling on the table allows for erasing in the smart tablet or annotation software, so the first preset direction can be set to be vertically downward.
具体的,将在擦除模式下智能笔的轨迹球在垂直和水平方向的位移与原有的书写轨迹进行匹配,若在擦除模式下智能笔的轨迹球的移动轨迹与原有的书写轨迹重合,则将原有的书写轨迹擦除。例如:在白板或批注软件中,我们可以通过将笔反过来,按在桌子上滚动,在白板或批注软件中进行擦除。这种交互非常接近生活中的擦除,能大大提升用户体验。Specifically, in the erasing mode, the displacement of the trackball of the smart pen in the vertical and horizontal directions is matched with the original writing track, and if the track of the trackball of the smart pen is in the erase mode and the original writing track is If they coincide, the original writing track will be erased. For example, in a whiteboard or annotation software, we can erase by pressing the pen on the table and scrolling through the whiteboard or annotation software. This kind of interaction is very close to the erasure in life, which can greatly enhance the user experience.
可选的,还包括:Optionally, it also includes:
通过智能笔内置的压力传感器采集通过轨迹球产生的压力值;The pressure value generated by the trackball is collected by a pressure sensor built in the smart pen;
其中,所述轨迹球产生的压力的产生方式可以为用户通过手指按压产生的,也可以为用户将轨迹球按压在桌子上产生的,本实施例对此不进行限制。The manner in which the pressure generated by the trackball is generated may be generated by the user pressing the finger, or may be generated by the user pressing the trackball on the table, which is not limited in this embodiment.
具体的,通过智能笔内置的压力传感器采集用户施加在轨迹球上的压力。Specifically, the pressure applied by the user on the trackball is collected by a pressure sensor built in the smart pen.
若所述压力值大于第一压力阈值,且所述压力值的持续时间大于第一预设 时间,则执行第一预设操作;If the pressure value is greater than the first pressure threshold, and the duration of the pressure value is greater than the first preset time, performing the first preset operation;
其中,所述第一阈值可以为用户设定,也可以为根据经验获取的数据。The first threshold may be set by a user, or may be data obtained according to experience.
其中,所述第一预设时间可以为较短的一段时间,也可以为较长的一段时间,若第一预设时间为较短的一段时间,则可以将用户的按压操作看成为单击事件;若第一预设时间为较长的一段时间,则可以将用户的按压操作看成为长按事件。The first preset time may be a shorter period of time, or may be a longer period of time. If the first preset time is a shorter period of time, the user's pressing operation may be regarded as a click. Event; if the first preset time is a long period of time, the user's pressing operation can be regarded as a long press event.
其中,所述第一预设操作可以为选中操作,也可以为是打开某个设定的应用,还可以是打开菜单,或者可以为某种编辑模式等,例如可以是,若第一预设时间为较短的一段时间,则将用户的按压操作看成为单击事件,执行模拟鼠标左键的操作。若第一预设时间为较长的一段时间,则将用户的按压操作看成为长按事件,执行打开鼠标右键菜单操作。The first preset operation may be a selected operation, or may be an application that opens a certain setting, or may be an open menu, or may be an edit mode, etc., for example, if the first preset When the time is a short period of time, the user's pressing operation is regarded as a click event, and the operation of simulating the left mouse button is performed. If the first preset time is a long period of time, the user's pressing operation is regarded as a long press event, and the right mouse button menu operation is performed.
具体的,用户在预设时间内仅按压轨迹球,不转动轨迹球,且按压的压力值大于第一压力阈值,则执行第一预设操作。Specifically, when the user only presses the trackball within the preset time, does not rotate the trackball, and the pressure value of the pressing is greater than the first pressure threshold, the first preset operation is performed.
若连续两次获取到所述压力值大于第一压力阈值,且两次的时间间隔小于第二预设时间,则执行第二预设操作。If the pressure value is obtained twice consecutively than the first pressure threshold, and the time interval between the two times is less than the second preset time, the second preset operation is performed.
其中,所述第二预设时间为用户设定,也可以为经验获取,所述第二预设时间为较短的时间段。The second preset time is set by the user, and may also be an experience acquisition, and the second preset time is a shorter time period.
其中,所述第二预设操作与第一预设操作不同,若第一预设操作为模拟鼠标的左键操作,则第二预设操作可以为模拟鼠标右键的操作,也可以为选中操作,也可以为是打开某个设定的应用,还可以是打开菜单,或者可以为某种编辑模式等。The second preset operation is different from the first preset operation. If the first preset operation is to simulate a left button operation of the mouse, the second preset operation may be an operation of simulating a right mouse button or a selected operation. It can also be an application that opens a certain setting, or it can be an open menu, or it can be some sort of editing mode.
具体的,用户将连续两次按压轨迹球,不转动轨迹球,且按压的压力值大 于第一压力阈值,则执行第二预设操作。Specifically, the user will press the trackball twice in a row without rotating the trackball, and the pressure value of the pressing is greater than the first pressure threshold, and then performing the second preset operation.
具体的,可以将一段时间内的一次按压转化为一次单击事件。反映到交互上,单击可以用来模拟鼠标的左键操作,也可以自定义为其他事件,比如打开某个特定应用。可以将一段时间内的连续按压转化为一次双击事件。反映到交互上,双击可以用来模拟鼠标的双击操作,也可以用来摸拟为鼠标的右键操作,或自定义为别的交互事件。可以将超过一定时间范围的按压转化为一次长按事件。反映到交互上,长按可以用来打开右键菜单操作,或者进行某种编辑模式等等。Specifically, one press in a period of time can be converted into a one-click event. Reflected on the interaction, click can be used to simulate the left button operation of the mouse, or it can be customized to other events, such as opening a specific application. Continuous compression over a period of time can be converted into a double click event. Reflected on the interaction, double-click can be used to simulate the double-click operation of the mouse, and can also be used to simulate the right-click operation of the mouse, or customize to other interactive events. A press that exceeds a certain time range can be converted into a long press event. Reflected in the interaction, long press can be used to open the right-click menu operation, or to perform some sort of editing mode and so on.
在一个具体的例子中,在智能笔的末端增加了一个轨迹球,它可以转动,可以按压,最直观的,通过轨迹球转动,可以用来定位光标的位置。系统知道当前光标的位置,我们只需要将轨迹球在上下左右方向上的转动幅度转化为鼠标在屏幕上X、Y轴坐标的变化数值即可。这样,用户可以很轻松地、以最舒服的方式操作智能笔,将光标移到想要操作的区域,并且移动到了之后可以轻松将光标停留在目标区域。在文档、网页浏览等模式下,通过滚动我们也可以轻松的对页面进行滚动浏览操作,比原有的智能笔按住挥动的方式要从容精准得多。通过结合按键,通过轨迹球转动还能轻松实现一些需要移动、拖拽的操作。本实施例的技术方案,通过智能笔内置的传感器获取轨迹球转动时产生的脉冲信号,根据脉冲信号确定轨迹球的转动方向和转动幅度,通过智能笔内置的传感器采集智能笔的当前朝向,若所述智能笔的当前朝向为第一预设方向,则将智能笔对应的书写模式设置为擦除模式,在所述擦除模式下,擦除与轨迹球在垂直和水平方向的位移重合的原有书写轨迹,能够扩展智能笔的交互方式,并且能够在提升用户在远程操控时使用舒适度的同时,为用户提供了全新的操作 体验。In a specific example, a trackball is added to the end of the smart pen, which can be rotated, pressed, and most intuitively rotated by the trackball to position the cursor. The system knows the position of the current cursor. We only need to convert the rotation amplitude of the trackball in the up, down, left and right directions into the change value of the X and Y axis coordinates of the mouse on the screen. This way, the user can easily and comfortably operate the smart pen, move the cursor to the area he wants to operate, and move the cursor to the target area easily after moving. In the mode of document, web browsing, etc., we can also scroll through the page easily by scrolling, which is much more precise than the original smart pen. By combining the buttons, it is easy to realize some operations that need to be moved and dragged by the trackball rotation. In the technical solution of the embodiment, the pulse signal generated when the trackball is rotated is obtained by the built-in sensor of the smart pen, and the rotation direction and the rotation range of the trackball are determined according to the pulse signal, and the current orientation of the smart pen is collected by the built-in sensor of the smart pen. The current orientation of the smart pen is a first preset direction, and the writing mode corresponding to the smart pen is set to an erasing mode, in which the erasing coincides with the displacement of the trackball in the vertical and horizontal directions. The original writing track can expand the interaction mode of the smart pen, and can provide users with a new operating experience while improving the comfort of the user during remote control.
实施例四Embodiment 4
图4为本发明实施例四提供的一种智能笔的控制装置的结构示意图。本实施例可适用于智能笔的控制的情况,该装置可采用软件和/或硬件的方式实现,该装置可集成在任何提供智能笔的控制功能的设备中,如图4所示,所述智能笔的控制装置具体包括:获取模块410、确定模块420和第一控制模块430。4 is a schematic structural diagram of a control device for a smart pen according to Embodiment 4 of the present invention. The embodiment can be applied to the control of the smart pen. The device can be implemented in software and/or hardware. The device can be integrated in any device that provides the control function of the smart pen, as shown in FIG. 4 . The control device of the smart pen specifically includes: an obtaining module 410, a determining module 420, and a first control module 430.
其中,获取模块410,用于通过智能笔内置的传感器获取轨迹球转动时产生的脉冲信号;The obtaining module 410 is configured to acquire a pulse signal generated when the trackball rotates by using a sensor built in the smart pen;
确定模块420,用于根据所述脉冲信号确定轨迹球的转动方向和转动幅度;a determining module 420, configured to determine a rotation direction and a rotation amplitude of the trackball according to the pulse signal;
第一控制模块430,用于根据所述转动方向和转动幅度控制智能平板屏幕上的光标的移动轨迹。The first control module 430 is configured to control a movement track of the cursor on the smart tablet screen according to the rotation direction and the rotation amplitude.
可选的,还包括:Optionally, it also includes:
第二控制模块,用于在根据所述脉冲信号确定轨迹球的转动方向和转动幅度之后,于获取到触发操作时,根据所述轨迹球的转动方向和转动幅度控制智能平板屏幕上的书写内容的移动轨迹。a second control module, configured to control the writing content on the smart tablet screen according to the rotation direction and the rotation amplitude of the trackball when the triggering operation is acquired after determining the rotation direction and the rotation amplitude of the trackball according to the pulse signal The movement track.
可选的,还包括:Optionally, it also includes:
朝向采集模块,用于通过智能笔内置的传感器采集智能笔的当前朝向;An orientation module is configured to collect a current orientation of the smart pen by using a sensor built in the smart pen;
擦除模块,用于若所述智能笔的当前朝向为第一预设方向,则将所述智能笔对应的书写模式设置为擦除模式,在所述擦除模式下,擦除与所述轨迹球在垂直和水平方向的位移重合的原有书写轨迹。An erasing module, configured to set a writing mode corresponding to the smart pen to an erasing mode if the current orientation of the smart pen is a first preset direction, in the erasing mode, erasing and The original writing track of the trackball in which the displacement in the vertical and horizontal directions coincides.
可选的,还包括:Optionally, it also includes:
压力采集模块,用于通过智能笔内置的压力传感器采集通过轨迹球产生的压力值;a pressure collecting module for collecting a pressure value generated by a trackball by a pressure sensor built in the smart pen;
第一操作执行模块,用于若所述压力值大于第一压力阈值,且所述压力值的持续时间大于第一预设时间,则执行第一预设操作;a first operation execution module, configured to perform a first preset operation if the pressure value is greater than the first pressure threshold, and the duration of the pressure value is greater than the first preset time;
第二操作执行模块,用于若连续两次获取到所述压力值大于第一压力阈值,且两次的时间间隔小于第二预设时间,则执行第二预设操作。And a second operation execution module, configured to perform a second preset operation if the pressure value is greater than the first pressure threshold twice and the time interval is less than the second preset time.
本实施例的技术方案,通过智能笔内置的传感器获取轨迹球转动时产生的脉冲信号;根据脉冲信号确定轨迹球的转动方向和转动幅度;根据转动方向和转动幅度控制智能平板屏幕上的光标的移动轨迹,能够扩展智能笔的交互方式,并且能够在提升用户在远程操控时使用舒适度的同时,为用户提供了全新的操作体验。The technical solution of the embodiment obtains a pulse signal generated when the trackball rotates by using a sensor built in the smart pen; determines a rotation direction and a rotation range of the trackball according to the pulse signal; and controls a cursor on the smart tablet screen according to the rotation direction and the rotation amplitude. The trajectory can expand the way the smart pen interacts, and can provide users with a new operating experience while improving the comfort of the user during remote control.
实施例五Embodiment 5
图5为本发明实施例五提供的一种计算机设备的结构示意图。图5示出了适于用来实现本发明实施方式的示例性计算机设备12的框图。图5显示的计算机设备12仅仅是一个示例,不应对本发明实施例的功能和使用范围带来任何限制。FIG. 5 is a schematic structural diagram of a computer device according to Embodiment 5 of the present invention. FIG. 5 illustrates a block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention. The computer device 12 shown in FIG. 5 is merely an example and should not impose any limitation on the function and scope of use of the embodiments of the present invention.
如图5所示,计算机设备12以通用计算设备的形式表现。计算机设备12的组件可以包括但不限于:一个或者多个处理器或者处理单元16,系统存储器28,连接不同系统组件(包括系统存储器28和处理单元16)的总线18。As shown in Figure 5, computer device 12 is embodied in the form of a general purpose computing device. Components of computer device 12 may include, but are not limited to, one or more processors or processing units 16, system memory 28, and bus 18 that connects different system components, including system memory 28 and processing unit 16.
总线18表示几类总线结构中的一种或多种,包括存储器总线或者存储器控制器,外围总线,图形加速端口,处理器或者使用多种总线结构中的任意总线 结构的局域总线。举例来说,这些体系结构包括但不限于工业标准体系结构(ISA)总线,微通道体系结构(MAC)总线,增强型ISA总线、视频电子标准协会(VESA)局域总线以及外围组件互连(PCI)总线。 Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of a variety of bus structures. For example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA Bus, a Video Electronics Standards Association (VESA) local bus, and peripheral component interconnects ( PCI) bus.
计算机设备12典型地包括多种计算机系统可读介质。这些介质可以是任何能够被计算机设备12访问的可用介质,包括易失性和非易失性介质,可移动的和不可移动的介质。 Computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by computer device 12, including both volatile and nonvolatile media, removable and non-removable media.
系统存储器28可以包括易失性存储器形式的计算机系统可读介质,例如随机存取存储器(RAM)30和/或高速缓存存储器32。计算机设备12可以进一步包括其它可移动/不可移动的、易失性/非易失性计算机系统存储介质。仅作为举例,存储系统34可以用于读写不可移动的、非易失性磁介质(图5未显示,通常称为“硬盘驱动器”)。尽管图5中未示出,可以提供用于对可移动非易失性磁盘(例如“软盘”)读写的磁盘驱动器,以及对可移动非易失性光盘(例如CD-ROM,DVD-ROM或者其它光介质)读写的光盘驱动器。在这些情况下,每个驱动器可以通过一个或者多个数据介质接口与总线18相连。存储器28可以包括至少一个程序产品,该程序产品具有一组(例如至少一个)程序模块,这些程序模块被配置以执行本发明各实施例的功能。 System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and/or cache memory 32. Computer device 12 may further include other removable/non-removable, volatile/non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (not shown in Figure 5, commonly referred to as a "hard disk drive"). Although not shown in FIG. 5, a disk drive for reading and writing to a removable non-volatile disk (such as a "floppy disk"), and a removable non-volatile disk (such as a CD-ROM, DVD-ROM) may be provided. Or other optical media) read and write optical drive. In these cases, each drive can be coupled to bus 18 via one or more data medium interfaces. Memory 28 can include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of various embodiments of the present invention.
具有一组(至少一个)程序模块42的程序/实用工具40,可以存储在例如存储器28中,这样的程序模块42包括——但不限于——操作系统、一个或者多个应用程序、其它程序模块以及程序数据,这些示例中的每一个或某种组合中可能包括网络环境的实现。程序模块42通常执行本发明所描述的实施例中的功能和/或方法。A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more applications, other programs Modules and program data, each of these examples or some combination may include an implementation of a network environment. Program module 42 typically performs the functions and/or methods of the described embodiments of the present invention.
计算机设备12也可以与一个或多个外部设备14(例如键盘、指向设备、 显示器24等)通信,还可与一个或者多个使得用户能与该计算机设备12交互的设备通信,和/或与使得该计算机设备12能与一个或多个其它计算设备进行通信的任何设备(例如网卡,调制解调器等等)通信。这种通信可以通过输入/输出(I/O)接口22进行。并且,计算机设备12还可以通过网络适配器20与一个或者多个网络(例如局域网(LAN),广域网(WAN)和/或公共网络,例如因特网)通信。如图所示,网络适配器20通过总线18与计算机设备12的其它模块通信。应当明白,尽管图中未示出,可以结合计算机设备12使用其它硬件和/或软件模块,包括但不限于:微代码、设备驱动器、冗余处理单元、外部磁盘驱动阵列、RAID系统、磁带驱动器以及数据备份存储系统等。 Computer device 12 may also be in communication with one or more external devices 14 (eg, a keyboard, pointing device, display 24, etc.), and may also be in communication with one or more devices that enable a user to interact with the computer device 12, and/or Any device (eg, a network card, modem, etc.) that enables the computer device 12 to communicate with one or more other computing devices. This communication can take place via an input/output (I/O) interface 22. Also, computer device 12 can communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and/or a public network, such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with other modules of computer device 12 via bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be utilized in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives. And data backup storage systems, etc.
处理单元16通过运行存储在系统存储器28中的程序,从而执行各种功能应用以及数据处理,例如实现本发明实施例所提供的智能笔的控制方法:通过智能笔内置的传感器获取轨迹球转动时产生的脉冲信号;根据所述脉冲信号确定轨迹球的转动方向和转动幅度;根据所述转动方向和转动幅度控制智能平板屏幕上的光标的移动轨迹。The processing unit 16 executes various functions and data processing by running a program stored in the system memory 28, for example, a control method of the smart pen provided by the embodiment of the present invention: when the trackball is rotated by the built-in sensor of the smart pen Generating a pulse signal; determining a rotation direction and a rotation amplitude of the trackball according to the pulse signal; and controlling a movement track of the cursor on the smart tablet screen according to the rotation direction and the rotation amplitude.
实施例六Embodiment 6
本发明实施例六提供了一种计算机可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现如本申请所有发明实施例提供的智能笔的控制方法:通过智能笔内置的传感器获取轨迹球转动时产生的脉冲信号;根据所述脉冲信号确定轨迹球的转动方向和转动幅度;根据所述转动方向和转动幅度控制智能平板屏幕上的光标的移动轨迹。The sixth embodiment of the present invention provides a computer readable storage medium, which is stored with a computer program, and when the program is executed by the processor, the control method of the smart pen provided by the embodiments of the present invention is implemented by using a smart pen. The sensor acquires a pulse signal generated when the trackball rotates; determines a rotation direction and a rotation amplitude of the trackball according to the pulse signal; and controls a movement track of the cursor on the smart tablet screen according to the rotation direction and the rotation amplitude.
可以采用一个或多个计算机可读的介质的任意组合。计算机可读介质可以 是计算机可读信号介质或者计算机可读存储介质。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子(非穷举的列表)包括:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机存取存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(EPROM或闪存)、光纤、便携式紧凑磁盘只读存储器(CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本文件中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。Any combination of one or more computer readable media can be utilized. The computer readable medium can be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the above. More specific examples (non-exhaustive lists) of computer readable storage media include: electrical connections having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read only memory (ROM), Erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disk read only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium can be any tangible medium that can contain or store a program, which can be used by or in connection with an instruction execution system, apparatus or device.
计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的程序代码。这种传播的数据信号可以采用多种形式,包括——但不限于——电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。A computer readable signal medium may include a data signal that is propagated in the baseband or as part of a carrier, carrying computer readable program code. Such propagated data signals can take a variety of forms including, but not limited to, electromagnetic signals, optical signals, or any suitable combination of the foregoing. The computer readable signal medium can also be any computer readable medium other than a computer readable storage medium, which can transmit, propagate, or transport a program for use by or in connection with the instruction execution system, apparatus, or device. .
计算机可读介质上包含的程序代码可以用任何适当的介质传输,包括——但不限于——无线、电线、光缆、RF等等,或者上述的任意合适的组合。Program code embodied on a computer readable medium can be transmitted by any suitable medium, including but not limited to wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
可以以一种或多种程序设计语言或其组合来编写用于执行本发明操作的计算机程序代码,所述程序设计语言包括面向对象的程序设计语言-诸如Java、Smalltalk、C++,还包括常规的过程式程序设计语言-诸如”C”语言或类似的程序设计语言。程序代码可以完全地在用户计算机上执行、部分地在用户计算机上执行、作为一个独立的软件包执行、部分在用户计算机上部分在远程计算 机上执行、或者完全在远程计算机或服务器上执行。在涉及远程计算机的情形中,远程计算机可以通过任意种类的网络——包括局域网(LAN)或广域网(WAN)-连接到用户计算机,或者,可以连接到外部计算机(例如利用因特网服务提供商来通过因特网连接)。Computer program code for performing the operations of the present invention may be written in one or more programming languages, or a combination thereof, including an object oriented programming language - such as Java, Smalltalk, C++, and also conventional. Procedural programming language - such as the "C" language or a similar programming language. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer, partly on the remote computer, or entirely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer via any kind of network, including a local area network (LAN) or wide area network (WAN), or can be connected to an external computer (eg, using an Internet service provider) Internet connection).
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only the preferred embodiments of the present invention and the technical principles applied thereto. Those skilled in the art will appreciate that the present invention is not limited to the specific embodiments described herein, and that various modifications, changes and substitutions may be made without departing from the scope of the invention. Therefore, the present invention has been described in detail by the above embodiments, but the present invention is not limited to the above embodiments, and other equivalent embodiments may be included without departing from the inventive concept. The scope is determined by the scope of the appended claims.

Claims (11)

  1. 一种智能笔,其特征在于,包括笔体、书写笔尖、轨迹球、辊柱、传感器和无线模组;A smart pen, comprising: a pen body, a writing pen tip, a track ball, a roller column, a sensor and a wireless module;
    所述书写笔尖设置于所述笔体的第一端,用于在智能平板的屏幕运动以被所述智能平板的触摸组件检测到;The writing pen tip is disposed at a first end of the pen body for movement on a screen of the smart tablet to be detected by the touch component of the smart tablet;
    所述轨迹球设置于所述笔体的第二端,所述轨迹球带动辊柱转动;The trackball is disposed at a second end of the pen body, and the trackball drives the roller column to rotate;
    所述传感器设置于所述笔体内部,装在辊柱端部,用于在轨迹球转动时产生脉冲信号;The sensor is disposed inside the pen body and is mounted at an end of the roller column for generating a pulse signal when the trackball rotates;
    所述无线模组设置于所述笔体内部,用于向所述智能平板发送数据,其中,所述数据包括脉冲信号。The wireless module is disposed inside the pen body for transmitting data to the smart tablet, wherein the data includes a pulse signal.
  2. 一种智能笔的控制方法,其特征在于,包括:A smart pen control method, comprising:
    通过智能笔内置的传感器获取轨迹球转动时产生的脉冲信号;Acquiring the pulse signal generated when the trackball rotates by the built-in sensor of the smart pen;
    根据所述脉冲信号确定轨迹球的转动方向和转动幅度;Determining a rotation direction and a rotation range of the trackball according to the pulse signal;
    根据所述转动方向和转动幅度控制智能平板屏幕上的光标的移动轨迹。The movement trajectory of the cursor on the smart tablet screen is controlled according to the rotation direction and the rotation amplitude.
  3. 根据权利要求2所述的控制方法,其特征在于,根据所述脉冲信号确定轨迹球的转动方向和转动幅度之后,还包括:The control method according to claim 2, wherein after determining the rotation direction and the rotation range of the trackball according to the pulse signal, the method further includes:
    于获取到触发操作时,根据所述轨迹球的转动方向和转动幅度控制智能平板屏幕上的书写内容的移动轨迹。When the triggering operation is acquired, the movement trajectory of the writing content on the smart tablet screen is controlled according to the rotation direction and the rotation amplitude of the trackball.
  4. 根据权利要求2所述的控制方法,其特征在于,根据所述脉冲信号确定轨迹球的转动方向和转动幅度之后,还包括:The control method according to claim 2, wherein after determining the rotation direction and the rotation range of the trackball according to the pulse signal, the method further includes:
    通过智能笔内置的传感器采集智能笔的当前朝向;Collecting the current orientation of the smart pen through the built-in sensor of the smart pen;
    若所述智能笔的当前朝向为第一预设方向,则将所述智能笔对应的书写模式设置为擦除模式,在所述擦除模式下,擦除与所述轨迹球在垂直和水平方向 的位移重合的原有书写轨迹。If the current orientation of the smart pen is the first preset direction, setting a writing mode corresponding to the smart pen to an erasing mode, in which the erasing and the trackball are vertical and horizontal The displacement of the direction coincides with the original writing trajectory.
  5. 根据权利要求2所述的控制方法,其特征在于,还包括:The control method according to claim 2, further comprising:
    通过智能笔内置的压力传感器采集通过轨迹球产生的压力值;The pressure value generated by the trackball is collected by a pressure sensor built in the smart pen;
    若所述压力值大于第一压力阈值,且所述压力值的持续时间大于第一预设时间,则执行第一预设操作;If the pressure value is greater than the first pressure threshold, and the duration of the pressure value is greater than the first preset time, performing a first preset operation;
    若连续两次获取到所述压力值大于第一压力阈值,且两次的时间间隔小于第二预设时间,则执行第二预设操作。If the pressure value is obtained twice consecutively than the first pressure threshold, and the time interval between the two times is less than the second preset time, the second preset operation is performed.
  6. 一种智能笔的控制装置,其特征在于,包括:A control device for a smart pen, comprising:
    获取模块,用于通过智能笔内置的传感器获取轨迹球转动时产生的脉冲信号;The acquiring module is configured to acquire a pulse signal generated when the trackball rotates by using a sensor built in the smart pen;
    确定模块,用于根据所述脉冲信号确定轨迹球的转动方向和转动幅度;a determining module, configured to determine a rotation direction and a rotation amplitude of the trackball according to the pulse signal;
    第一控制模块,用于根据所述转动方向和转动幅度控制智能平板屏幕上的光标的移动轨迹。The first control module is configured to control a movement track of the cursor on the smart tablet screen according to the rotation direction and the rotation amplitude.
  7. 根据权利要求6所述的控制装置,其特征在于,还包括:The control device according to claim 6, further comprising:
    第二控制模块,用于在根据所述脉冲信号确定轨迹球的转动方向和转动幅度之后,于获取到触发操作时,根据所述轨迹球的转动方向和转动幅度控制智能平板屏幕上的书写内容的移动轨迹。a second control module, configured to control the writing content on the smart tablet screen according to the rotation direction and the rotation amplitude of the trackball when the triggering operation is acquired after determining the rotation direction and the rotation amplitude of the trackball according to the pulse signal The movement track.
  8. 根据权利要求6所述的控制装置,其特征在于,还包括:The control device according to claim 6, further comprising:
    朝向采集模块,用于通过智能笔内置的传感器采集智能笔的当前朝向;An orientation module is configured to collect a current orientation of the smart pen by using a sensor built in the smart pen;
    擦除模块,用于若所述智能笔的当前朝向为第一预设方向,则将所述智能笔对应的书写模式设置为擦除模式,在所述擦除模式下,擦除与所述轨迹球在垂直和水平方向的位移重合的原有书写轨迹。An erasing module, configured to set a writing mode corresponding to the smart pen to an erasing mode if the current orientation of the smart pen is a first preset direction, in the erasing mode, erasing and The original writing track of the trackball in which the displacement in the vertical and horizontal directions coincides.
  9. 根据权利要求6所述的控制装置,其特征在于,还包括:The control device according to claim 6, further comprising:
    压力采集模块,用于通过智能笔内置的压力传感器采集通过轨迹球产生的压力值;a pressure collecting module for collecting a pressure value generated by a trackball by a pressure sensor built in the smart pen;
    第一操作执行模块,用于若所述压力值大于第一压力阈值,且所述压力值的持续时间大于第一预设时间,则执行第一预设操作;a first operation execution module, configured to perform a first preset operation if the pressure value is greater than the first pressure threshold, and the duration of the pressure value is greater than the first preset time;
    第二操作执行模块,用于若连续两次获取到所述压力值大于第一压力阈值,且两次的时间间隔小于第二预设时间,则执行第二预设操作。And a second operation execution module, configured to perform a second preset operation if the pressure value is greater than the first pressure threshold twice and the time interval is less than the second preset time.
  10. 一种计算机设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现如权利要求2-5中任一所述的方法。A computer apparatus comprising a memory, a processor, and a computer program stored on the memory and operable on the processor, wherein the processor executes the program as claimed in any one of claims 2-5 The method described.
  11. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现如权利要求2-5中任一所述的方法。A computer readable storage medium having stored thereon a computer program, wherein the program, when executed by a processor, implements the method of any of claims 2-5.
PCT/CN2017/116743 2017-10-19 2017-12-17 Smart pen, smart pen control method, apparatus, device, and storage medium WO2019075895A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201710976496.X 2017-10-19
CN201710976496.XA CN107656633A (en) 2017-10-19 2017-10-19 A kind of smart pen, the control method of smart pen, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2019075895A1 true WO2019075895A1 (en) 2019-04-25

Family

ID=61118889

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/116743 WO2019075895A1 (en) 2017-10-19 2017-12-17 Smart pen, smart pen control method, apparatus, device, and storage medium

Country Status (2)

Country Link
CN (1) CN107656633A (en)
WO (1) WO2019075895A1 (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109358799B (en) * 2018-09-11 2021-06-15 北京思骏教育科技有限公司 Method for adding handwritten annotation information input by user on handwriting equipment
CN109308474B (en) * 2018-09-26 2021-11-23 广东小天才科技有限公司 Glasses photographing method based on smart pen, glasses and storage medium
CN109407886A (en) * 2018-10-16 2019-03-01 北京科加触控技术有限公司 A kind of remote interaction method, apparatus and system
CN109901744A (en) * 2019-02-12 2019-06-18 广州视源电子科技股份有限公司 Interactive intelligent tablet computer control method, device, interactive intelligent tablet computer and storage medium
CN111930249B (en) * 2020-07-21 2021-08-17 深圳市鹰硕教育服务有限公司 Intelligent pen image processing method and device and electronic equipment
CN111966276A (en) * 2020-07-28 2020-11-20 锐达互动科技股份有限公司 Method, intelligent pen, equipment and medium for realizing remote annotation
CN113625890A (en) * 2021-10-11 2021-11-09 广东新空电子科技股份有限公司 Function switching method and device for touch control pen

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2627566Y (en) * 2003-07-29 2004-07-21 陈其良 Computer input device
CN101957668A (en) * 2009-07-15 2011-01-26 太瀚科技股份有限公司 Electromagnetic pen
CN102736746A (en) * 2011-03-31 2012-10-17 日立民用电子株式会社 Electronic pen and projector system using the same

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN204557399U (en) * 2015-03-04 2015-08-12 付强 A kind of touch screen mouse pen
CN106648329A (en) * 2016-12-30 2017-05-10 维沃移动通信有限公司 Application icon display method and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2627566Y (en) * 2003-07-29 2004-07-21 陈其良 Computer input device
CN101957668A (en) * 2009-07-15 2011-01-26 太瀚科技股份有限公司 Electromagnetic pen
CN102736746A (en) * 2011-03-31 2012-10-17 日立民用电子株式会社 Electronic pen and projector system using the same

Also Published As

Publication number Publication date
CN107656633A (en) 2018-02-02

Similar Documents

Publication Publication Date Title
WO2019075895A1 (en) Smart pen, smart pen control method, apparatus, device, and storage medium
US11402978B2 (en) Devices, methods, and systems for manipulating user interfaces
US20190018585A1 (en) Touch operation method based on interactive electronic white board and system thereof
TWI479369B (en) Computer-storage media and method for virtual touchpad
US6903730B2 (en) In-air gestures for electromagnetic coordinate digitizers
US20070176904A1 (en) Size variant pressure eraser
US20130194173A1 (en) Touch free control of electronic systems and associated methods
US20090138800A1 (en) Apparatus, method and computer-readable storage medium for directing operation of a software application via a touch-sensitive surface
US20140354553A1 (en) Automatically switching touch input modes
KR20140111497A (en) Method for deleting item on touch screen, machine-readable storage medium and portable terminal
WO2019033655A1 (en) Method and apparatus for mistouch prevention, device, and storage medium
TWI514246B (en) Methods for interacting with an electronic device by using a stylus comprising body having conductive portion and systems utilizing the same
US9372622B2 (en) Method for recording a track and electronic device using the same
WO2021197487A1 (en) Method and apparatus for controlling terminal screen by means of mouse, mouse and storage medium
CN111770368A (en) Control method and device for large-screen display equipment, storage medium and electronic equipment
KR200477008Y1 (en) Smart phone with mouse module
CN101086693A (en) Input device and input method
WO2019085185A1 (en) Intelligent pen, control method, device and apparatus for intelligent pen, and storage medium
US20190361536A1 (en) Using a wearable device to control characteristics of a digital pen
KR20210023434A (en) Display apparatus and control method thereof
JP2022547667A (en) Human-computer interaction method, apparatus and system
CN114764270B (en) Input conversion method, electronic device and readable medium
WO2022087976A1 (en) Intelligent interaction method, apparatus, and device for touch display device, and storage medium
US20230409145A1 (en) Touch response method, device, interactive white board, and storage medium
WO2023231731A1 (en) Writing mode switching method and device, interactive tablet, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17928838

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17928838

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 16/10/2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17928838

Country of ref document: EP

Kind code of ref document: A1