CN110806811A - Method and device for generating mouse control instruction through MPU - Google Patents

Method and device for generating mouse control instruction through MPU Download PDF

Info

Publication number
CN110806811A
CN110806811A CN201910228008.6A CN201910228008A CN110806811A CN 110806811 A CN110806811 A CN 110806811A CN 201910228008 A CN201910228008 A CN 201910228008A CN 110806811 A CN110806811 A CN 110806811A
Authority
CN
China
Prior art keywords
mouse
mpu
data
motion data
gravity sensor
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.)
Pending
Application number
CN201910228008.6A
Other languages
Chinese (zh)
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.)
Beijing Ingenic Semiconductor Co Ltd
Original Assignee
Beijing Ingenic Semiconductor 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 Beijing Ingenic Semiconductor Co Ltd filed Critical Beijing Ingenic Semiconductor Co Ltd
Publication of CN110806811A publication Critical patent/CN110806811A/en
Pending legal-status Critical Current

Links

Images

Classifications

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

Landscapes

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

Abstract

The invention provides a method and a device for generating a mouse control instruction through an MPU (micro processing unit), wherein a gravity sensor is arranged in the MPU, and the method comprises the following steps: the MPU acquires motion data acquired by the gravity sensor; the MPU converts the motion data into mouse events. By means of the method, the user can generate the mouse control instruction through movement without the help of a mouse, and the technical effect of simply and efficiently realizing control is achieved.

Description

