WO2018090755A1 - 智能平板的控制方法及系统 - Google Patents

智能平板的控制方法及系统 Download PDF

Info

Publication number
WO2018090755A1
WO2018090755A1 PCT/CN2017/105066 CN2017105066W WO2018090755A1 WO 2018090755 A1 WO2018090755 A1 WO 2018090755A1 CN 2017105066 W CN2017105066 W CN 2017105066W WO 2018090755 A1 WO2018090755 A1 WO 2018090755A1
Authority
WO
WIPO (PCT)
Prior art keywords
smart
acceleration data
tablet
target acceleration
data
Prior art date
Legal status (The legal status 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 status listed.)
Ceased
Application number
PCT/CN2017/105066
Other languages
English (en)
French (fr)
Inventor
邱伟波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Publication of WO2018090755A1 publication Critical patent/WO2018090755A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 two-dimensional [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 OR CALCULATING; 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • G06F3/0488Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04883Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser using a touch-screen or digitiser, e.g. input of commands through traced gestures for inputting data by handwriting, e.g. gesture or text

Definitions

  • the present invention relates to the field of electronic technologies, and in particular, to a control method and system for a smart tablet.
  • the smart tablet is a new type of electronic presentation device, which is usually used together with a smart writing pen to realize PPT presentation, video presentation and graphic presentation. It is widely used in education, business meetings, business presentations and other fields.
  • the smart tablet In practical applications, it is often necessary to control the smart tablet, such as PPT page turning and playback volume adjustment.
  • the prior art is implemented by setting a function button on the smart pen, and when the user presses a function button, in response to the The function button is pressed, and the smart writing pen sends a corresponding control command to the smart tablet, and the smart tablet executes a corresponding tablet control event according to the corresponding control command to implement corresponding control of the smart tablet.
  • the inventors have found that the prior art has the following deficiencies.
  • the search process may take a lot of time and effort, reducing the ease of use of the control process, and the user experience is not good.
  • the technical problem to be solved by the present invention is to provide a control method and system for a smart tablet, which can realize the control of the smart tablet simply and quickly.
  • an aspect of an embodiment of the present invention provides a method for controlling a smart tablet, including:
  • the smart writing pen obtains its own target acceleration data according to its current motion
  • the smart writing pen sends the target acceleration data to the smart tablet when its current motion is valid
  • the smart tablet receives the target acceleration data.
  • the smart tablet executes a corresponding tablet control event according to the target acceleration data.
  • the method further includes:
  • the step S11 specifically includes:
  • the intelligent writing pen obtains its own original acceleration data according to its current motion
  • the smart writing pen calculates current error data according to current environmental noise;
  • the current environmental noise includes ADC noise and motion sensor noise;
  • the smart writing pen filters the original acceleration data to obtain filtered acceleration data
  • the smart writing pen subtracts the filtered error data from the current error data to generate difference data
  • the smart writing pen takes a maximum value of the difference data to obtain its own target acceleration data.
  • the step S12 specifically includes:
  • the smart writing pen encodes the target acceleration data according to a preset infrared communication protocol to generate a target data packet when the current motion is valid;
  • the target data packet includes a packet header, a packet number, and a target arranged in sequence. Acceleration data, and check digits;
  • the smart pen sends the target data packet to the smart tablet.
  • the step S14 specifically includes:
  • the smart tablet determines a moving direction of the smart writing pen according to the target acceleration data
  • the smart tablet performs a tablet control event corresponding to the direction of motion.
  • the smart panel before the smart tablet performs the corresponding flat panel control event of the moving direction, the smart panel further includes:
  • the smart tablet performs a flat panel control event corresponding to the moving direction, specifically:
  • the tablet control event corresponding to the moving direction in the first preset value interval is performed.
  • the tablet control event corresponding to the moving direction in the second preset value interval is executed.
  • an aspect of an embodiment of the present invention further provides a control system for a smart tablet, including a smart writing pen and a smart tablet;
  • the smart writing pen is configured to acquire its own target acceleration data according to its current motion
  • the smart writing pen is further configured to send the target acceleration data to the smart tablet when its current motion is valid;
  • the smart tablet is configured to receive the target acceleration data
  • the smart tablet is further configured to execute a corresponding tablet control event according to the target acceleration data.
  • the smart writing pen is further used to:
  • the smart writing pen is specifically used to:
  • the current ambient noise includes ADC noise and acceleration sensor noise
  • the difference data is taken to a maximum value to obtain its own target acceleration data.
  • the smart writing pen is specifically used to:
  • the target acceleration data is encoded according to a preset infrared communication protocol to generate a target data packet;
  • the target data packet includes a packet header, a packet number, a target acceleration data, and a calibration Check position;
  • the target data packet is sent to the smart tablet.
  • the smart tablet is specifically used to:
  • a flat panel control event corresponding to the direction of motion is performed.
  • the smart tablet is further configured to:
  • the smart tablet is specifically used to:
  • the tablet control event corresponding to the moving direction in the second preset value interval is executed.
  • the method and system for controlling a smart tablet provided by the embodiment of the present invention, by detecting the current motion of the smart writing pen, acquiring motion acceleration data of the smart writing pen and transmitting the same to the smart tablet, correspondingly,
  • the smart tablet performs a corresponding tablet control event according to the motion acceleration data of the smart writing pen; it can be seen that the user only needs to make the smart writing pen complete the corresponding posture movement, so that the corresponding control of the smart tablet can be realized. Therefore, the invention can realize the control of the smart tablet simply and quickly, simplify the control process, and effectively improve the user experience.
  • FIG. 1 is a schematic flow chart of an embodiment of a method for controlling a smart tablet provided by the present invention
  • FIG. 2 is a schematic structural view of an embodiment of a control system of a smart tablet provided by the present invention.
  • FIG. 1 is a schematic flowchart diagram of an embodiment of a method for controlling a smart tablet according to the present invention.
  • the control method of the smart tablet includes at least the following steps:
  • the smart writing pen obtains its own target acceleration data according to its current motion
  • the smart writing pen sends the target acceleration data to the smart tablet when its current motion is valid
  • the smart tablet receives the target acceleration data.
  • the smart tablet executes a corresponding tablet control event according to the target acceleration data.
  • the smart writing pen on the side of the smart writing pen, includes a processor, a communication module and a motion sensor on a hardware level.
  • the motion sensor is an acceleration sensor
  • the user holds the smart writing pen and causes the smart writing pen to perform a specific posture movement (such as moving up, down, left, right, forward, or backward in the air), at the same time, setting An acceleration sensor on the smart writing pen will detect the current motion of the smart writing pen and acquire its own target acceleration data, and then the processor, when determining that the current motion is valid, The target acceleration data is sent to the smart tablet.
  • the smart tablet on the smart tablet side, includes a processor and a communication module on a hardware level.
  • the smart tablet receives target acceleration data from the smart writing pen through its communication module, and parses it, and then executes a corresponding tablet control event according to the analysis result. Specifically, when the smart tablet detects that the target acceleration data meets a certain preset condition, the system software of the smart tablet generates a corresponding control instruction, and executes the control instruction by the processing module of the smart tablet. And controlling the corresponding application software in the smart tablet to complete the corresponding control event.
  • the smart tablet performs a tablet control event
  • the user can make the smart pen complete the corresponding posture motion again, and then the smart writing
  • the pen will perform steps S11 and S12 again, that is, each time the smart pen performs the posture motion, the smart pen will acquire the target acceleration data once, and when it is determined that the current movement of the smart pen is valid,
  • the target acceleration data is sent to the smart tablet, and the smart tablet performs steps S13 and S14 again, that is, the smart tablet receives the target acceleration data, and executes a corresponding tablet control event according to the target acceleration data.
  • the target acceleration data may include multi-axis target acceleration data.
  • the target acceleration data includes X-axis, Y-axis, and Z-axis three-axis target acceleration data, in which case the smart stylus judges the intelligence based on the X-axis, Y-axis, and Z-axis three-axis target acceleration data. Whether the current motion of the writing pen is valid, and when determining that the current motion is valid, transmitting the X-axis, Y-axis, and Z-axis three-axis target acceleration data to the smart tablet.
  • the smart tablet receives the three-axis target acceleration data, and performs a corresponding tablet control event according to the X-axis, Y-axis and Z-axis three-axis target acceleration data, for example, if the smart writing pen is preset When moving in the negative direction of the X-axis, the X-axis target acceleration data is negative, and the smart writing pen moves in the negative direction of the X-axis.
  • the corresponding whiteboard control event is to control the PPT to turn the page, and when the smart tablet detects the When the target acceleration data of the X-axis, the Y-axis, and the Z-axis are -900 mg, 0, and 0, respectively, the smart tablet considers that the smart writing pen moves in the negative direction of the X-axis, and the system software of the smart tablet generates a PPT. And turning the page control command, and executing, by the processing module of the smart tablet, the PPT page turning control instruction, thereby controlling the PPT software in the smart tablet to complete the page turning control event.
  • the smart tablet detects that there is more than one non-zero target acceleration data in the target data packet, it indicates that the gesture motion of the smart writing pen is not completely moving along the spatial coordinate axis, and its motion track and space The coordinate axis is at an angle.
  • the target acceleration data having the largest absolute value in the target data packet may be selected, and the smart tablet considers the smart writing pen to be the target acceleration along the absolute maximum value.
  • the smart tablet If the axis corresponding to the data moves, for example, the target acceleration data of the X-axis, the Y-axis, and the Z-axis in the target data packet received by the smart tablet are 900 mg, 450 mg, and 0, respectively, the smart tablet considers the smart The writing pen moves in the positive direction of the X-axis, thereby executing the smart writing pen to move the corresponding flat panel control event in the positive direction of the X-axis.
  • the smart tablet performs corresponding flat panel control events according to the target acceleration data, and other embodiments, which are not specifically limited by the present invention.
  • the control of the smart tablet if the control of the smart tablet is implemented by a button disposed on the smart pen, when the user needs the smart tablet to be able to write according to the smart tablet The pen button operation performs more tablet control events, It is necessary to set more buttons on the smart pen. Similarly, the smart tablet is controlled by the smart pen to complete the control of the smart tablet. When the user needs the smart tablet to perform more tablet control events according to the gesture movement of the smart pen, The multi-axis target acceleration data needs to be acquired. For example, if only the target acceleration data of the smart writing pen on the X-axis is acquired, the smart tablet can only perform corresponding motion according to the posture movement of the smart writing pen on the X-axis.
  • a tablet control event specifically, the smart writing pen moves in a positive direction of the X axis, the smart tablet performs a corresponding tablet control event, the smart writing pen moves in a negative direction of the X axis, and the smart tablet performs another A corresponding tablet control event.
  • the target acceleration data of the smart writing pen on the X axis, the Y axis, and the Z axis is acquired, the smart writing pen moves in the positive direction of the X axis, the Y axis, and the Z axis, and the smart tablet can be separately executed.
  • a corresponding and different flat panel control event similarly, the smart writing pen moves in the negative direction of the X axis, the Y axis, and the Z axis, and the smart tablet can respectively perform a corresponding and different The tablet controls the event such that the smart tablet can perform at least six different tablet control events, so that the smart pen can achieve more control of the smart tablet.
  • the control method of the smart tablet detects the current motion of the smart writing pen, thereby acquiring the target acceleration data of the smart writing pen and transmitting the target acceleration data to the smart tablet.
  • the smart tablet receives the target acceleration data, and executes a corresponding tablet control event according to the target acceleration data of the smart writing pen; it can be seen that the user only needs to make the smart writing pen complete the corresponding posture motion, and the pair can be realized.
  • the corresponding control of the smart tablet can control the smart tablet quickly and easily, simplify the control process, and effectively improve the user experience.
  • the method before the step S12, the method further includes:
  • an erroneous operation on the smart writing pen may occur, for example, when the smart writing pen is not needed, some users are accustomed to placing the smart writing pen on the audio device.
  • the sound device generates vibration when playing a sound, which causes the smart writing pen to undergo a slight movement. In fact, this is only a misoperation, and the user does not want the smart tablet to perform a certain tablet control event.
  • the smart writing pen still sends the acceleration data corresponding to the erroneous operation to the smart tablet, the data sending task needs to occupy corresponding resources, and sending unnecessary data will waste resources, and May affect the normal operation of the smart tablet.
  • the target acceleration data before the target acceleration data is sent to the smart tablet, it is determined whether the current motion of the smart pen is valid according to the target acceleration data, specifically, by a software algorithm. To eliminate the adverse effects of misoperations on the control process. In general, the amplitude of the erroneous operation is relatively small. Therefore, before the target acceleration data is transmitted to the smart tablet, the magnitude of the absolute value of the target acceleration data is first determined.
  • the absolute value of the target acceleration data is greater than a preset threshold, it indicates that the smart pen has a large amplitude of motion, is not an erroneous operation, determines that the current motion is valid, and then sends the target acceleration data to the If the absolute value of the target acceleration data is less than or equal to a preset threshold, the motion of the smart stylus is small, which is an erroneous operation, and the current motion is determined to be invalid, and the target is not Data acceleration data is sent to the smart tablet.
  • the target acceleration data includes multi-axis target acceleration data
  • whether the current motion of the smart stylus is valid according to the target acceleration data includes a plurality of situations.
  • the target acceleration data includes an X axis, a Y axis, and a Z
  • the target acceleration data is not sent to the smart tablet; in the second case, when at least one of the three-axis target acceleration data is greater than a preset threshold, it is determined that the current movement of the smart pen is valid, and If there is target acceleration data less than or equal to a preset threshold in the three-axis target acceleration data, the target acceleration data less than or equal to the preset threshold is first set to zero, and then the adjusted three-axis target acceleration data is sent.
  • the preset threshold is 200 mg and the X, Y, and Z triaxial target acceleration data are 900 mg, 50 mg, and 50 mg, respectively
  • the adjusted X-axis, Y-axis, and Z-axis target acceleration data are 900 mg, respectively. , 0 and 0
  • the preset threshold is 200 mg
  • the X, Y, and Z triaxial target acceleration data are 900 mg, 450 mg, and 50 mg, respectively
  • the adjusted X , Y-axis and Z-axis target acceleration data are 900mg, 450mg and 0.
  • control method of the smart tablet determines the smartness by determining the magnitude of the absolute value of the target acceleration data before transmitting the target acceleration data to the smart tablet. Whether the current motion of the writing pen is valid, and the target acceleration data is sent to the smart tablet only when the current motion is valid, which can effectively reduce waste of resources, and can effectively solve the smart tablet affected by misoperation. The problem of working properly.
  • the step S11 specifically includes:
  • the smart writing pen obtains its own original acceleration data according to its current motion
  • the smart writing pen calculates current error data according to current environmental noise;
  • the current environmental noise includes ADC noise and motion sensor noise;
  • the smart writing pen filters the original acceleration data to obtain filtered acceleration data.
  • the smart writing pen subtracts the current error data from the filtered acceleration data to generate difference data.
  • the smart writing pen takes a maximum value of the difference data to obtain its own target acceleration data.
  • the acceleration sensor disposed on the smart writing pen detects the posture motion of the smart writing pen, and collects the original acceleration data of the smart writing pen based on the set sampling frequency.
  • the raw acceleration data collected by the acceleration sensor is affected by various environmental noises, such as ADC noise and noise inside the acceleration sensor circuit, if the original acceleration data is directly sent to the smart tablet to make the intelligence
  • the slab performs a corresponding tablet control event according to the original acceleration data, which may cause the smart tablet to have an inaccurate control or a completely uncontrollable problem. Therefore, the raw acceleration data collected by the acceleration sensor needs to be processed to eliminate the adverse effects caused by environmental noise or other interference factors.
  • the error data refers to a DC offset.
  • the working process of the step S112 is as follows. In the idle state, an environmental noise signal of 1 s is acquired, and IIR filtering is performed. A low frequency DC signal is obtained, and the low frequency DC signal is averaged to obtain the DC offset, that is, error data. In addition, during the operation of the circuit, environmental noise and other interference factors are changed. Therefore, the error data is not always constant and needs to be adjusted according to changes in the environment.
  • the step S113 is specifically: performing IIR filtering on the original acceleration data to obtain low-frequency acceleration data, that is, filtered acceleration data.
  • the processing objects are multi-axis original acceleration data
  • the target acceleration data of the smart writing pen also corresponds to multi-axis target acceleration data.
  • the smart writing pen acquires its own original acceleration data according to its current motion, and the original acceleration data includes X-axis original acceleration data, Y-axis original acceleration data, and Z-axis original acceleration data, Then, in the steps S112 to S115, the X-axis, the Y-axis and the Z-axis original acceleration data are respectively processed correspondingly, and the target acceleration data of the finally obtained intelligent writing pen corresponds to the X-axis, the Y-axis and the Z-axis target acceleration. data.
  • control method of the smart tablet provided by the embodiment of the present invention can effectively transmit the processed acceleration data (ie, target acceleration data) to the smart tablet after performing error elimination processing on the original acceleration data. Solving the problem that the smart tablet has inaccurate control or is completely uncontrollable due to the error of the original acceleration data.
  • step S12 specifically includes:
  • the smart writing pen encodes the target acceleration data according to a preset infrared communication protocol to generate a target data packet when the current motion is valid;
  • the target data packet includes a packet header, a packet number, and a target arranged in sequence. Acceleration data, and check digits;
  • the smart pen sends the target data packet to the smart tablet.
  • the smart writing pen sends the target acceleration data by means of wireless communication, wherein a plurality of wireless communication modes are available, such as 2.4G wireless communication, Bluetooth communication, WIFI communication, and infrared. Communication, etc.
  • a plurality of wireless communication modes are available, such as 2.4G wireless communication, Bluetooth communication, WIFI communication, and infrared. Communication, etc.
  • the difference in communication methods and communication protocols will make the speed and quality of communication different.
  • the speed and quality of data transmission affects the speed and accuracy of the smart tablet, and therefore, the speed and quality of data transmission needs to be improved.
  • the infrared communication mode is selected, and after the target acceleration data is obtained, the target acceleration data is encoded by a customized infrared communication protocol, encapsulated into a target data packet, and the target data is further The package is sent to the smart tablet.
  • the structure of the target data packet is as follows:
  • HEAD is the header, including 350us low level and 500us high level.
  • PKT_NUM is a packet number, and each time the smart pen generates a target data packet, the packet number in the target data packet is incremented by one, and the packet number ranges from 0 to 255, and the smart tablet receives After the target data packet is received, it can be checked whether there is a packet loss during the transmission according to the packet number. For example, the packet number of the last target data packet received by the smart tablet is 45, and the currently received The packet number of the target data packet is 47, indicating that packet loss occurs during transmission. Therefore, the packet loss rate or error reporting operation can be performed according to the packet number.
  • X_VALUE, Y_VALUE, and Z_VALUE are the target acceleration data for the X-axis, Y-axis, and Z-axis, respectively, and are signed 16-bit integers in mg.
  • the CRC8 is a check digit, and is used to check whether the smart tablet parses the target data packet by an error. Specifically, after the smart tablet parses a target data packet, the PKT_NUM of the target data packet is Z_VALUE is calculated by a total of 7 bytes, and the calculation result is compared with the CRC8 in the target data packet. If the calculation result is consistent with CRC8, it indicates that the smart tablet parses the target data packet normally, and further The smart tablet executes a corresponding tablet control event according to the parsing result. If the calculation result is inconsistent with the CRC8, it indicates that the smart tablet has an error in parsing the target data packet, and the smart tablet is no longer based on the current The parsing result performs the corresponding flat control event.
  • control method of the smart tablet encapsulates the data packet according to the above-mentioned custom infrared protocol, and can reduce the size of the data packet sent to the smart tablet under the premise of ensuring complete data, thereby improving
  • the transmission speed of the data packet further improves the response speed of the smart tablet, effectively increases the smoothness of the control process, and enhances the user experience.
  • step S14 specifically includes:
  • the smart tablet determines a moving direction of the smart writing pen according to the target acceleration data
  • the smart tablet performs a tablet control event corresponding to the direction of motion.
  • the smart writing pen when the user manipulates the smart writing pen, can be moved in the positive direction of the X axis, the negative direction of the X axis, the positive direction of the Y axis, the negative direction of the Y axis, and the Z axis. Move in the positive direction or in the negative direction of the Z axis.
  • the smart tablet can determine the moving direction of the smart writing pen according to the positive and negative of the target acceleration data of the smart writing pen, for example, pre-defining when the target acceleration data of a certain axis is positive The smart writing pen moves in the positive direction of an axis and vice versa.
  • the smart tablet may perform different tablet control events according to different motion directions of the smart pen, for example, if only one axis of target acceleration data in the target data packet is not zero, The smart tablet parses the target acceleration data of the X axis to a positive value, indicating that the smart pen moves in the positive direction of the X axis, and the smart tablet performs a PPT page turning control event, when the smart tablet resolves to the X axis
  • the target acceleration data is a negative value, indicating that the smart writing pen moves in the negative direction of the X axis, and the smart tablet performs a PPT full screen control event, and when the target acceleration data of the smart tablet parsing to the Y axis is positive, then The smart pen is moved in the positive direction of the Y axis, and the smart tablet performs a play volume increase control event.
  • the smart plate parses the target acceleration data of the Y axis to a negative value, the smart pen along the Y The axis moves in the negative direction
  • the method for controlling the smart tablet further includes: before the smart tablet performs the corresponding flat control event of the moving direction, the method further includes:
  • the smart tablet performs a flat panel control event corresponding to the moving direction, specifically:
  • the tablet control event corresponding to the moving direction in the first preset value interval is performed.
  • the tablet control event corresponding to the moving direction in the second preset value interval is executed.
  • the smart pen is moved along the X axis, and when the user manipulates the smart pen, the smart pen can be slowly moved in the positive direction of the X axis, and quickly Move in the positive direction of the X axis, slowly move in the negative direction of the X axis, or move quickly in the negative direction of the X axis.
  • the smart tablet can determine the motion speed of the smart stylus according to the value interval of the target acceleration data of the smart stylus. For example, if the acceleration sensor is set to ⁇ 2g, according to the actual operation habit of the user.
  • the value interval to which the target acceleration data belongs may be pre-defined as (200 mg, 1000 mg) or (-200 mg, -1000 mg), indicating that the user is slowly moving the smart writing pen when the target acceleration data belongs to the value
  • the interval is [200 mg, 1000 mg] or [-200 mg, -1000 mg], indicating that the user is moving the smart writing pen quickly.
  • the smart tablet can perform different tablet control events in combination with different motion directions and different motion speeds of the smart pen, such as when the smart pen slowly moves in the positive direction of the X axis.
  • the smart tablet parses the X-axis target acceleration data to a positive value, and the numerical interval of the X-axis target acceleration number belongs to [200 mg, 1000 mg], the smart tablet performs a PPT page turning control event, when the smart writing pen When moving rapidly in the positive direction of the X-axis, the smart plate resolves to the X-axis target acceleration data as a positive value, and the numerical interval to which the X-axis target acceleration data belongs is (200 mg, 1000 mg), and the smart tablet performs PPT Full screen control events and more.
  • control method of the smart tablet provided by the embodiment combines the moving direction and the moving speed of the smart writing pen through the group.
  • the way of judging makes the intelligent writing pen realize the control of more functions of the smart tablet.
  • the present invention further provides a control system for a smart tablet, which can implement all the processes of the control method of the smart tablet in the above embodiment.
  • FIG. 2 is a schematic structural diagram of an embodiment of a control system of a smart tablet according to an embodiment of the present invention, including a smart writing pen 21 and a smart tablet 22;
  • the smart writing pen 21 is configured to acquire its own target acceleration data according to its current motion
  • the smart writing pen 21 is further configured to send the target acceleration data to the smart tablet 22 when its current motion is valid;
  • the smart tablet 22 is configured to receive the target acceleration data
  • the smart tablet 22 is further configured to perform a corresponding tablet control event according to the target acceleration data.
  • the smart writing pen 21 includes a target acceleration data acquiring module and a target acceleration data transmitting module; the target acceleration data acquiring module is configured to acquire its own target acceleration data according to its current motion; The target acceleration data transmitting module is configured to transmit the target acceleration data to the smart tablet 22 when its current motion is valid.
  • the smart tablet 22 includes a target acceleration data receiving module and a tablet control event execution module; the target acceleration data receiving module is configured to receive the target acceleration data; and the tablet control event execution module is configured to execute according to the target acceleration data. The corresponding tablet control event.
  • the smart writing pen 21 includes a processor, a communication module and a motion sensor on a hardware level.
  • the motion sensor is an acceleration sensor
  • the user holds the smart writing pen 21 and causes the smart writing pen 21 to perform a specific posture movement (such as moving up, down, left, right, forward, or backward in the air) while
  • the acceleration sensor disposed on the smart writing pen 21 will detect the current motion of the smart writing pen 21 and acquire its own target acceleration data, and then the processor passes the communication when it is determined that the current motion is valid.
  • the module transmits the target acceleration data to the smart tablet 22.
  • the smart tablet 22 includes a processor and a communication module on a hardware level.
  • the smart tablet 22 receives the target acceleration data from the smart writing pen 21 through its communication module, and parses it, and then executes a corresponding tablet control event according to the analysis result. Specifically, when the smart tablet 22 detects that the target acceleration data meets a certain preset condition, the system software of the smart tablet 22 generates a corresponding control instruction, and is executed by the processing module of the smart tablet 22 The control command is further controlled to control the corresponding application software in the smart tablet 22 to complete the corresponding control event.
  • the smart tablet 22 performs a tablet control event
  • the user can once again cause the smart writing pen 21 to complete the corresponding posture movement, and thereafter
  • the smart writing pen 21 will perform steps S11 and S12 again, that is, each time the smart writing pen 21 performs the posture motion, the smart writing pen 21 will acquire the target acceleration data once and determine the current state of the smart writing pen 21
  • the target acceleration data is sent to the smart tablet 22, and the smart tablet 22 performs steps S13 and S14 again, that is, the smart tablet 22 receives the target acceleration data, and executes according to the target acceleration data.
  • the corresponding tablet control event is described in a tablet control event.
  • the target acceleration data may include multi-axis target acceleration data.
  • the target acceleration data includes X-axis, Y-axis, and Z-axis three-axis target acceleration data, in which case the smart writing pen 21 judges the X-axis, Y-axis, and Z-axis three-axis target acceleration data. Whether the current motion of the smart writing pen 21 is valid, and when determining that the current motion is valid, the X-axis and the Y-axis are The Z-axis three-axis target acceleration data is sent to the smart tablet 22.
  • the smart tablet 22 receives the three-axis target acceleration data, and performs a corresponding tablet control event according to the X-axis, Y-axis and Z-axis three-axis target acceleration data, for example, if the smart writing is preset When the pen 21 moves in the negative direction of the X-axis, the X-axis target acceleration data is negative, and the smart writing pen 21 moves in the negative direction of the X-axis.
  • the corresponding whiteboard control event is to control the PPT to turn the page, then when the smart tablet
  • the smart tablet 22 considers that the smart writing pen 21 moves in the negative direction of the X-axis, the smart The system software of the tablet 22 generates a PPT page turning control command, and the processing module of the smart tablet 22 executes the PPT page turning control command, thereby controlling the PPT software in the smart tablet 22 to complete the page turning control event. .
  • the smart tablet 22 detects that there is more than one non-zero target acceleration data in the target data packet, it indicates that the gesture motion of the smart writing pen 21 is not completely moved along the spatial coordinate axis, and its motion trajectory And the spatial coordinate axis is at an angle.
  • the target acceleration data having the largest absolute value in the target data packet may be selected, and the smart tablet 22 considers the smart writing pen 21 to be along the absolute value.
  • the smart The tablet 22 When the axis corresponding to the maximum target acceleration data is moved, for example, when the target acceleration data of the X-axis, the Y-axis, and the Z-axis in the target data packet received by the smart tablet 22 are 900 mg, 450 mg, and 0, respectively, the smart The tablet 22 considers that the smart writing pen 21 is moved in the positive direction of the X-axis, thereby performing the corresponding tablet control event in which the smart writing pen 21 moves in the positive direction of the X-axis. Of course, the smart tablet 22 performs corresponding flat panel control events according to the target acceleration data, and other implementation manners, which are not specifically limited by the present invention.
  • the smart tablet 22 if the control of the smart tablet 22 is implemented by a button provided on the smart writing pen 21, when the user needs the smart tablet 22, according to the When the key operation of the smart writing pen 21 performs more flat panel control events, it is necessary to set more keys on the smart writing pen 21.
  • the smart tablet 22 is controlled by the smart pen 21 to complete the control of the smart tablet 22, and when the user needs the smart tablet 22 to perform more slabs according to the gesture movement of the smart pen 21 To control the event, it is necessary to acquire multi-axis target acceleration data. For example, if only the target acceleration data of the smart writing pen 21 on the X-axis is acquired, the smart tablet 22 can only be on the X-axis according to the smart writing pen 21.
  • the gesture motion to perform a corresponding tablet control event specifically, the smart stylus 21 moves in the positive direction of the X axis, the smart tablet 22 performs a corresponding tablet control event, the smart stylus 21 along the X axis Moving in the negative direction, the smart tablet 22 performs another corresponding tablet control event.
  • the target acceleration data of the smart writing pen 21 on the X axis, the Y axis, and the Z axis is acquired, the smart writing pen 21 moves in the positive direction of the X axis, the Y axis, and the Z axis, and the smart tablet 22 A corresponding flat panel control event can be performed separately.
  • the smart writing pen 21 moves in the negative direction of the X axis, the Y axis, and the Z axis, and the smart tablet 22 can respectively perform a Corresponding and different tablet control events, such that the smart tablet 22 can perform at least six different tablet control events, such that the smart pen 21 can achieve more control of the smart tablet 22.
  • the control system of the smart tablet 22 acquires the target acceleration data of the smart writing pen 21 by detecting the current motion of the smart writing pen 21 and transmits it to the smart The tablet 22, and further the smart tablet 22 receives the target acceleration data, and performs a corresponding tablet control event according to the target acceleration data of the smart writing pen 21; it can be seen that the user only needs to make the smart writing pen 21 complete the corresponding With the gesture movement, the corresponding control of the smart tablet 22 can be realized, the control of the smart tablet 22 can be realized simply and quickly, the control process is simplified, and the user experience is effectively improved.
  • the smart writing pen 21 is further configured to:
  • the smart writing pen 21 further includes a motion validity determining module, configured to determine the current motion according to the target acceleration data before transmitting the target acceleration data to the smart tablet 22 is it effective.
  • the motion validity determination module includes a motion effective determination unit and a motion invalidation determination unit; the motion effective determination unit is configured to determine the current motion when an absolute value of the target acceleration data is greater than a preset threshold
  • the motion invalidation determining unit is configured to determine that the current motion is invalid when an absolute value of the target acceleration data is less than or equal to the preset threshold.
  • an erroneous operation on the smart writing pen 21 may occur, for example, when the smart writing pen 21 is not required to be used, some users are accustomed to placing the smart writing pen 21 at On the audio device, the audio device generates vibration when playing a sound, which causes the smart writing pen 21 to undergo a slight movement. In fact, this is only a misoperation, and the user does not want the smart tablet 22 to perform. a certain tablet control event. At this time, if the smart writing pen 21 still transmits the acceleration data corresponding to the erroneous operation to the smart tablet 22, the data sending task needs to occupy corresponding resources, and sending unnecessary data will cause The waste of resources, and possibly the normal operation of the smart tablet 22.
  • the target acceleration data before the target acceleration data is transmitted to the smart tablet 22, it is determined whether the current motion of the smart writing pen 21 is valid according to the target acceleration data, specifically, Software algorithms to eliminate the adverse effects of misoperations on the control process. In general, the amplitude of the erroneous operation is relatively small. Therefore, before the target acceleration data is transmitted to the smart tablet 22, the magnitude of the absolute value of the target acceleration data is first determined.
  • the absolute value of the target acceleration data is greater than a preset threshold, it indicates that the motion of the smart stylus 21 is large, does not belong to an erroneous operation, determines that the current motion is valid, and then sends the target acceleration data to The smart tablet 22; if the absolute value of the target acceleration data is less than or equal to a preset threshold, it indicates that the motion of the smart writing pen 21 is small, which is an erroneous operation, and determines that the current motion is invalid, and will not The target data acceleration data is sent to the smart tablet 22.
  • the target acceleration data includes multi-axis target acceleration data
  • whether the current motion of the smart writing pen 21 is valid according to the target acceleration data includes a plurality of situations.
  • the target acceleration data includes the X-axis, the Y-axis, and the Z-axis target acceleration data
  • the determination is performed.
  • the current motion of the smart writing pen 21 is invalid, and the three-axis target acceleration data is not sent to the smart tablet 22; in the second case, when at least one axis target acceleration data in the three-axis target acceleration data is greater than a preset At the threshold value, it is determined that the current motion of the smart stylus pen 21 is valid, and if there is target acceleration data less than or equal to a preset threshold value in the three-axis target acceleration data, the threshold value less than or equal to the preset threshold value is first The target acceleration data is set to zero, and the adjusted three-axis target acceleration data is sent to the smart tablet 22, for example, if the preset threshold is 200 mg, and the X, Y, and Z triaxial target acceleration data are 900 mg, 50 mg, and 50 mg, respectively.
  • the adjusted X-axis, Y-axis, and Z-axis target acceleration data are 900 mg, 0, and 0, respectively; in addition, if the preset threshold is 200 mg, and the X, Y, and Z triaxial targets are Speed data respectively 900mg, X axis after the 450mg and 50mg, adjust, Y-axis and Z-axis target acceleration data are 900mg, 450mg and 0.
  • control system of the smart tablet 22 determines the absolute value of the target acceleration data before transmitting the target acceleration data to the smart tablet 22, thereby determining the location. Whether the current motion of the smart writing pen 21 is valid, and only transmitting the target acceleration data to the smart tablet 22 when the current motion is valid, which can effectively reduce the wave of resources The fee is sufficient, and the problem that the smart tablet 22 works normally due to misoperation can be effectively solved.
  • the smart writing pen 21 is specifically configured to:
  • the current ambient noise includes ADC noise and acceleration sensor noise
  • the difference data is taken to a maximum value to obtain its own target acceleration data.
  • the target acceleration data acquiring module specifically includes an original acceleration data acquiring unit, an error data calculating unit, a filtering unit, a difference data generating unit, and a target acceleration acquiring unit;
  • the original acceleration data acquiring unit For obtaining original acceleration data of itself according to its current motion;
  • the error data calculation unit is configured to calculate current error data according to current environmental noise;
  • the current environmental noise includes ADC noise and acceleration sensor noise;
  • the filtering unit is used for The original acceleration data is filtered to obtain filtered acceleration data;
  • the difference data generating unit is configured to subtract the current error data from the filtered acceleration data to generate difference data;
  • the target acceleration acquisition The unit is configured to take a maximum value of the difference data to obtain its own target acceleration data.
  • the acceleration sensor disposed on the smart writing pen 21 detects the posture motion of the smart writing pen 21, and collects the original acceleration data of the smart writing pen 21 based on the set sampling frequency.
  • the raw acceleration data collected by the acceleration sensor may be affected by various environmental noises, such as ADC noise and noise inside the acceleration sensor circuit, if the original acceleration data is directly sent to the smart tablet 22, so that the The smart tablet 22 performs a corresponding tablet control event according to the original acceleration data, which may cause the smart tablet 22 to have problems of inaccurate control or complete control. Therefore, the raw acceleration data collected by the acceleration sensor needs to be processed to eliminate the adverse effects caused by environmental noise or other interference factors.
  • the error data refers to a DC offset.
  • the working process of the step S112 is as follows. In the idle state, an environmental noise signal of 1 s is acquired, and IIR filtering is performed. A low frequency DC signal is obtained, and the low frequency DC signal is averaged to obtain the DC offset, that is, error data. In addition, during the operation of the circuit, environmental noise and other interference factors are changed. Therefore, the error data is not always constant and needs to be adjusted according to changes in the environment.
  • the step S113 is specifically: performing IIR filtering on the original acceleration data to obtain low-frequency acceleration data, that is, filtered acceleration data.
  • the target acceleration data of the writing pen 21 also corresponds to multi-axis target acceleration data.
  • the smart writing pen 21 acquires its own original acceleration data according to its current motion, and the original acceleration data includes X-axis original acceleration data, Y-axis original acceleration data, and Z-axis original acceleration data, respectively, for the X-axis and the Y-axis, respectively.
  • the axis and Z-axis raw acceleration data are processed correspondingly, and the target acceleration data of the finally obtained smart writing pen 21 corresponds to the X-axis, Y-axis and Z-axis target acceleration data.
  • control system of the smart tablet 22 provided by the embodiment of the present invention sends the processed acceleration data (ie, target acceleration data) to the smart tablet 22 after performing error elimination processing on the original acceleration data.
  • the processed acceleration data ie, target acceleration data
  • the problem that the smart tablet 22 is inaccurately controlled or completely uncontrollable due to the error of the original acceleration data can be effectively solved.
  • the smart writing pen 21 is specifically configured to:
  • the target acceleration data is encoded according to a preset infrared communication protocol to generate a target data packet;
  • the target data packet includes a packet header, a packet number, a target acceleration data, and a calibration Check position;
  • the target data packet is sent to the smart tablet 22.
  • the target acceleration data sending module specifically includes a target data packet generating unit and a target data packet sending unit; the target data packet generating unit is configured to be valid in the current motion of the smart writing pen 21 And encoding, by the preset infrared communication protocol, the target acceleration data to generate a target data packet; the target data packet includes a packet header, a packet number, target acceleration data, and a check digit, which are sequentially arranged; The target data packet transmitting unit is configured to transmit the target data packet to the smart tablet 22.
  • the smart writing pen 21 transmits the target acceleration data by means of wireless communication, wherein a plurality of wireless communication modes are available, such as 2.4G wireless communication, Bluetooth communication, WIFI communication, and Infrared communication, etc.
  • a plurality of wireless communication modes are available, such as 2.4G wireless communication, Bluetooth communication, WIFI communication, and Infrared communication, etc.
  • the difference in communication methods and communication protocols will make the speed and quality of communication different.
  • the speed and quality of data transmission can affect the response speed and accuracy of the smart tablet 22, and therefore, the speed and quality of data transmission needs to be improved.
  • the infrared communication mode is selected, and after the target acceleration data is obtained, the target acceleration data is encoded by a customized infrared communication protocol, encapsulated into a target data packet, and the target data is further The packet is sent to the smart tablet 22.
  • the structure of the target data packet is as follows:
  • HEAD is the header, including 350us low level and 500us high level.
  • the PKT_NUM is a packet number, and the smart stylus 21 adds one to the packet number in the target data packet for each target data packet, and the packet number ranges from 0 to 255.
  • After receiving the target data packet it is possible to check whether there is a packet loss during the transmission according to the packet number. For example, the packet number of the last target data packet received by the smart tablet 22 is 45, and the current receiving is performed. If the packet number of the target data packet is 47, it indicates that packet loss occurs during the transmission process. Therefore, the packet loss rate or the error reporting operation can be calculated according to the packet number.
  • X_VALUE, Y_VALUE, and Z_VALUE are the target acceleration data for the X-axis, Y-axis, and Z-axis, respectively, and are signed 16-bit integers in mg.
  • the CRC8 is a check digit, and is used to check whether the parsing of the target data packet by the smart tablet 22 is abnormal. Specifically, after the smart tablet 22 parses a target data packet, the target data packet is A total of 7 bytes of PKT_NUM to Z_VALUE are calculated, and the calculation result is compared with the CRC8 in the target data packet. If the calculation result is consistent with the CRC8, the smart tablet 22 parses the target data packet normally.
  • the smart tablet 22 performs a corresponding tablet control event according to the parsing result. If the calculation result is inconsistent with the CRC8, it indicates that the smart tablet 22 has an error in parsing the target data packet, and the smart tablet is in error. 22 The corresponding tablet control event is no longer executed based on the analysis result.
  • control system of the smart tablet 22 provided by the embodiment encapsulates the data packet according to the above customized infrared protocol, and can simplify the size of the data packet sent to the smart tablet 22 under the premise of ensuring complete data. Thereby, the transmission speed of the data packet is improved, thereby improving the response speed of the smart tablet 22, effectively increasing the fluency of the control process, and enhancing the user experience.
  • the smart tablet 22 is specifically configured to:
  • a flat panel control event corresponding to the direction of motion is performed.
  • the tablet control event execution module specifically includes a motion direction determining unit and a tablet control event executing unit; the motion direction determining unit is configured to determine the smart writing pen 21 according to the target acceleration data.
  • the direction of motion of the tablet control event execution unit is used to perform a corresponding tablet control event of the direction of motion.
  • the smart writing pen 21 when the user manipulates the smart writing pen 21, the smart writing pen 21 can be moved in the positive X-axis direction, the X-axis negative direction, the Y-axis positive direction, and the Y-axis negative direction.
  • the Z axis moves in the positive direction or the Z axis moves in the negative direction.
  • the smart tablet 22 can determine the moving direction of the smart writing pen 21 according to the positive and negative of the target acceleration data of the smart writing pen 21, for example, predefining that the target acceleration data of a certain axis is positive. At this time, it is indicated that the smart writing pen 21 moves in the positive direction of a certain axis, and vice versa.
  • the smart tablet 22 can perform different tablet control events according to different moving directions of the smart writing pen 21, for example, if only one axis of target acceleration data is not zero in the target data packet.
  • the target acceleration data parsed to the X-axis by the smart tablet 22 is a positive value
  • the smart stylus 21 is moved in the positive direction of the X-axis, and the smart tablet 22 performs a PPT page-turning control event when the smart
  • the target acceleration data parsed to the X-axis by the flat panel 22 is a negative value
  • the smart stylus 21 is moved in the negative direction of the X-axis, and the smart tablet 22 performs a PPT full-screen control event when the smart tablet 22 resolves to the Y-axis.
  • the target acceleration data is positive, indicating that the smart writing pen 21 moves in the positive direction of the Y axis, and the smart tablet 22 performs a play volume increase control event, when the target acceleration data of the smart tablet 22 parsing to the Y axis is A negative value indicates that the smart writing pen 21 moves in the negative direction of the Y-axis, and the smart tablet 22 performs a play volume reduction control event or the like.
  • the smart tablet 22 is further configured to:
  • the smart tablet 22 is specifically configured to:
  • the tablet control event corresponding to the moving direction in the second preset value interval is executed.
  • the tablet control event execution module further includes a numerical interval determining unit, configured to use the target acceleration data according to the target control event corresponding to the moving direction Determining a numerical interval in which the target acceleration data is located; and the tablet control event execution unit specifically includes a first control event execution subunit and a second control event execution subunit; the first control event execution subunit is configured to determine When the target acceleration data belongs to the first preset value interval, performing a flat panel control event corresponding to the motion direction in the first preset value interval; the second control event execution subunit is configured to determine the target acceleration data When it belongs to the second preset value interval, the tablet control event corresponding to the moving direction in the second preset value interval is executed.
  • a numerical interval determining unit configured to use the target acceleration data according to the target control event corresponding to the moving direction Determining a numerical interval in which the target acceleration data is located
  • the tablet control event execution unit specifically includes a first control event execution subunit and a second control event execution subunit; the first control event execution subunit is configured to determine When the
  • the smart pen 21 is moved along the X axis, and when the user manipulates the smart pen 21, the smart pen 21 can be slowly moved in the positive direction of the X axis. Quickly move in the positive direction of the X axis, slowly move in the negative direction of the X axis, or move quickly in the negative direction of the X axis.
  • the smart tablet 22 can determine the moving speed of the smart writing pen 21 according to the value interval of the target acceleration data of the smart writing pen 21, for example, if the acceleration sensor is set to ⁇ 2g, according to the user's
  • the actual operating habits may be defined in advance when the target acceleration data belongs to a range of values (200 mg, 1000 mg) or (-200mg, -1000mg), indicating that the user is moving the smart writing pen 21 slowly, when the numerical interval to which the target acceleration data belongs is [200mg, 1000mg] or [-200mg, -1000mg], indicating that the user is The smart writing pen 21 is moved quickly.
  • the smart tablet 22 can perform different tablet control events in combination with different movement directions and different motion speeds of the smart writing pen 21, for example, when the smart writing pen 21 slowly moves in the positive direction of the X-axis.
  • the smart tablet 22 parses the X-axis target acceleration data to a positive value, and the numerical interval of the X-axis target acceleration number belongs to [200 mg, 1000 mg], and the smart tablet 22 performs a PPT page turning control event.
  • the smart plate 22 resolves to the X-axis target acceleration data as a positive value, and the numerical interval to which the X-axis target acceleration data belongs is (200 mg, 1000 mg).
  • the smart tablet 22 performs a PPT full screen control event or the like.
  • control system of the smart tablet 22 provided by the present embodiment, combined with the moving direction and the moving speed of the smart writing pen 21, enables the smart writing pen 21 to achieve more functions on the smart tablet 22 by means of combined determination. control.
  • data communication between the smart writing pen 21 and the smart tablet 22 can be implemented in various manners.
  • the smart writing pen 21 and the smart tablet 22 can directly perform wireless communication.
  • the smart writing pen 21 has a wireless transmitting module integrated therein
  • the smart tablet 22 has a wireless receiving module integrated therein, which can directly perform wireless communication with each other.
  • Data communication; in addition, data forwarding can also be performed through an intermediary, such as configuring a separate data transceiver in the system.
  • control system of the smart tablet 22 further includes a data transceiver, the data transceiver is connected to the smart tablet 22 through a USB interface, and the smart writing pen 21 wirelessly transmits data to the data transceiver.
  • the data transceiver then forwards the data to the smart tablet 22 via the USB interface.
  • the method and system for controlling a smart tablet provided by the embodiment of the present invention, by detecting the current motion of the smart writing pen, acquiring motion acceleration data of the smart writing pen and transmitting the same to the smart tablet, correspondingly,
  • the smart tablet performs a corresponding tablet control event according to the motion acceleration data of the smart writing pen; it can be seen that the user only needs to make the smart writing pen complete the corresponding posture movement, so that the corresponding control of the smart tablet can be realized. Therefore, the invention can realize the control of the smart tablet simply and quickly, simplify the control process, and effectively improve the user experience.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

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)
  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

一种智能平板的控制方法及系统,所述方法包括:智能书写笔根据其当前运动获取自身的目标加速度数据(S11),所述智能书写笔在其当前运动有效时,将所述目标加速度数据发送给智能平板(S12),相应地,所述智能平板接收所述目标加速度数据(S13),并根据所述目标加速度数据执行相应的平板控制事件(S14)。用户只需要使智能书写笔完成相应的姿态运动,就可以实现对智能平板的相应控制,能够简单快捷地实现对智能平板的控制,简化了控制过程,有效地提高了用户体验。

Description

智能平板的控制方法及系统 技术领域
本发明涉及电子技术领域,尤其涉及一种智能平板的控制方法及系统。
背景技术
智能平板是一种新型的电子演示设备,通常和智能书写笔配套使用,用以实现PPT演示、视频演示和图文绘制演示等,被广泛应用于教育教学、企业会议、商业展示等领域。
在实际应用中,经常需要对智能平板进行控制,例如PPT翻页和播放音量调节等,现有技术通过在智能书写笔上设置功能按键来实现,当用户按下某功能按键时,响应于该功能按键被按下,智能书写笔向智能平板发送相应的控制命令,智能平板根据相应的控制命令执行相应的平板控制事件,以实现对智能平板的相应控制。
然而,本发明人在实施本发明的过程中,发现现有技术存在以下不足,当用户想要对智能平板进行某项控制时,需在智能书写笔上找寻到相应的功能按键,然而,智能书写笔上可能设置有多个功能按键,因此,找寻过程可能需要耗费很多时间与精力,降低了控制过程的易用性,用户体验不佳。
发明内容
本发明所要解决的技术问题在于,提供一种智能平板的控制方法及系统,能够简单快捷地实现对智能平板的控制。
为了解决上述技术问题,本发明实施例的一个方面提供一种智能平板的控制方法,包括:
S11、智能书写笔根据其当前运动获取自身的目标加速度数据;
S12、所述智能书写笔在其当前运动有效时,将所述目标加速度数据发送给智能平板;
S13、所述智能平板接收所述目标加速度数据;
S14、所述智能平板根据所述目标加速度数据执行相应的平板控制事件。
优选地,在所述步骤S12之前,还包括:
所述智能书写笔根据所述目标加速度数据判断所述当前运动是否有效;并且,
当所述目标加速度数据的绝对值大于预设的阈值时,判定所述当前运动有效;
当所述目标加速度数据的绝对值小于或等于所述预设的阈值时,判定所述当前运动无效。
优选地,所述步骤S11具体包括:
智能书写笔根据其当前运动获取自身的原始加速度数据;
所述智能书写笔根据当前环境噪声计算当前误差数据;所述当前环境噪声包括ADC噪声和运动传感器噪声;
所述智能书写笔对所述原始加速度数据进行滤波,获得滤波后的加速度数据;
所述智能书写笔将所述滤波后的加速度数据减去所述当前误差数据,生成差值数据;
所述智能书写笔对所述差值数据取最大值,获得其自身的目标加速度数据。
优选地,所述步骤S12具体包括:
所述智能书写笔在其当前运动有效时,按照预设的红外通信协议对所述目标加速度数据进行编码,以生成目标数据包;所述目标数据包中包括依次排列的包头、包编号、目标加速度数据、以及校验位;
所述智能书写笔将所述目标数据包发送给智能平板。
优选地,所述步骤S14具体包括:
所述智能平板根据所述目标加速度数据判定所述智能书写笔的运动方向;
所述智能平板执行所述运动方向相应的平板控制事件。
优选地,所述智能平板执行所述运动方向相应的平板控制事件之前,还包括:
所述智能平板根据所述目标加速度数据判断所述目标加速度数据所在的数值区间;
所述智能平板执行所述运动方向相应的平板控制事件,具体为:
所述智能平板在判定所述目标加速度数据属于第一预设数值区间时,执行第一预设数值区间内所述运动方向相应的平板控制事件;以及,
所述智能平板在判定所述目标加速度数据属于第二预设数值区间时,执行第二预设数值区间内所述运动方向相应的平板控制事件。
相应的,本发明实施例的一个方面还提供一种智能平板的控制系统,包括智能书写笔和智能平板;
所述智能书写笔用于根据其当前运动获取自身的目标加速度数据;
所述智能书写笔还用于在其当前运动有效时,将所述目标加速度数据发送给智能平板;
所述智能平板用于接收所述目标加速度数据;
所述智能平板还用于根据所述目标加速度数据执行相应的平板控制事件。
优选地,所述智能书写笔还用于:
在将所述目标加速度数据发送给智能平板之前,根据所述目标加速度数据判断所述当前运动是否有效;并且,
当所述目标加速度数据的绝对值大于预设的阈值时,判定所述当前运动有效;
当所述目标加速度数据的绝对值小于或等于所述预设的阈值时,判定所述当前运动无效。
优选地,所述智能书写笔具体用于:
根据其当前运动获取自身的原始加速度数据;
根据当前环境噪声计算当前误差数据;所述当前环境噪声包括ADC噪声和加速度传感器噪声;
对所述原始加速度数据进行滤波,获得滤波后的加速度数据;
将所述滤波后的加速度数据减去所述当前误差数据,生成差值数据;以及,
对所述差值数据取最大值,获得其自身的目标加速度数据。
优选地,所述智能书写笔具体用于:
在其当前运动有效时,按照预设的红外通信协议对所述目标加速度数据进行编码,以生成目标数据包;所述目标数据包中包括依次排列的包头、包编号、目标加速度数据、以及校验位;以及,
将所述目标数据包发送给智能平板。
优选地,所述智能平板具体用于:
根据所述目标加速度数据判定所述智能书写笔的运动方向;以及,
执行所述运动方向相应的平板控制事件。
优选地,所述智能平板还用于:
在执行所述运动方向相应的平板控制事件之前,根据所述目标加速度数据判断所述目标加速度数据所在的数值区间;
所述智能平板具体用于:
在判定所述目标加速度数据属于第一预设数值区间时,执行第一预设数值区间内所述运动方向相应的平板控制事件;以及,
在判定所述目标加速度数据属于第二预设数值区间时,执行第二预设数值区间内所述运动方向相应的平板控制事件。
实施本发明,具有如下有益效果:
本发明实施例提供的智能平板的控制方法及系统,通过检测所述智能书写笔的当前运动,从而获取所述智能书写笔的运动加速度数据并将其发送给所述智能平板,相应地,所述智能平板根据所述智能书写笔的运动加速度数据执行相应的平板控制事件;可见,用户只需要使所述智能书写笔完成相应的姿态运动,就可以实现对所述智能平板的相应控制。因此,采用本发明能够简单快捷地实现对智能平板的控制,简化了控制过程,有效地提高了用户体验。
附图说明
图1是本发明提供的智能平板的控制方法的一个实施例的流程示意图;
图2是本发明提供的智能平板的控制系统的一个实施例的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
请参阅图1,是本发明提供的智能平板的控制方法的一个实施例的流程示意图,所述智能平板的控制方法至少包括如下步骤:
S11、智能书写笔根据其当前运动获取自身的目标加速度数据;
S12、所述智能书写笔在其当前运动有效时,将所述目标加速度数据发送给智能平板;
S13、所述智能平板接收所述目标加速度数据;
S14、所述智能平板根据所述目标加速度数据执行相应的平板控制事件。
在本发明实施例中,在所述智能书写笔一侧,所述智能书写笔在硬件层面上包括处理器、通信模块和运动传感器。本实施例中以运动传感器为加速度传感器的情况进行详细说明。用户手持所述智能书写笔,并使所述智能书写笔完成特定的姿态运动(如在空中进行上移、下移、左移、右移、前移或者后移运动),与此同时,设置在所述智能书写笔上的加速度传感器将检测所述智能书写笔的当前运动,并获取其自身的目标加速度数据,而后所述处理器在判定所述当前运动有效时,通过通信模块将所述目标加速度数据发送给智能平板。
在本发明实施例中,在所述智能平板一侧,所述智能平板在硬件层面上包括处理器和通信模块。所述智能平板通过其通信模块接收来自所述智能书写笔的目标加速度数据,并对其进行解析,进而根据解析结果执行相应的平板控制事件。具体地,当所述智能平板检测到所述目标加速度数据符合某一预设条件时,所述智能平板的系统软件生成相应的控制指令,并由所述智能平板的处理模块执行所述控制指令,进而控制所述智能平板中相应的应用软件完成相应的控制事件。
需要说明的是,所述智能平板执行完一次平板控制事件后,若用户想再次对所述智能平板进行控制,则用户可以再次使所述智能书写笔完成相应的姿态运动,此后所述智能书写笔将再次执行步骤S11和S12,即所述智能书写笔每进行一次姿态运动,所述智能书写笔都会获取一次目标加速度数据,并在判定所述智能书写笔的当前运动有效时,将所述目标加速度数据发送给智能平板,进而所述智能平板再次执行步骤S13和S14、即所述智能平板接收所述目标加速度数据,并根据所述目标加速度数据执行相应的平板控制事件。
在本发明实施例中,所述目标加速度数据可包括多轴目标加速度数据。例如所述目标加速度数据包括X轴、Y轴和Z轴三轴目标加速度数据,在这种情况下,所述智能书写笔根据X轴、Y轴和Z轴三轴目标加速度数据判断所述智能书写笔的当前运动是否有效,在判定所述当前运动有效时,将所述X轴、Y轴和Z轴三轴目标加速度数据发送给所述智能平板。对应地,所述智能平板接收所述三轴目标加速度数据,并根据所述X轴、Y轴和Z轴三轴目标加速度数据执行相应的平板控制事件,例如若预先设置当所述智能书写笔沿X轴的负方向移动时,X轴目标加速度数据为负,且所述智能书写笔沿X轴的负方向移动相应的白板控制事件是控制PPT翻页,则当所述智能平板检测到所述X轴、Y轴和Z轴的目标加速度数据分别为-900mg、0和0时,所述智能平板认为所述智能书写笔沿X轴的负方向移动,所述智能平板的系统软件生成PPT翻页的控制指令,并由所述智能平板的处理模块执行所述PPT翻页的控制指令,进而控制所述智能平板中的PPT软件完成翻页的控制事件。另外,若所述智能平板检测到所述目标数据包中具有不止一个不为零的目标加速度数据,则说明所述智能书写笔的姿态运动不是完全沿空间坐标轴移动的,其运动轨迹与空间坐标轴是呈一定角度的,这样的情况下,可以选取所述目标数据包中绝对值最大的目标加速度数据,所述智能平板认为所述智能书写笔是沿着所述绝对值最大的目标加速度数据所对应的轴移动的,例如所述智能平板接收到的目标数据包中X轴、Y轴和Z轴的目标加速度数据分别为900mg、450mg和0时,则所述智能平板认为所述智能书写笔是沿着X轴正方向移动的,进而执行所述智能书写笔沿X轴正方向移动相应的平板控制事件。当然,所述智能平板根据所述目标加速度数据执行相应的平板控制事件还有其他实施方式,本发明不作具体限定。
需要说明的是,在对所述智能平板的控制上,如果通过设置在所述智能书写笔上的按键来实现对所述智能平板的控制,当用户需要所述智能平板能够根据所述智能书写笔的按键操作执行更多的平板控制事件, 就需要在所述智能书写笔上设置更多的按键。同理,通过所述智能书写笔完成相应的姿态运动来实现对所述智能平板的控制,当用户需要所述智能平板能够根据所述智能书写笔的姿态运动执行更多的平板控制事件,就需要获取多轴目标加速度数据,例如若仅仅获取所述智能书写笔在X轴上的目标加速度数据,则所述智能平板只能根据所述智能书写笔在X轴上的姿态运动来执行相应的平板控制事件,具体地,所述智能书写笔沿X轴正方向移动,所述智能平板执行一种对应的平板控制事件,所述智能书写笔沿X轴负方向移动,所述智能平板执行另一种对应的平板控制事件。然而,若是获取所述智能书写笔在X轴、Y轴、Z轴上的目标加速度数据,则所述智能书写笔沿X轴、Y轴、Z轴正方向移动,所述智能平板可分别执行一种与之对应的且不同的平板控制事件,同理,所述智能书写笔沿X轴、Y轴、Z轴负方向移动,所述智能平板可分别执行一种与之对应的且不同的平板控制事件,这样,所述智能平板至少可以执行6种不同的平板控制事件,使得智能书写笔可以实现对智能平板更多功能的控制。
综上所述,本发明实施例提供的智能平板的控制方法,通过检测所述智能书写笔的当前运动,从而获取所述智能书写笔的目标加速度数据并将其发送给所述智能平板,进而所述智能平板接收所述目标加速度数据,并根据所述智能书写笔的目标加速度数据执行相应的平板控制事件;可见,用户只需要使所述智能书写笔完成相应的姿态运动,就可以实现对所述智能平板的相应控制,能够简单快捷地实现对所述智能平板的控制,简化了控制过程,有效地提高了用户体验。
在一个优选的实施方式中,在所述步骤S12之前,还包括:
所述智能书写笔根据所述目标加速度数据判断所述当前运动是否有效;并且,
当所述目标加速度数据的绝对值大于预设的阈值时,判定所述当前运动有效;
当所述目标加速度数据的绝对值小于或等于所述预设的阈值时,判定所述当前运动无效。
需要说明的是,在实际使用中,可能会出现对所述智能书写笔的误操作,例如当不需要使用所述智能书写笔时,某些用户习惯将所述智能书写笔放置在音响设备上,所述音响设备在播放声音时会产生振动,这将使得所述智能书写笔发生细微的运动,实际上,这只是一次误操作,并不是用户想要所述智能平板执行某项平板控制事件,此时,若所述智能书写笔仍然将误操作所对应的加速度数据发送给所述智能平板,数据发送任务需要占用相应的资源,发送不必要的数据将会造成资源的浪费,并且还有可能影响所述智能平板的正常工作。
针对上述问题,在本实施方式中,在将所述目标加速度数据发送给所述智能平板之前,先根据所述目标加速度数据判断所述智能书写笔的当前运动是否有效,具体地,通过软件算法来消除误操作给控制过程带来的不利影响。一般情况下,误操作的运动幅度都比较小,因此,在将所述目标加速度数据发送给所述智能平板之前,先判断所述目标加速度数据的绝对值的大小。若所述目标加速度数据的绝对值大于预设的阈值,则说明所述智能书写笔的运动幅度较大,不属于误操作,判定所述当前运动有效,而后将所述目标加速度数据发送给所述智能平板;若所述目标加速度数据的绝对值小于或者等于预设的阈值,则说明所述智能书写笔的运动幅度较小,属于误操作,判定所述当前运动无效,不将所述目标数据加速度数据发送给所述智能平板。
需要说明的是,当所述目标加速度数据包括多轴目标加速度数据时,则所述根据所述目标加速度数据判断所述智能书写笔的当前运动是否有效,包括多种情况。例如所述目标加速度数据包括X轴、Y轴和Z 轴目标加速度数据时,第一种情况,当三轴目标加速度数据中任一轴目标加速度数据均小于或等于预设的阈值时,则判定所述智能书写笔的当前运动无效,所述三轴目标加速度数据均不发送给所述智能平板;第二种情况,当三轴目标加速度数据中至少有一轴目标加速度数据大于预设的阈值时,则判定所述智能书写笔的当前运动有效,并且,若三轴目标加速度数据中若存在小于或等于预设的阈值的目标加速度数据,则先将小于或等于预设的阈值的目标加速度数据置零,再将调整后的三轴目标加速度数据发送给智能平板,例如若预设的阈值为200mg,且X、Y和Z三轴目标加速度数据分别为900mg、50mg和50mg,则调整后的X轴、Y轴和Z轴目标加速度数据分别为900mg、0和0;另外,若预设的阈值为200mg,且X、Y和Z三轴目标加速度数据分别为900mg、450mg和50mg,则调整后的X轴、Y轴和Z轴目标加速度数据分别为900mg、450mg和0。
综上所述,本实施方式提供的智能平板的控制方法,通过在将所述目标加速度数据发送给所述智能平板之前,先判断所述目标加速度数据的绝对值的大小,从而判断所述智能书写笔的当前运动是否有效,仅在所述当前运动有效时才将所述目标加速度数据发送给所述智能平板,能够有效减少资源的浪费,且能够有效解决因误操作而影响所述智能平板正常工作的问题。
在一个优选的实施方式中,所述步骤S11具体包括:
S111、智能书写笔根据其当前运动获取自身的原始加速度数据;
S112、所述智能书写笔根据当前环境噪声计算当前误差数据;所述当前环境噪声包括ADC噪声和运动传感器噪声;
S113、所述智能书写笔对所述原始加速度数据进行滤波,获得滤波后的加速度数据;
S114、所述智能书写笔将所述滤波后的加速度数据减去所述当前误差数据,生成差值数据;
S115、所述智能书写笔对所述差值数据取最大值,获得其自身的目标加速度数据。
需要说明的是,设置在所述智能书写笔上的加速度传感器检测所述智能书写笔的姿态运动,基于设定的采样频率采集所述智能书写笔的原始加速度数据。往往所述加速度传感器采集的原始加速度数据会受到各种环境噪声的影响,例如ADC噪声和加速度传感器电路内部的噪声,如果直接将所述原始加速度数据发送给所述智能平板,以使所述智能平板根据所述原始加速度数据执行相应的平板控制事件,可能会导致所述智能平板出现控制不精准或者完全无法控制的问题。因此,需要对所述加速度传感器采集的原始加速度数据进行处理,以消除环境噪声或者其他干扰因素带来的不利影响。
在本实施方式中,所述误差数据指的是直流偏置,在具体实施中,所述步骤S112的工作过程如下,在空闲状态下,采集1s的环境噪声信号,并对其进行IIR滤波,得到低频的直流信号,再对所述低频的直流信号取平均值,以获得所述直流偏置,即误差数据。另外,在电路工作过程中,环境噪声及其他干扰因素是变化的,因此,误差数据不是始终保持不变的,需要根据环境的变化而调整。另外,所述步骤S113具体为,对所述原始加速度数据进行IIR滤波,得到低频的加速度数据,即滤波后的加速度数据。
需要说明的是,当所述步骤S111中获取的原始加速度数据多轴原始加速度数据,相应的,所述步骤S112~S115中,其处理对象均为多轴原始加速度数据,最终获取到的所述智能书写笔的目标加速度数据也对应包括多轴目标加速度数据。例如,在所述步骤S111中、所述智能书写笔根据其当前运动获取自身的原始加速度数据,所述原始加速度数据包括X轴原始加速度数据、Y轴原始加速度数据和Z轴原始加速度数据, 则在所述步骤S112~S115中,分别对X轴、Y轴及Z轴原始加速度数据进行相应处理,最终获取到的智能书写笔的目标加速度数据对应包括X轴、Y轴及Z轴目标加速度数据。
综上所述,本发明实施方式提供的智能平板的控制方法通过对所述原始加速度数据进行误差消除处理后再将处理后的加速度数据(即目标加速度数据)发送给所述智能平板,能够有效解决因所述原始加速度数据存在误差而导致所述智能平板出现控制不精准或者完全无法控制的问题。
在一个优选的实施方式中,所述步骤S12具体包括:
所述智能书写笔在其当前运动有效时,按照预设的红外通信协议对所述目标加速度数据进行编码,以生成目标数据包;所述目标数据包中包括依次排列的包头、包编号、目标加速度数据、以及校验位;
所述智能书写笔将所述目标数据包发送给智能平板。
需要说明的是,所述智能书写笔通过无线通信的方式将所述目标加速度数据发送出去,其中,有多种无线通信方式可供选择,例如2.4G无线通信、蓝牙通信、WIFI通信、以及红外通信等。通信方式及通信协议的不同,会使得通信的速度和质量有所不同。然而,数据传输的速度和质量会影响所述智能平板的响应速度和准确性,因此,需要提高数据传输的速度和质量。
在本实施方式中,选用红外通信的方式,且在获得所述目标加速度数据后,通过自定义的红外通信协议对所述目标加速度数据进行编码,封装成目标数据包,再将所述目标数据包发送给所述智能平板。
接下来,以所述原始加速度数据为三轴原始加速度数据的情况对自定义的红外通信协议进行详细说明,按照自定义的红外通信协议,目标数据包的结构如下表:
HEAD PKT_NUM X_VALUE Y_VALUE Z_VALUE CRC8
  1字节 2字节 2字节 2字节 1字节