Method and device for generating mouse control instruction through MPU
Technical Field
The invention relates to the technical field of data processing, in particular to a method and a device for generating a mouse control instruction through an MPU (micro processing unit).
Background
With the continuous development of internet technology and game technology. More and more people are playing some shooting games in the first-person perspective through mobile phones and computers. For example: fire line Crossing (CF), CS, fire line assault, temple escape, etc. However, whether playing on an android phone or a desktop computer, the user generally needs to swing the mobile phone left, right, up and down to perform remote control or control through the mobile phone.
In order to enhance the entertainment and the fresh feeling of the game, the intelligent glasses can be swung to synchronize with the picture swinging in the game. For example: when the crossing live wire is played, the keyboard at the first person visual angle can control the characters to move left and right, move forward and backward, and the mouse is clicked to control shooting. Based on this, wearable glasses can be utilized to control the target star in the game character to move left and right through left and right shaking of the head, for example: the head raising is forward, the head lowering is backward, and the gun is fired by clicking the touch pad, so that only one USB line is needed to be connected with the main equipment for realizing the technology.
However, no effective solution has been proposed at present how to realize the conversion of specific control commands after connection.
Disclosure of Invention
The embodiment of the invention provides a method for generating a mouse control instruction through an MPU (micro processing unit), wherein a gravity sensor is arranged in the MPU so as to realize mouse instruction control through the wearable MPU, and the method comprises the following steps:
the MPU acquires motion data acquired by the gravity sensor;
the MPU converts the motion data into mouse events.
In one embodiment, the MPU converts the motion data into mouse events, comprising:
the MPU acquires the corresponding relation between the motion data and the mouse event from the memory;
and the MPU converts the motion data into a mouse event according to the corresponding relation.
In one embodiment, the MPU converts the motion data into a mouse event according to the correspondence, including:
and the MPU converts the motion data into mouse events corresponding to the up, down, left and right movement of a mouse through switch conversion.
In one embodiment, the gravity sensor is used to acquire acceleration data and angular velocity data from time to time.
In one embodiment, the above method further comprises: analyzing acceleration data collected within a preset time period; and determining whether the wearable equipment is in the motion state according to the analysis result.
An embodiment of the present invention further provides an apparatus for generating a mouse control command through an MPU, where the apparatus is located in the MPU, and a gravity sensor is disposed in the MPU, so that mouse command control is achieved through the wearable MPU, and the apparatus includes:
the acquisition module is used for acquiring the motion data acquired by the gravity sensor;
and the conversion module is used for converting the motion data into a mouse event.
In one embodiment, the conversion module comprises:
the acquisition unit is used for acquiring the corresponding relation between the motion data and the mouse events from the memory;
and the conversion unit is used for converting the motion data into a mouse event according to the corresponding relation.
In one embodiment, the conversion unit is specifically configured to convert the motion data into a mouse event corresponding to up, down, left, and right movements of a mouse through switch conversion.
In one embodiment, the gravity sensor is used to acquire acceleration data and angular velocity data from time to time.
In one embodiment, the above apparatus further comprises:
the analysis module is used for analyzing the acceleration data collected within a preset time length;
and the determining module is used for determining whether the wearable equipment is in a motion state according to the analysis result.
In the embodiment of the invention, the gravity sensor is arranged in the MPU, and the MPU can acquire the motion data acquired by the gravity sensor and convert the motion data into the mouse event so as to realize the control based on the mouse. By means of the method, the user can generate the mouse control instruction through movement without the help of a mouse, and the technical effect of simply and efficiently realizing control is achieved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the principles of the invention. In the drawings:
FIG. 1 is an architectural diagram of smart glasses according to an embodiment of the invention;
FIG. 2 is a flow chart of a control method according to an embodiment of the invention;
FIG. 3 is a method flow diagram of a method of generating mouse control instructions by an MPU according to an embodiment of the present invention;
fig. 4 is a block diagram of a structure of an apparatus for generating a mouse control instruction by an MPU according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the following embodiments and accompanying drawings. The exemplary embodiments and descriptions of the present invention are provided to explain the present invention, but not to limit the present invention.
In this example, it is considered that in order to realize the control of the game based on the wearable device, the game can be driven by the MPU sensor in the wearable device, and a mouse connected with the host can be replaced by an HID mouse protocol inside the wearable device system; specifically, the acceleration data and the angle data generated by the MPU sensor may be converted into instructions in a mouse protocol through a protocol, and then transmitted to the host through the USB.
However, although the above-mentioned way can theoretically accomplish the control of the game by the wearable device, the following problems still need to be solved:
1) the interface needs to use the HID protocol code inside the mouse device itself, and the protocol code needs to be migrated and merged with the MPU driver.
2) The hardware interface of the mouse end needs to be consistent with the wearable device end, and the interface connected with the host needs to be a USB interface, which may cause incompatibility of circuits or increase of power consumption, and cannot guarantee complete simulation.
3) There is a problem of distance limitation, and when the person moves too hard, the USB connection cable may be torn.
In order to solve the above problems, the conventional mouse-based control is explained and analyzed as follows: the mouse used in the prior game is mainly an optical machine type mouse, the mouse can drive a rubber ball to roll when moving, and the rolling of the rubber ball rubs grid wheel rolling shafts in the horizontal direction and the vertical direction of a branch pipe in the mouse, so that a grid wheel is driven to rotate. The wheel edge of the grid wheel is in a grid shape and is close to two sides of the grid, one side of the grid wheel is provided with an infrared luminous tube, and the other side of the grid wheel is provided with an infrared receiving component. Thus, the movement of the mouse is converted into rotation of the horizontal and vertical grid wheels in different directions and at different rotation speeds. When the grid wheel rotates, the gear teeth of the grid wheel periodically shield the infrared rays emitted by the infrared light emitting tube from irradiating the horizontal and vertical infrared receiving assemblies, so that pulses are generated. The control chip in the mouse judges the rotation direction of the horizontal or vertical grid wheel through the phase difference of the two pulses, judges the rotation speed of the grid wheel through the frequency of the pulses, continuously transmits the mouse movement information to the host through the data line, and the host makes the cursor on the screen move synchronously with the mouse through processing.
For a mouse, there are several positioning methods as follows:
1) the working principle of the trackball positioning editing is similar to that of the grating, only the movement mode of the roller is changed, the ball seat is fixed, and the movement of the arrow of the mouse is controlled by directly poking the trackball by hands. When the track ball is rubbed, the track ball drives the rolling shafts on the left side, the right side, the upper side and the lower side of the track ball, grid wheels are arranged on the rolling shafts, and pulse signals are generated through the luminous tube and the receiving assembly for positioning. However, the track ball has large roller volume and long stroke, and the positioning mode can make very accurate operation. And the trackball has another great advantage of stability, and the positioning is controlled through one finger, so that the positioning cannot be influenced by the movement of the hand. In addition, there are also trackballs that use electro-optical means, which operate on a similar principle to led positioning.
2) Diode pointing editing is the pointing mode of most optical mice, which is an electric eye working mode. Inside the optical mouse, there is a light emitting diode, and the light emitted by the light emitting diode illuminates the bottom surface of the optical mouse (which is why the bottom of the mouse always emits light). Then, a part of the light reflected by the bottom surface of the optical mouse is transmitted to a light sensing device (micro imager) for imaging through a group of optical lenses. Thus, when the optical mouse moves, the moving track is recorded as a group of consecutive images shot at high speed. Finally, a special image analysis chip (DSP, digital microprocessor) in the optical mouse is used for analyzing and processing a series of images shot on the moving track, and the moving direction and the moving distance of the mouse are judged by analyzing the change of the positions of the characteristic points on the images, so that the positioning of the cursor is completed.
3) Laser positioning editing is also a positioning mode of an optical mouse and is characterized in that laser is used for replacing common light emitted by a light emitting diode. The laser is light emitted by electron excitation, has extremely high monochromaticity and linearity compared with common light, and is mainly invisible light for positioning. The inconsistent reflectivity of common light on different color surfaces causes the problem of color blindness on some color surfaces of the optical mouse, which can not be recognized by the DSP due to low light reflectivity. In addition, ordinary light cannot be used on a surface of a transparent substance or the like, or a jump occurs. Because the surface condition can be better identified by the nearly single wavelength of the laser, the sensitivity is effectively improved, and the problems can be effectively solved by using the mouse positioned by the laser.
4) The method for editing the blue shadow positioning is a latest accurate positioning mode developed by Microsoft, a mouse utilizing the blue track blue shadow technology uses blue visible light, but the principle of diffuse reflection is not utilized, but the principle of mirror reflection point imaging of a laser engine is utilized, a blue light source penetrates through a high-angle collimating lens to strike the surface of any object, and reflected light enters a converging lens and is transmitted into a CMOS chip to be subjected to blue shadow positioning processing. The optical sensor (CMOS Detector) takes thousands of photos per second like a high-speed continuous camera, and transmits the photos to the image processing chip, and the chip compares each photo to obtain the movement track of the mouse. The blue mouse has good compatibility, can be suitable for various table tops, can be accurately positioned on marble table tops with smooth surfaces, transparent glass and even rough carpet in a living room.
The above is the principle of several existing determining ways of the moving direction and the moving distance of the mouse.
Under the Linux system, most usb mouse drivers are roughly divided into three parts: the usb device driving part is used for acquiring coordinates and action events transmitted by the mouse device through a usb protocol; an input subsystem part; the report interruption part is described as follows:
1) when the system is started, the system is matched with all the USB devices, the USB device driver scans the port which is a place for storing data to be sent in the USB driver, and this scanning process can be called configuration. The operations can be automatically carried out no matter Windows or Linux kernel, the configuration process is quite complex, and in the process, the system can establish the description information of the equipment, the configuration, the interface, the setting and the endpoint of the equipment; channels are established for transmission with the usb device (these are all usb protocol compliant), after which the driver of the usb device is matched to these interfaces. Then, some initialization work is performed on the device, for example: assign urb, wherein urb is the mouse for data, this is called for ready to receive data.
2) In the interrupt part, when a piece of data comes, the usb core layer triggers a callback function, and the callback function is submitted to the hcd (usb controller) to schedule receiving and sending data after the device driver registers and is called by an Api provided by Kernel.
3) The Input subsystem registers an Input device in a driver, when coordinate data of the mouse is obtained, the coordinates and action events need to be reported to a udev node of the system, and the rest part is delivered to a system layer to be finished. -
Based on this, in this example it is considered that the distance and angle data, from which the mouse-generated events can be replaced, are calculated from the accelerations and angular velocities that can be generated by the movement of the wearable device. The mouse driving at the host system side is not concerned, and the game control can be realized through the wearable device only by doing replacement work.
For a mouse, the inside of the mouse generally includes two modules: one part is a DSP chip and a grating mechanical sensor, the two generate digital signals through physical movement, and then the coordinates and the distance of each point in the movement are calculated; the other part is used as a usb device part and is used for transmitting data to the host through a usb line according to a usb device side protocol.
An interrupt is always generated in the MPU Sensor driving, and the corresponding driving program always obtains acceleration data. The wearable device (e.g., glasses) is considered as a whole. As shown in FIG. 1, 3 axes extend in three dimensions, for example, the z-axis is used as the gravity value to be applied, and the 3-axis accelerator is programmable and has a program control range of + -2 g, + -4 g, + -8 g and + -16 g. Through accelerometer data, average value sampling operation can be carried out on an HAL layer, so that instantaneous acceleration data which is artificially shaken are obtained and converted into the moving distance and the moving speed of the mouse, and then the moving distance and the moving speed are written back to a source code of the mouse through an ioctl character equipment interface.
If the internal chip of the mouse has a chip which is also a gravity sensing Sensor (and may also be an optical Sensor), when the mouse is moved or the mouse is clicked to generate data, the data is sent to the driver by the HID protocol through the usb wire. Based on the consideration, the HID protocol code can be transplanted into Kernel of the wearable device, so that the wearable device can become a wearable mobile mouse. Correspondingly, the transmitted data source is data generated by shaking the MPU of the head, the final result is classified by calculation, then the moving speed, the moving distance, the angle and the moving direction are packaged in a structural form according to the HID protocol, and switch judgment can be made, so that the data of the head movement is converted into an event of moving the mouse up and down and left and right, that is, the event generated by the MPU needs to be corresponding to the event corresponding to the mouse, and finally the event generated by the MPU can be converted into data of the original mouse and sent to the host computer, because the system and the protocol support the mouse but do not support the MPU.
Specifically, MPU produces acceleration data and angular velocity data at every moment, and the motion through each axis can produce the weight of the acceleration of different directions, can calculate instantaneous motion contained angle through the weight, through gathering the acceleration data and the change analysis in a period of time, can judge that wearable equipment is motion or static, whether move to a certain point and stop to and specific displacement, and obtain mouse motion data with these data simulation, then adopt the data format of mouse to pack.
For example, the MPU detects that the head moves 10cm to the left, the distance acceleration is 0.6g generated in the x-axis direction, and the angle is 0, and after calculating the data, the data can be manually mapped in a program to map the data to the movement distance event and the angle event in the mouse. For example: the event that the head moves 10cm to the right left is mapped to the host side, namely the 10cm of the left movement of the mouse, and for the host side, the command sent by the mouse is still considered to be reported to the host through the driver.
Through the mode, the mouse simulation can be realized by connecting the wearable device with the host computer.
As shown in fig. 1, in this example, there is provided smart glasses for games, which may include:
1) the wearing part 101 is used for sleeving the intelligent glasses on the head;
2) a gravity sensor 102 for sensing head movement of a user;
3) and the MPU 103 is connected with the gravity sensor 102 and used for acquiring the head motion data and converting the head motion data into mouse control data, wherein the mouse control data is transmitted to a host computer to control a game.
That is, the gravity sensor is added in the wearable device (such as intelligent glasses) to sense the head movement of the user, and the head movement of the user is converted into a mouse instruction (such as front-back, left-right movement and the like), so that the game is controlled. By means of the method, the user can realize game control through head movement without a mouse, and the technical effect of simply and efficiently realizing game control is achieved.
The gravity sensor 102 described above may include: acceleration sensors and angular velocity sensors. Through the arrangement of the acceleration sensor and the angular velocity sensor, the moving speed, the moving distance, the moving angle, the moving direction and the like of the head movement of the user can be effectively acquired, so that one of the moving speed, the moving distance, the moving angle, the moving direction and the like can be converted into an event corresponding to a mouse, the event can be packaged into a mouse event, and the game can be controlled.
In order to realize the control of the game in the host, a USB data line 104 may be provided on the smart glasses as shown in fig. 1, and the USB data line may be connected to the MPU 103 for transmitting the mouse control data to the host.
The USB data line can transmit data to the host through an HID protocol, and further the intelligent glasses can be provided with a Kernel module, wherein the HID protocol is located in the Kernel.
The host may be any device capable of carrying and playing games, for example, a mobile terminal, a desktop computer, etc.
Further, consider that the main effect of intelligent glasses is to accomplish the techniques such as watching or VR AR of intelligent glasses this application, the mouse function is not the most main effect of intelligent glasses, for this reason, can set up a mouse function control switch, through this control switch, can control whether intelligent glasses open the mouse function to when can making the game control of needs carry out, just start the mouse analog function of glasses, if need not carry out game control, can close its mouse analog function, in order to adapt to different scene demands.
Based on the smart glasses, the method steps as shown in fig. 2 can be adopted to realize control:
s1: triggering a glasses motion sensor through head motion to obtain acceleration data of three axes of x, y and z axes;
s2: reporting to an HAL layer through an android standard interface, simulating a motion track algorithm of a mouse, sampling acceleration data according to a certain time to obtain an average acceleration value, and calculating the moving distance in each direction. Then, simulating a mouse positioning photoelectric value by using the 3 acceleration values to obtain a simulated coordinate; .
S3: writing the group of data from the Hal layer to a mouse protocol code of a Driver layer, and then transmitting the data to a host by using a usb protocol in an interrupt transmission mode through the usb;
s4: after receiving the data, the Kernel of the host system considers that the data are data sent by the mouse and reports the data to the system through the driver so as to complete the simulation.
Through the intelligent glasses and the specific implementation mode provided by the above example, the sense of reality of the game can be enhanced, the purpose of controlling the game by replacing a manual mouse with the first-person-scale head visual angle is achieved, and the interest of the game is increased. Specifically, the gravity sensor in the glasses replaces a mouse on the host, so that the freshness of the game can be improved, and the aiming degree in the game can be higher.
Because of the HID protocol, the driver involved in the device and the method can be based on a Linux platform or a Windows system, and the compatibility of various systems and devices can be realized.
In this specification, adjectives such as first and second may only be used to distinguish one element or action from another, without necessarily requiring or implying any actual such relationship or order. References to an element or component or step (etc.) should not be construed as limited to only one of the element, component, or step, but rather to one or more of the element, component, or step, etc., where the context permits.
Fig. 3 is a method for generating a mouse control instruction through an MPU according to an embodiment of the present application. The MPU has a gravity sensor disposed therein, and while the flow described below includes a number of operations that occur in a particular order, it should be clear that the processes may include more or fewer operations that may be performed sequentially or in parallel (e.g., using parallel processors or a multi-threaded environment). As shown in fig. 3, the method includes:
step 301: the MPU acquires motion data acquired by the gravity sensor;
step 302: the MPU converts the motion data into mouse events.
The step 302 of converting the motion data into a mouse event may include:
s1: the MPU acquires the corresponding relation between the motion data and the mouse event from the memory;
s2: and the MPU converts the motion data into a mouse event according to the corresponding relation.
In one embodiment, the MPU converts the motion data into a mouse event according to the correspondence relationship, and may include: and the MPU converts the motion data into mouse events corresponding to the up, down, left and right movement of a mouse through switch conversion.
Specifically, the gravity sensor is used for acquiring acceleration data and angular velocity data constantly, and based on the acceleration data and the angular velocity data, the MPU can analyze the acceleration data acquired within a preset time period; and determining whether the wearable equipment is in the motion state according to the analysis result. That is, it is possible to determine whether the apparatus is in a stationary state or in a moving state based on the acquired data.
Based on the same inventive concept, the embodiment of the present invention further provides an apparatus for generating a mouse control instruction through an MPU, as described in the following embodiments. Since the principle of solving the problem of the device for generating the mouse control instruction by the MPU is similar to the method for generating the mouse control instruction by the MPU, the implementation of the device for generating the mouse control instruction by the MPU can refer to the implementation of the method for generating the mouse control instruction by the MPU, and repeated details are omitted. As used hereinafter, the term "unit" or "module" may be a combination of software and/or hardware that implements a predetermined function. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated. Fig. 4 is a block diagram of an apparatus for generating a mouse control command by an MPU in which a gravity sensor is disposed, according to an embodiment of the present invention, as shown in fig. 4, including: an acquisition module 401 and a conversion module 402, the structure of which is described below.
An obtaining module 401, configured to obtain motion data acquired by the gravity sensor;
a conversion module 402, configured to convert the motion data into a mouse event.
In one embodiment, the conversion module 402 may include: the acquisition unit is used for acquiring the corresponding relation between the motion data and the mouse events from the memory; and the conversion unit is used for converting the motion data into a mouse event according to the corresponding relation.
In an embodiment, the conversion unit may be specifically configured to convert the motion data into a mouse event corresponding to up, down, left, and right movements of a mouse through switch conversion.
In one embodiment, a gravity sensor may be used to acquire acceleration data and angular velocity data from time to time.
In one embodiment, the apparatus may further include: the analysis module is used for analyzing the acceleration data collected within a preset time length; and the determining module is used for determining whether the wearable equipment is in a motion state according to the analysis result.
In another embodiment, a software is provided, which is used to execute the technical solutions described in the above embodiments and preferred embodiments.
In another embodiment, a storage medium is provided, in which the software is stored, and the storage medium includes but is not limited to: optical disks, floppy disks, hard disks, erasable memory, etc.
From the above description, it can be seen that the embodiments of the present invention achieve the following technical effects: the gravity sensor is arranged in the MPU, and the MPU can acquire motion data acquired by the gravity sensor and convert the motion data into a mouse event so as to realize mouse-based control. By means of the method, the user can generate the mouse control instruction through movement without the help of a mouse, and the technical effect of simply and efficiently realizing control is achieved.
It will be apparent to those skilled in the art that the modules or steps of the embodiments of the invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, embodiments of the invention are not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes may be made to the embodiment of the present invention by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for generating mouse control instructions through an MPU, wherein a gravity sensor is arranged in the MPU, and the method comprises the following steps:
the MPU acquires motion data acquired by the gravity sensor;
the MPU converts the motion data into mouse events.
2. The method of claim 1, wherein the MPU converts the motion data into mouse events, comprising:
the MPU acquires the corresponding relation between the motion data and the mouse event from the memory;
and the MPU converts the motion data into a mouse event according to the corresponding relation.
3. The method of claim 2, wherein the MPU converts the motion data into a mouse event according to the correspondence, comprising:
and the MPU converts the motion data into mouse events corresponding to the up, down, left and right movement of a mouse through switch conversion.
4. The method of claim 1, wherein the gravity sensor is used to acquire acceleration data and angular velocity data from time to time.
5. The method of claim 4, further comprising:
analyzing acceleration data collected within a preset time period;
and determining whether the wearable equipment is in the motion state according to the analysis result.
6. An apparatus for generating a mouse control command by an MPU, located in the MPU, wherein a gravity sensor is provided in the MPU, comprising:
the acquisition module is used for acquiring the motion data acquired by the gravity sensor;
and the conversion module is used for converting the motion data into a mouse event.
7. The apparatus of claim 6, wherein the conversion module comprises:
the acquisition unit is used for acquiring the corresponding relation between the motion data and the mouse events from the memory;
and the conversion unit is used for converting the motion data into a mouse event according to the corresponding relation.
8. The apparatus according to claim 7, wherein the conversion unit is specifically configured to convert the motion data into a mouse event corresponding to a mouse moving up, down, left, and right through switch conversion.
9. The apparatus of claim 6, wherein the gravity sensor is configured to acquire acceleration data and angular velocity data from time to time.
10. The apparatus of claim 9, further comprising:
the analysis module is used for analyzing the acceleration data collected within a preset time length;
and the determining module is used for determining whether the wearable equipment is in a motion state according to the analysis result.
CN201910228008.6A 2018-07-20 2019-03-25 Method and device for generating mouse control instruction through MPU Pending CN110806811A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2018108031307 2018-07-20
CN201810803130 2018-07-20