其中,HEAD为包头,包括350us低电平和500us高电平。PKT_NUM为包编号,所述智能书写笔每生成一个目标数据包,则将所述目标数据包中的包编号加一,所述包编号的取值范围为0~255,所述智能平板在接收到所述目标数据包后,能够根据所述包编号来检验传输过程中是否有丢包,例如所述智能平板接收到的上一个所述目标数据包的包编号为45,当前接收到的所述目标数据包的包编号为47,则说明在传输过程中出现了丢包,因此,可以根据所述包编号来统计丢包率或者进行报错操作。X_VALUE、Y_VALUE和Z_VALUE分别为X轴、Y轴和Z轴的目标加速度数据,均为有符号的16位整数,单位均为mg。CRC8为校验位,用于检验所述智能平板对所述目标数据包的解析是否出错,具体地,所述智能平板在对某一目标数据包解析完后,针对该目标数据包的PKT_NUM到Z_VALUE共7字节进行计算,并将计算结果与该目标数据包中的CRC8进行比较,若所述计算结果与CRC8一致,则说明所述智能平板对所述目标数据包的解析正常,进而所述智能平板根据解析结果执行相应的平板控制事件,若所述计算结果与CRC8不一致,则说明所述智能平板对所述目标数据包的解析出现了错误,则所述智能平板不再根据此次的解析结果执行相应的平板控制事件。
综上所述,本实施方式提供的智能平板的控制方法按照上述自定义的红外协议封装数据包,能够在保证数据完备的前提下,精简发送给所述智能平板的数据包的大小,从而提高了所述数据包的传输速度,进而提高了所述智能平板的响应速度,有效地增加了控制过程的流畅度,增强了用户体验。
在一个优选的实施方式中,所述步骤S14具体包括:
所述智能平板根据所述目标加速度数据判定所述智能书写笔的运动方向;
所述智能平板执行所述运动方向相应的平板控制事件。
在本实施方式中,用户在操控所述智能书写笔时,可以使所述智能书写笔沿X轴正方向移动、X轴负方向移动、Y轴正方向移动、Y轴负方向移动、Z轴正方向移动、或者Z轴负方向移动。一方面,所述智能平板可以根据所述智能书写笔的目标加速度数据的正负来判断所述智能书写笔的运动方向,例如,预先定义当某一轴的目标加速度数据为正值时,表示所述智能书写笔向某一轴的正方向移动,反之亦然。另一方面,所述智能平板可以根据所述智能书写笔的不同运动方向来执行不同的平板控制事件,例如在所述目标数据包中仅有一轴的目标加速度数据不为零的前提下,当所述智能平板解析到X轴的目标加速度数据为正值,则说明所述智能书写笔沿X轴正方向移动,所述智能平板执行PPT翻页控制事件,当所述智能平板解析到X轴的目标加速度数据为负值,则说明所述智能书写笔沿X轴负方向移动,所述智能平板执行PPT全屏控制事件,当所述智能平板解析到Y轴的目标加速度数据为正值,则说明所述智能书写笔沿Y轴正方向移动,所述智能平板执行播放音量增加控制事件,当所述智能平板解析到Y轴的目标加速度数据为负值,则说明所述智能书写笔沿Y轴负方向移动,所述智能平板执行播放音量减小控制事件等等。
在一个优选的实施方式中,所述智能平板的控制方法还包括:所述智能平板执行所述运动方向相应的平板控制事件之前,还包括:
所述智能平板根据所述目标加速度数据判断所述目标加速度数据所在的数值区间;
所述智能平板执行所述运动方向相应的平板控制事件,具体为:
所述智能平板在判定所述目标加速度数据属于第一预设数值区间时,执行第一预设数值区间内所述运动方向相应的平板控制事件;以及,
所述智能平板在判定所述目标加速度数据属于第二预设数值区间时,执行第二预设数值区间内所述运动方向相应的平板控制事件。
在本实施方式中,以所述智能书写笔沿X轴运动的情况来进行说明,用户在操控所述智能书写笔时,可以使所述智能书写笔缓慢地沿X轴正方向移动、快速地沿X轴正方向移动、缓慢地沿X轴负方向移动、或者快速地沿X轴负方向移动。一方面,所述智能平板可以根据所述智能书写笔的目标加速度数据的所属的数值区间来判断所述智能书写笔的运动速度,例如,若加速度传感器设置为±2g,根据用户的实际操作习惯,可以预先定义当所述目标加速度数据所属的数值区间为(200mg,1000mg)或者(-200mg,-1000mg),表示用户在缓慢地移动所述智能书写笔,当所述目标加速度数据所属的数值区间为[200mg,1000mg]或者[-200mg,-1000mg],表示用户在快速地移动所述智能书写笔。另一方面,所述智能平板可以结合所述智能书写笔的不同运动方向和不同运动速度来执行不同的平板控制事件,例如当所述智能书写笔缓慢地沿X轴正方向移动时,所述智能平板解析到X轴目标加速度数据为正值,且所述X轴目标加速度数所属的数值区间为[200mg,1000mg],则所述智能平板执行PPT翻页控制事件,当所述智能书写笔快速地沿X轴正方向移动时,所述智能平板解析到X轴目标加速度数据为正值,且所述X轴目标加速度数据所属的数值区间为(200mg,1000mg),所述智能平板执行PPT全屏控制事件等等。
综上所述,本实施方式提供的智能平板的控制方法,结合智能书写笔的运动方向和运动速度,通过组 合判断的方式,使得智能书写笔可以实现对智能平板更多功能的控制。
相应的,本发明还提供一种智能平板的控制系统,能够实现上述实施例中的智能平板的控制方法的所有流程。
参见图2,是本发明实施例提供的智能平板的控制系统的一个实施例的结构示意图,包括智能书写笔21和智能平板22;
所述智能书写笔21用于根据其当前运动获取自身的目标加速度数据;
所述智能书写笔21还用于在其当前运动有效时,将所述目标加速度数据发送给智能平板22;
所述智能平板22用于接收所述目标加速度数据;
所述智能平板22还用于根据所述目标加速度数据执行相应的平板控制事件。
具体地,在本发明实施例中,所述智能书写笔21包括目标加速度数据获取模块和目标加速度数据发送模块;所述目标加速度数据获取模块用于根据其当前运动获取自身的目标加速度数据;所述目标加速度数据发送模块用于在其当前运动有效时,将所述目标加速度数据发送给智能平板22。所述智能平板22包括目标加速度数据接收模块和平板控制事件执行模块;所述目标加速度数据接收模块用于接收所述目标加速度数据;所述平板控制事件执行模块用于根据所述目标加速度数据执行相应的平板控制事件。
在本发明实施例中,在所述智能书写笔21一侧,所述智能书写笔21在硬件层面上包括处理器、通信模块和运动传感器。本实施例中以运动传感器为加速度传感器的情况进行详细说明。用户手持所述智能书写笔21,并使所述智能书写笔21完成特定的姿态运动(如在空中进行上移、下移、左移、右移、前移或者后移运动),与此同时,设置在所述智能书写笔21上的加速度传感器将检测所述智能书写笔21的当前运动,并获取其自身的目标加速度数据,而后所述处理器在判定所述当前运动有效时,通过通信模块将所述目标加速度数据发送给智能平板22。
在本发明实施例中,在所述智能平板22一侧,所述智能平板22在硬件层面上包括处理器和通信模块。所述智能平板22通过其通信模块接收来自所述智能书写笔21的目标加速度数据,并对其进行解析,进而根据解析结果执行相应的平板控制事件。具体地,当所述智能平板22检测到所述目标加速度数据符合某一预设条件时,所述智能平板22的系统软件生成相应的控制指令,并由所述智能平板22的处理模块执行所述控制指令,进而控制所述智能平板22中相应的应用软件完成相应的控制事件。
需要说明的是,所述智能平板22执行完一次平板控制事件后,若用户想再次对所述智能平板22进行控制,则用户可以再次使所述智能书写笔21完成相应的姿态运动,此后所述智能书写笔21将再次执行步骤S11和S12,即所述智能书写笔21每进行一次姿态运动,所述智能书写笔21都会获取一次目标加速度数据,并在判定所述智能书写笔21的当前运动有效时,将所述目标加速度数据发送给智能平板22,进而所述智能平板22再次执行步骤S13和S14、即所述智能平板22接收所述目标加速度数据,并根据所述目标加速度数据执行相应的平板控制事件。
在本发明实施例中,所述目标加速度数据可包括多轴目标加速度数据。例如所述目标加速度数据包括X轴、Y轴和Z轴三轴目标加速度数据,在这种情况下,所述智能书写笔21根据X轴、Y轴和Z轴三轴目标加速度数据判断所述智能书写笔21的当前运动是否有效,在判定所述当前运动有效时,将所述X轴、Y轴 和Z轴三轴目标加速度数据发送给所述智能平板22。对应地,所述智能平板22接收所述三轴目标加速度数据,并根据所述X轴、Y轴和Z轴三轴目标加速度数据执行相应的平板控制事件,例如若预先设置当所述智能书写笔21沿X轴的负方向移动时,X轴目标加速度数据为负,且所述智能书写笔21沿X轴的负方向移动相应的白板控制事件是控制PPT翻页,则当所述智能平板22检测到所述X轴、Y轴和Z轴的目标加速度数据分别为-900mg、0和0时,所述智能平板22认为所述智能书写笔21沿X轴的负方向移动,所述智能平板22的系统软件生成PPT翻页的控制指令,并由所述智能平板22的处理模块执行所述PPT翻页的控制指令,进而控制所述智能平板22中的PPT软件完成翻页的控制事件。另外,若所述智能平板22检测到所述目标数据包中具有不止一个不为零的目标加速度数据,则说明所述智能书写笔21的姿态运动不是完全沿空间坐标轴移动的,其运动轨迹与空间坐标轴是呈一定角度的,这样的情况下,可以选取所述目标数据包中绝对值最大的目标加速度数据,所述智能平板22认为所述智能书写笔21是沿着所述绝对值最大的目标加速度数据所对应的轴移动的,例如所述智能平板22接收到的目标数据包中X轴、Y轴和Z轴的目标加速度数据分别为900mg、450mg和0时,则所述智能平板22认为所述智能书写笔21是沿着X轴正方向移动的,进而执行所述智能书写笔21沿X轴正方向移动相应的平板控制事件。当然,所述智能平板22根据所述目标加速度数据执行相应的平板控制事件还有其他实施方式,本发明不作具体限定。
需要说明的是,在对所述智能平板22的控制上,如果通过设置在所述智能书写笔21上的按键来实现对所述智能平板22的控制,当用户需要所述智能平板22能够根据所述智能书写笔21的按键操作执行更多的平板控制事件,就需要在所述智能书写笔21上设置更多的按键。同理,通过所述智能书写笔21完成相应的姿态运动来实现对所述智能平板22的控制,当用户需要所述智能平板22能够根据所述智能书写笔21的姿态运动执行更多的平板控制事件,就需要获取多轴目标加速度数据,例如若仅仅获取所述智能书写笔21在X轴上的目标加速度数据,则所述智能平板22只能根据所述智能书写笔21在X轴上的姿态运动来执行相应的平板控制事件,具体地,所述智能书写笔21沿X轴正方向移动,所述智能平板22执行一种对应的平板控制事件,所述智能书写笔21沿X轴负方向移动,所述智能平板22执行另一种对应的平板控制事件。然而,若是获取所述智能书写笔21在X轴、Y轴、Z轴上的目标加速度数据,则所述智能书写笔21沿X轴、Y轴、Z轴正方向移动,所述智能平板22可分别执行一种与之对应的且不同的平板控制事件,同理,所述智能书写笔21沿X轴、Y轴、Z轴负方向移动,所述智能平板22可分别执行一种与之对应的且不同的平板控制事件,这样,所述智能平板22至少可以执行6种不同的平板控制事件,使得智能书写笔21可以实现对智能平板22更多功能的控制。
综上所述,本发明实施例提供的智能平板22的控制系统,通过检测所述智能书写笔21的当前运动,从而获取所述智能书写笔21的目标加速度数据并将其发送给所述智能平板22,进而所述智能平板22接收所述目标加速度数据,并根据所述智能书写笔21的目标加速度数据执行相应的平板控制事件;可见,用户只需要使所述智能书写笔21完成相应的姿态运动,就可以实现对所述智能平板22的相应控制,能够简单快捷地实现对所述智能平板22的控制,简化了控制过程,有效地提高了用户体验。
在一个优选的实施方式中,所述智能书写笔21还用于:
在将所述目标加速度数据发送给智能平板22之前,根据所述目标加速度数据判断所述当前运动是否有效;并且,
当所述目标加速度数据的绝对值大于预设的阈值时,判定所述当前运动有效;
当所述目标加速度数据的绝对值小于或等于所述预设的阈值时,判定所述当前运动无效。
具体地,在本实施方式中,所述智能书写笔21还包括运动有效性判断模块,用于在将所述目标加速度数据发送给智能平板22之前,根据所述目标加速度数据判断所述当前运动是否有效。进一步地,所述运动有效性判断模块包括运动有效判定单元和运动无效判定单元;所述运动有效判定单元用于当所述目标加速度数据的绝对值大于预设的阈值时,判定所述当前运动有效;所述运动无效判定单元用于当所述目标加速度数据的绝对值小于或等于所述预设的阈值时,判定所述当前运动无效。
需要说明的是,在实际使用中,可能会出现对所述智能书写笔21的误操作,例如当不需要使用所述智能书写笔21时,某些用户习惯将所述智能书写笔21放置在音响设备上,所述音响设备在播放声音时会产生振动,这将使得所述智能书写笔21发生细微的运动,实际上,这只是一次误操作,并不是用户想要所述智能平板22执行某项平板控制事件,此时,若所述智能书写笔21仍然将误操作所对应的加速度数据发送给所述智能平板22,数据发送任务需要占用相应的资源,发送不必要的数据将会造成资源的浪费,并且还有可能影响所述智能平板22的正常工作。
针对上述问题,在本实施方式中,在将所述目标加速度数据发送给所述智能平板22之前,先根据所述目标加速度数据判断所述智能书写笔21的当前运动是否有效,具体地,通过软件算法来消除误操作给控制过程带来的不利影响。一般情况下,误操作的运动幅度都比较小,因此,在将所述目标加速度数据发送给所述智能平板22之前,先判断所述目标加速度数据的绝对值的大小。若所述目标加速度数据的绝对值大于预设的阈值,则说明所述智能书写笔21的运动幅度较大,不属于误操作,判定所述当前运动有效,而后将所述目标加速度数据发送给所述智能平板22;若所述目标加速度数据的绝对值小于或者等于预设的阈值,则说明所述智能书写笔21的运动幅度较小,属于误操作,判定所述当前运动无效,不将所述目标数据加速度数据发送给所述智能平板22。
需要说明的是,当所述目标加速度数据包括多轴目标加速度数据时,则所述根据所述目标加速度数据判断所述智能书写笔21的当前运动是否有效,包括多种情况。例如所述目标加速度数据包括X轴、Y轴和Z轴目标加速度数据时,第一种情况,当三轴目标加速度数据中任一轴目标加速度数据均小于或等于预设的阈值时,则判定所述智能书写笔21的当前运动无效,所述三轴目标加速度数据均不发送给所述智能平板22;第二种情况,当三轴目标加速度数据中至少有一轴目标加速度数据大于预设的阈值时,则判定所述智能书写笔21的当前运动有效,并且,若三轴目标加速度数据中若存在小于或等于预设的阈值的目标加速度数据,则先将小于或等于预设的阈值的目标加速度数据置零,再将调整后的三轴目标加速度数据发送给智能平板22,例如若预设的阈值为200mg,且X、Y和Z三轴目标加速度数据分别为900mg、50mg和50mg,则调整后的X轴、Y轴和Z轴目标加速度数据分别为900mg、0和0;另外,若预设的阈值为200mg,且X、Y和Z三轴目标加速度数据分别为900mg、450mg和50mg,则调整后的X轴、Y轴和Z轴目标加速度数据分别为900mg、450mg和0。
综上所述,本实施方式提供的智能平板22的控制系统,通过在将所述目标加速度数据发送给所述智能平板22之前,先判断所述目标加速度数据的绝对值的大小,从而判断所述智能书写笔21的当前运动是否有效,仅在所述当前运动有效时才将所述目标加速度数据发送给所述智能平板22,能够有效减少资源的浪 费,且能够有效解决因误操作而影响所述智能平板22正常工作的问题。
在一个优选的实施方式中,所述智能书写笔21具体用于:
根据其当前运动获取自身的原始加速度数据;
根据当前环境噪声计算当前误差数据;所述当前环境噪声包括ADC噪声和加速度传感器噪声;
对所述原始加速度数据进行滤波,获得滤波后的加速度数据;
将所述滤波后的加速度数据减去所述当前误差数据,生成差值数据;以及,
对所述差值数据取最大值,获得其自身的目标加速度数据。
具体地,在本实施方式中,所述目标加速度数据获取模块具体包括原始加速度数据获取单元、误差数据计算单元、滤波单元、差值数据生成单元和目标加速度获取单元;所述原始加速度数据获取单元用于根据其当前运动获取自身的原始加速度数据;所述误差数据计算单元用于根据当前环境噪声计算当前误差数据;所述当前环境噪声包括ADC噪声和加速度传感器噪声;所述滤波单元用于对所述原始加速度数据进行滤波,获得滤波后的加速度数据;所述差值数据生成单元用于将所述滤波后的加速度数据减去所述当前误差数据,生成差值数据;所述目标加速度获取单元用于对所述差值数据取最大值,获得其自身的目标加速度数据。
需要说明的是,设置在所述智能书写笔21上的加速度传感器检测所述智能书写笔21的姿态运动,基于设定的采样频率采集所述智能书写笔21的原始加速度数据。往往所述加速度传感器采集的原始加速度数据会受到各种环境噪声的影响,例如ADC噪声和加速度传感器电路内部的噪声,如果直接将所述原始加速度数据发送给所述智能平板22,以使所述智能平板22根据所述原始加速度数据执行相应的平板控制事件,可能会导致所述智能平板22出现控制不精准或者完全无法控制的问题。因此,需要对所述加速度传感器采集的原始加速度数据进行处理,以消除环境噪声或者其他干扰因素带来的不利影响。
在本实施方式中,所述误差数据指的是直流偏置,在具体实施中,所述步骤S112的工作过程如下,在空闲状态下,采集1s的环境噪声信号,并对其进行IIR滤波,得到低频的直流信号,再对所述低频的直流信号取平均值,以获得所述直流偏置,即误差数据。另外,在电路工作过程中,环境噪声及其他干扰因素是变化的,因此,误差数据不是始终保持不变的,需要根据环境的变化而调整。另外,所述步骤S113具体为,对所述原始加速度数据进行IIR滤波,得到低频的加速度数据,即滤波后的加速度数据。
需要说明的是,当获取的原始加速度数据多轴原始加速度数据,相应的,在后续对所述原始加速度数据进行处理时,其处理对象均为多轴原始加速度数据,最终获取到的所述智能书写笔21的目标加速度数据也对应包括多轴目标加速度数据。例如,所述智能书写笔21根据其当前运动获取自身的原始加速度数据,所述原始加速度数据包括X轴原始加速度数据、Y轴原始加速度数据和Z轴原始加速度数据,则分别对X轴、Y轴及Z轴原始加速度数据进行相应处理,最终获取到的智能书写笔21的目标加速度数据对应包括X轴、Y轴及Z轴目标加速度数据。
综上所述,本发明实施方式提供的智能平板22的控制系统通过对所述原始加速度数据进行误差消除处理后再将处理后的加速度数据(即目标加速度数据)发送给所述智能平板22,能够有效解决因所述原始加速度数据存在误差而导致所述智能平板22出现控制不精准或者完全无法控制的问题。
在一个优选的实施方式中,所述智能书写笔21具体用于:
在其当前运动有效时,按照预设的红外通信协议对所述目标加速度数据进行编码,以生成目标数据包;所述目标数据包中包括依次排列的包头、包编号、目标加速度数据、以及校验位;以及,
将所述目标数据包发送给智能平板22。
具体地,在本实施方式中,所述目标加速度数据发送模块具体包括目标数据包生成单元和目标数据包发送单元;所述目标数据包生成单元用于在所述智能书写笔21的当前运动有效时,按照预设的红外通信协议对所述目标加速度数据进行编码,以生成目标数据包;所述目标数据包中包括依次排列的包头、包编号、目标加速度数据、以及校验位;所述目标数据包发送单元用于将所述目标数据包发送给智能平板22。
需要说明的是,所述智能书写笔21通过无线通信的方式将所述目标加速度数据发送出去,其中,有多种无线通信方式可供选择,例如2.4G无线通信、蓝牙通信、WIFI通信、以及红外通信等。通信方式及通信协议的不同,会使得通信的速度和质量有所不同。然而,数据传输的速度和质量会影响所述智能平板22的响应速度和准确性,因此,需要提高数据传输的速度和质量。
在本实施方式中,选用红外通信的方式,且在获得所述目标加速度数据后,通过自定义的红外通信协议对所述目标加速度数据进行编码,封装成目标数据包,再将所述目标数据包发送给所述智能平板22。
接下来,以所述原始加速度数据为三轴原始加速度数据的情况对自定义的红外通信协议进行详细说明,按照自定义的红外通信协议,目标数据包的结构如下表:
HEAD PKT_NUM X_VALUE Y_VALUE Z_VALUE CRC8
  1字节 2字节 2字节 2字节 1字节
其中,HEAD为包头,包括350us低电平和500us高电平。PKT_NUM为包编号,所述智能书写笔21每生成一个目标数据包,则将所述目标数据包中的包编号加一,所述包编号的取值范围为0~255,所述智能平板22在接收到所述目标数据包后,能够根据所述包编号来检验传输过程中是否有丢包,例如所述智能平板22接收到的上一个所述目标数据包的包编号为45,当前接收到的所述目标数据包的包编号为47,则说明在传输过程中出现了丢包,因此,可以根据所述包编号来统计丢包率或者进行报错操作。X_VALUE、Y_VALUE和Z_VALUE分别为X轴、Y轴和Z轴的目标加速度数据,均为有符号的16位整数,单位均为mg。CRC8为校验位,用于检验所述智能平板22对所述目标数据包的解析是否出错,具体地,所述智能平板22在对某一目标数据包解析完后,针对该目标数据包的PKT_NUM到Z_VALUE共7字节进行计算,并将计算结果与该目标数据包中的CRC8进行比较,若所述计算结果与CRC8一致,则说明所述智能平板22对所述目标数据包的解析正常,进而所述智能平板22根据解析结果执行相应的平板控制事件,若所述计算结果与CRC8不一致,则说明所述智能平板22对所述目标数据包的解析出现了错误,则所述智能平板22不再根据此次的解析结果执行相应的平板控制事件。
综上所述,本实施方式提供的智能平板22的控制系统按照上述自定义的红外协议封装数据包,能够在保证数据完备的前提下,精简发送给所述智能平板22的数据包的大小,从而提高了所述数据包的传输速度,进而提高了所述智能平板22的响应速度,有效地增加了控制过程的流畅度,增强了用户体验。
在一个优选的实施方式中,所述智能平板22具体用于:
根据所述目标加速度数据判定所述智能书写笔21的运动方向;以及,
执行所述运动方向相应的平板控制事件。
具体地,在本实施方式中,所述平板控制事件执行模块具体包括运动方向判断单元和平板控制事件执行单元;所述运动方向判断单元用于根据所述目标加速度数据判定所述智能书写笔21的运动方向;所述平板控制事件执行单元用于执行所述运动方向相应的平板控制事件。
在本实施方式中,用户在操控所述智能书写笔21时,可以使所述智能书写笔21沿X轴正方向移动、X轴负方向移动、Y轴正方向移动、Y轴负方向移动、Z轴正方向移动、或者Z轴负方向移动。一方面,所述智能平板22可以根据所述智能书写笔21的目标加速度数据的正负来判断所述智能书写笔21的运动方向,例如,预先定义当某一轴的目标加速度数据为正值时,表示所述智能书写笔21向某一轴的正方向移动,反之亦然。另一方面,所述智能平板22可以根据所述智能书写笔21的不同运动方向来执行不同的平板控制事件,例如在所述目标数据包中仅有一轴的目标加速度数据不为零的前提下,当所述智能平板22解析到X轴的目标加速度数据为正值,则说明所述智能书写笔21沿X轴正方向移动,所述智能平板22执行PPT翻页控制事件,当所述智能平板22解析到X轴的目标加速度数据为负值,则说明所述智能书写笔21沿X轴负方向移动,所述智能平板22执行PPT全屏控制事件,当所述智能平板22解析到Y轴的目标加速度数据为正值,则说明所述智能书写笔21沿Y轴正方向移动,所述智能平板22执行播放音量增加控制事件,当所述智能平板22解析到Y轴的目标加速度数据为负值,则说明所述智能书写笔21沿Y轴负方向移动,所述智能平板22执行播放音量减小控制事件等等。
在一个优选的实施方式中,所述智能平板22还用于:
在执行所述运动方向相应的平板控制事件之前,根据所述目标加速度数据判断所述目标加速度数据所在的数值区间;
所述智能平板22具体用于:
在判定所述目标加速度数据属于第一预设数值区间时,执行第一预设数值区间内所述运动方向相应的平板控制事件;以及,
在判定所述目标加速度数据属于第二预设数值区间时,执行第二预设数值区间内所述运动方向相应的平板控制事件。
具体地,在本实施方式中,所述平板控制事件执行模块还包括数值区间判断单元,所述数值区间判断单元用于在执行所述运动方向相应的平板控制事件之前,根据所述目标加速度数据判断所述目标加速度数据所在的数值区间;且所述平板控制事件执行单元具体包括第一控制事件执行子单元和第二控制事件执行子单元;所述第一控制事件执行子单元用于在判定所述目标加速度数据属于第一预设数值区间时,执行第一预设数值区间内所述运动方向相应的平板控制事件;所述第二控制事件执行子单元用于在判定所述目标加速度数据属于第二预设数值区间时,执行第二预设数值区间内所述运动方向相应的平板控制事件。
在本实施方式中,以所述智能书写笔21沿X轴运动的情况来进行说明,用户在操控所述智能书写笔21时,可以使所述智能书写笔21缓慢地沿X轴正方向移动、快速地沿X轴正方向移动、缓慢地沿X轴负方向移动、或者快速地沿X轴负方向移动。一方面,所述智能平板22可以根据所述智能书写笔21的目标加速度数据的所属的数值区间来判断所述智能书写笔21的运动速度,例如,若加速度传感器设置为±2g,根据用户的实际操作习惯,可以预先定义当所述目标加速度数据所属的数值区间为(200mg,1000mg)或 者(-200mg,-1000mg),表示用户在缓慢地移动所述智能书写笔21,当所述目标加速度数据所属的数值区间为[200mg,1000mg]或者[-200mg,-1000mg],表示用户在快速地移动所述智能书写笔21。另一方面,所述智能平板22可以结合所述智能书写笔21的不同运动方向和不同运动速度来执行不同的平板控制事件,例如当所述智能书写笔21缓慢地沿X轴正方向移动时,所述智能平板22解析到X轴目标加速度数据为正值,且所述X轴目标加速度数所属的数值区间为[200mg,1000mg],则所述智能平板22执行PPT翻页控制事件,当所述智能书写笔21快速地沿X轴正方向移动时,所述智能平板22解析到X轴目标加速度数据为正值,且所述X轴目标加速度数据所属的数值区间为(200mg,1000mg),所述智能平板22执行PPT全屏控制事件等等。
综上所述,本实施方式提供的智能平板22的控制系统,结合智能书写笔21的运动方向和运动速度,通过组合判断的方式,使得智能书写笔21可以实现对智能平板22更多功能的控制。
需要说明的是,在本发明实施例提供的智能平板22的控制系统中,所述智能书写笔21和所述智能平板22之间的数据通信可以通过多种方式来实现。优选地,可以由所述智能书写笔21和所述智能平板22直接进行无线通信,例如智能书写笔21内部集成有无线发送模块,智能平板22内部集成有无线接收模块,彼此间能够直接进行无线数据通信;另外,也可以通过中间媒介来进行数据转发,例如在系统中配置独立的数据收发器。即,所述智能平板22的控制系统还包括数据收发器,所述数据收发器通过USB接口与智能平板22进行连接,智能书写笔21通过无线的方式将数据发送给所述数据收发器,所述数据收发器再通过USB接口将数据转发至智能平板22。
本发明实施例提供的智能平板的控制方法及系统,通过检测所述智能书写笔的当前运动,从而获取所述智能书写笔的运动加速度数据并将其发送给所述智能平板,相应地,所述智能平板根据所述智能书写笔的运动加速度数据执行相应的平板控制事件;可见,用户只需要使所述智能书写笔完成相应的姿态运动,就可以实现对所述智能平板的相应控制。因此,采用本发明能够简单快捷地实现对智能平板的控制,简化了控制过程,有效地提高了用户体验。
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和变形,这些改进和变形也视为本发明的保护范围。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。