Publications (1)

Publication Number Publication Date
CN110806811A true CN110806811A (en) 2020-02-18

Family

ID=69487321

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910228008.6A Pending CN110806811A (en) 2018-07-20 2019-03-25 Method and device for generating mouse control instruction through MPU

Country Status (1)

Country Link
CN (1) CN110806811A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024031614A1 (en) * 2022-08-12 2024-02-15 Tze Yuk MAK A human-interface device and a method for human-machine interface

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110001A (en) * 2007-08-24 2008-01-23 华南理工大学 Mouse wireless control device based on three-dimensional motion detecting and method thereof
CN101625607A (en) * 2009-08-17 2010-01-13 何进 Finger mouse
CN201945946U (en) * 2011-01-20 2011-08-24 叶尔肯·拜山 Head control mouse
CN107102754A (en) * 2017-04-28 2017-08-29 北京小米移动软件有限公司 Terminal control method and device, storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101110001A (en) * 2007-08-24 2008-01-23 华南理工大学 Mouse wireless control device based on three-dimensional motion detecting and method thereof
CN101625607A (en) * 2009-08-17 2010-01-13 何进 Finger mouse
CN201945946U (en) * 2011-01-20 2011-08-24 叶尔肯·拜山 Head control mouse
CN107102754A (en) * 2017-04-28 2017-08-29 北京小米移动软件有限公司 Terminal control method and device, storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024031614A1 (en) * 2022-08-12 2024-02-15 Tze Yuk MAK A human-interface device and a method for human-machine interface