Claims (12)

  1. 一种智能平板的控制方法,其特征在于,包括:
    S11、智能书写笔根据其当前运动获取自身的目标加速度数据;
    S12、所述智能书写笔在其当前运动有效时,将所述目标加速度数据发送给智能平板;
    S13、所述智能平板接收所述目标加速度数据;
    S14、所述智能平板根据所述目标加速度数据执行相应的平板控制事件。
  2. 如权利要求1所述的智能平板的控制方法,其特征在于,在所述步骤S12之前,还包括:
    所述智能书写笔根据所述目标加速度数据判断所述当前运动是否有效;并且,
    当所述目标加速度数据的绝对值大于预设的阈值时,判定所述当前运动有效;
    当所述目标加速度数据的绝对值小于或等于所述预设的阈值时,判定所述当前运动无效。
  3. 如权利要求1所述的智能平板的控制方法,其特征在于,所述步骤S11具体包括:
    智能书写笔根据其当前运动获取自身的原始加速度数据;
    所述智能书写笔根据当前环境噪声计算当前误差数据;所述当前环境噪声包括ADC噪声和运动传感器噪声;
    所述智能书写笔对所述原始加速度数据进行滤波,获得滤波后的加速度数据;
    所述智能书写笔将所述滤波后的加速度数据减去所述当前误差数据,生成差值数据;
    所述智能书写笔对所述差值数据取最大值,获得其自身的目标加速度数据。
  4. 如权利要求1所述的智能平板的控制方法,其特征在于,所述步骤S12具体包括:
    所述智能书写笔在其当前运动有效时,按照预设的红外通信协议对所述目标加速度数据进行编码,以生成目标数据包;所述目标数据包中包括依次排列的包头、包编号、目标加速度数据、以及校验位;
    所述智能书写笔将所述目标数据包发送给智能平板。
  5. 如权利要求1所述的智能平板的控制方法,其特征在于,所述步骤S14具体包括:
    所述智能平板根据所述目标加速度数据判定所述智能书写笔的运动方向;
    所述智能平板执行所述运动方向相应的平板控制事件。
  6. 如权利要求5所述的智能平板的控制方法,其特征在于,所述智能平板执行所述运动方向相应的平板控制事件之前,还包括:
    所述智能平板根据所述目标加速度数据判断所述目标加速度数据所在的数值区间;
    所述智能平板执行所述运动方向相应的平板控制事件,具体为:
    所述智能平板在判定所述目标加速度数据属于第一预设数值区间时,执行第一预设数值区间内所述运动方向相应的平板控制事件;以及,
    所述智能平板在判定所述目标加速度数据属于第二预设数值区间时,执行第二预设数值区间内所述运动方向相应的平板控制事件。
  7. 一种智能平板的控制系统,其特征在于,包括智能书写笔和智能平板;
    所述智能书写笔用于根据其当前运动获取自身的目标加速度数据;
    所述智能书写笔还用于在其当前运动有效时,将所述目标加速度数据发送给智能平板;
    所述智能平板用于接收所述目标加速度数据;
    所述智能平板还用于根据所述目标加速度数据执行相应的平板控制事件。
  8. 如权利要求7所述的智能平板的控制系统,其特征在于,所述智能书写笔还用于:
    在将所述目标加速度数据发送给智能平板之前,根据所述目标加速度数据判断所述当前运动是否有效;并且,
    当所述目标加速度数据的绝对值大于预设的阈值时,判定所述当前运动有效;
    当所述目标加速度数据的绝对值小于或等于所述预设的阈值时,判定所述当前运动无效。
  9. 如权利要求7所述的智能平板的控制系统,其特征在于,所述智能书写笔具体用于:
    根据其当前运动获取自身的原始加速度数据;
    根据当前环境噪声计算当前误差数据;所述当前环境噪声包括ADC噪声和加速度传感器噪声;
    对所述原始加速度数据进行滤波,获得滤波后的加速度数据;
    将所述滤波后的加速度数据减去所述当前误差数据,生成差值数据;以及,
    对所述差值数据取最大值,获得其自身的目标加速度数据。
  10. 如权利要求7所述的智能平板的控制系统,其特征在于,所述智能书写笔具体用于:
    在其当前运动有效时,按照预设的红外通信协议对所述目标加速度数据进行编码,以生成目标数据包;所述目标数据包中包括依次排列的包头、包编号、目标加速度数据、以及校验位;以及,
    将所述目标数据包发送给智能平板。
  11. 如权利要求7所述的智能平板的控制系统,其特征在于,所述智能平板具体用于:
    根据所述目标加速度数据判定所述智能书写笔的运动方向;以及,
    执行所述运动方向相应的平板控制事件。
  12. 如权利要求11所述的智能平板的控制系统,其特征在于,所述智能平板还用于:
    在执行所述运动方向相应的平板控制事件之前,根据所述目标加速度数据判断所述目标加速度数据所在的数值区间;
    所述智能平板具体用于:
    在判定所述目标加速度数据属于第一预设数值区间时,执行第一预设数值区间内所述运动方向相应的平板控制事件;以及,
    在判定所述目标加速度数据属于第二预设数值区间时,执行第二预设数值区间内所述运动方向相应的平板控制事件。
PCT/CN2017/105066 2016-11-15 2017-09-30 智能平板的控制方法及系统 Ceased WO2018090755A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201611025439.5 2016-11-15
CN201611025439.5A CN106557182B (zh) 2016-11-15 2016-11-15 智能平板的控制方法及系统

Publications (1)

Publication Number Publication Date
WO2018090755A1 true WO2018090755A1 (zh) 2018-05-24

Family

ID=58443569

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/105066 Ceased WO2018090755A1 (zh) 2016-11-15 2017-09-30 智能平板的控制方法及系统

Country Status (2)

Country Link
CN (1) CN106557182B (zh)
WO (1) WO2018090755A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106557182B (zh) * 2016-11-15 2019-10-22 广州视源电子科技股份有限公司 智能平板的控制方法及系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102024316A (zh) * 2009-09-09 2011-04-20 罗富强 一种无线智能感测方法、装置及系统
CN102759994A (zh) * 2012-06-07 2012-10-31 歌尔声学股份有限公司 一种控制系统和一种控制设备
CN103529961A (zh) * 2013-11-01 2014-01-22 孙路 手持终端控制设备及控制方法
US20150346834A1 (en) * 2014-06-02 2015-12-03 Samsung Electronics Co., Ltd. Wearable device and control method using gestures
CN106557182A (zh) * 2016-11-15 2017-04-05 广州视源电子科技股份有限公司 智能平板的控制方法及系统

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9696337B2 (en) * 2013-05-30 2017-07-04 MCube Inc. MEMS-based proximity sensor device and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102024316A (zh) * 2009-09-09 2011-04-20 罗富强 一种无线智能感测方法、装置及系统
CN102759994A (zh) * 2012-06-07 2012-10-31 歌尔声学股份有限公司 一种控制系统和一种控制设备
CN103529961A (zh) * 2013-11-01 2014-01-22 孙路 手持终端控制设备及控制方法
US20150346834A1 (en) * 2014-06-02 2015-12-03 Samsung Electronics Co., Ltd. Wearable device and control method using gestures
CN106557182A (zh) * 2016-11-15 2017-04-05 广州视源电子科技股份有限公司 智能平板的控制方法及系统