Similar Documents

Publication Publication Date Title
US20240168602A1 (en) Throwable interface for augmented reality and virtual reality environments
US11237625B2 (en) Interaction engine for creating a realistic experience in virtual reality/augmented reality environments
US11954808B2 (en) Rerendering a position of a hand to decrease a size of a hand to create a realistic virtual/augmented reality environment
US11625103B2 (en) Integration of artificial reality interaction modes
US10191559B2 (en) Computer interface for manipulated objects with an absolute pose detection component
CN110650354B (en) Live broadcast method, system, equipment and storage medium for virtual cartoon character
US20190235636A1 (en) Systems and Methods of Creating a Realistic Displacement of a Virtual Object in Virtual Reality/Augmented Reality Environments
AU2008299883B2 (en) Processing of gesture-based user interactions
JP2024020489A (en) Depth sensing techniques for virtual, augmented and mixed reality systems
CN110806797A (en) Method and device for controlling game based on head movement
CN110806811A (en) Method and device for generating mouse control instruction through MPU
US20230349693A1 (en) System and method for generating input data from pose estimates of a manipulated object by using light data and relative motion data
CN110806798A (en) Control method and device based on HID protocol
CN110806796A (en) Control method and device
CN110732133A (en) method and device for remotely controlling game view angle based on intelligent glasses
CN110732134A (en) intelligent glasses for games
CN105511649B (en) A kind of multipoint location system and multipoint positioning method
CN113633962A (en) Large-space multi-person interactive integrated system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200218

RJ01 Rejection of invention patent application after publication