Also Published As

Publication number Publication date
CN106557182B (zh) 2019-10-22
CN106557182A (zh) 2017-04-05

Similar Documents

Publication Publication Date Title
CN108287611B (zh) 屏幕触控响应方法、终端和计算机存储介质
WO2017165053A1 (en) Automated and body driven headset audio control
CN111580690A (zh) 触控笔模式切换方法、装置、触控笔及可读存储介质
WO2015027714A1 (zh) 视频播放方法、装置、终端设备和服务器
CN107613128B (zh) 一种音量调节方法、终端及计算机可读存储介质
CN110064191B (zh) 基于陀螺仪的游戏互动方法、装置、系统及存储介质
CN106774815B (zh) 触摸手势确定方法及装置
CN110677224B (zh) 一种波束状态检测方法及终端
CN109995862B (zh) 一种资源调度方法及终端
CN108093444A (zh) 无线网络传输速率控制方法、装置、终端设备及存储介质
WO2019129092A1 (zh) 一种降帧率拍照方法、移动终端及存储介质
WO2017031647A1 (zh) 一种检测触摸方式的方法及装置
CN109195058B (zh) 耳机声道的切换方法、装置、终端及存储介质
CN105700810B (zh) 信息交互方法和装置
WO2018149323A1 (zh) 拍摄方向偏移检测方法、装置、设备及存储介质
CN108132749A (zh) 一种图像编辑方法及移动终端
CN111107636A (zh) 信道状态信息测量方法、终端及计算机存储介质
CN109960456B (zh) 一种虚拟按键布局的生成方法及终端设备
CN112118188A (zh) 一种流量限速方法、装置、电子设备及存储介质
CN108521417B (zh) 一种通信处理方法及移动终端
CN112600583B (zh) 天线控制方法、控制装置、用户设备和可读存储介质
CN113391726A (zh) 一种自学习防误触控方法、设备及计算机可读存储介质
WO2018090755A1 (zh) 智能平板的控制方法及系统
CN109889214B (zh) 一种降低sar值的方法及移动终端
CN110794985A (zh) 一种调整屏幕触控灵敏度的方法、终端及计算机存储介质

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: 17871396

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

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

Free format text: 1205A 01.10.2019

122 Ep: pct application non-entry in european phase

Ref document number: 17871396

Country of ref document: EP

Kind code of ref document: A1