CN102915117A - Method for realizing plug-and-play somatosensory handle in Android system - Google Patents

Method for realizing plug-and-play somatosensory handle in Android system Download PDF

Info

Publication number
CN102915117A
CN102915117A CN2012104228380A CN201210422838A CN102915117A CN 102915117 A CN102915117 A CN 102915117A CN 2012104228380 A CN2012104228380 A CN 2012104228380A CN 201210422838 A CN201210422838 A CN 201210422838A CN 102915117 A CN102915117 A CN 102915117A
Authority
CN
China
Prior art keywords
android
wireless
data
body sense
handle
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.)
Granted
Application number
CN2012104228380A
Other languages
Chinese (zh)
Other versions
CN102915117B (en
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.)
SUZHOU YUNZHIHUDONG TECHNOLOGY Co Ltd
Original Assignee
SUZHOU YUNZHIHUDONG TECHNOLOGY 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 SUZHOU YUNZHIHUDONG TECHNOLOGY Co Ltd filed Critical SUZHOU YUNZHIHUDONG TECHNOLOGY Co Ltd
Priority to CN201210422838.0A priority Critical patent/CN102915117B/en
Publication of CN102915117A publication Critical patent/CN102915117A/en
Application granted granted Critical
Publication of CN102915117B publication Critical patent/CN102915117B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)
  • Position Input By Displaying (AREA)

Abstract

The invention relates to a method for realizing a plug-and-play somatosensory handle in an Android system. The method comprises the following steps: acquiring motion acceleration data from a gravity acceleration sensor by using a wireless somatosensory handle and transmitting the motion acceleration data to a wireless universal serial bus (USB) receiver by using a wireless transmission module; and after the wireless transmission module receives the motion acceleration data, simulating a rocker three-axis data of a usb joystick to an android system; and running a somatosensory game in the android system, acquiring the rocker three-axis data through a Motion Event interface of android frame work, translating into somatosensory data required by the somatosensory game, and performing action identification and control. The plug-and-play somatosensory handle is realized, the modification of bottom drive and framework support of a preinstalled android system is avoided, and a large amount of cost of development, test, adjustment and communication is reduced.

Description

The implementation method of Android system plug and play body sense handle
Technical field
The present invention relates to a kind of implementation method of gravity sensing body sense handle of plug and play, be applicable to android 3.0 and above system.
Background technology
Terminal intelligent electronic equipment majority in the family comprises intelligent television, Intelligent set top box and other smart machine based on android all based on android operating system at present.
Embedded somatic sensation television game has been broken through in the past simple mode of operation with the handle key-press input, but changes to operate by limb action, and runs on the android smart machine.And having Gravity accelerometer " game paddle " mode, the somatic sensation television game normal operation operates.
But the original mechanism of Android system can not directly be supported the body sense handle with Gravity accelerometer that external radio connects.Existing technical solution needs body sense handle technical scheme merchant that the driver that mates with body sense handle is provided, and is integrated in the Android system of customization, and needs the corresponding framework that revises Android system on the smart machine scheme to support.This mode, can't be on existing android equipment quick support sense handle, realize somatic sensation television game.
Therefore, producing at present serious contradiction is that a large amount of already present android smart machine terminals can perfectly be moved somatic sensation television game on the software and hardware function, but does not still have the body sense handle of plug and play.Another problem is if be the android smart machine support sense handle of new production, to need handle technical scheme merchant, Android system customization merchant, android smart machine provider and integrator in many ways to cooperate collaborative work.The each side of cooperative work is conferring standard, in the exploitation of working in coordination, final combined debugging, will expend considerable manpower and time.
Android operating system can have been supported usb joystick handle (Joystick) equipment of standard more than 3.0 versions reach, and reads each axis data of handle rocking bar by the routine interface (API) that its framework layer is realized.
Summary of the invention
The objective of the invention is to overcome the deficiency that prior art exists, the implementation method of a kind of Android system plug and play body sense handle is provided, solve body sense handle integrated difficulty and can't support the problem such as existing android equipment on Android system, make the extensive fast propagation of somatic sensation television game on Android system become possibility.
Purpose of the present invention is achieved through the following technical solutions:
The implementation method of Android system plug and play body sense handle may further comprise the steps:
1) the wireless body sense handle that has Gravity accelerometer obtains the acceleration of motion data from Gravity accelerometer, is transferred to wireless usb receiver by wireless transport module, and wireless usb receiver is connected on the android smart machine;
2) after wireless usb receiver receives the acceleration of motion data, be modeled to rocking bar three axis data of usb joystick to Android system;
3) the Motion Event interface of somatic sensation television game by android framework that operates in the Android system obtains rocking bar three axis data, and translates into the required body sense data of somatic sensation television game, carries out action recognition and control.
Further, the implementation method of above-mentioned Android system plug and play body sense handle, described wireless transport module transfers data to wireless usb receiver by radio frequency 2.4G, bluetooth or wifi mode, and the transmission accepting method of wireless usb receiver is corresponding with it.
Further, the implementation method of above-mentioned Android system plug and play body sense handle, described android smart machine is installed android 3.0 and above edition system, android smart machine moving body sense Games Software.
Again further, the implementation method of above-mentioned Android system plug and play body sense handle, it is characterized in that: described wireless usb receiver is inserted on the usb interface of android smart machine.
Again further, the implementation method of above-mentioned Android system plug and play body sense handle, by controlling the limb action of wireless body sense handle, be converted into 3-axis acceleration value (x, y by the Gravity accelerometer perception, z), after wireless body sense handle obtains 3-axis acceleration value (x, y, z), carry out standardization processing, be transferred to the usb receiver by wireless transport module; The usb wireless receiver adds the description of standard Joystick data in its usb coded description, after receiving 3-axis acceleration value (x, y, z), (x, y, z) sent as the rocking bar data (X, Y, Z) of Joystick;
The Android system spreads out of it after receiving the rocking bar data (X, Y, Z) of Joystick in standard MotionEvent mode, operation application thereon obtains data.
The substantive distinguishing features that technical solution of the present invention is outstanding and significant progressive being mainly reflected in:
The present invention realizes body sense handle plug and play, compares with existing body sense handle solution, and the system bottom of avoiding revising the android of prepackage drives and the support of framework layer, the great amount of cost of minimizing co-development, test, adjustment, communication; The standard of organizator sense handle and android integration of equipments, different body sense handles can use at different android smart machines, does not produce other integrated cost; Can on the android of production and sales smart machine, directly use, have very high proper value.
Description of drawings
Below in conjunction with accompanying drawing technical solution of the present invention is described further:
Fig. 1: system architecture schematic diagram of the present invention;
Fig. 2: the schematic flow sheet of implementation method of the present invention.
Embodiment
The invention provides a kind of body sense handle solution of plug and play, make a large amount of android intelligent television/set-top box in the situation that do not revise bottom layer driving and the framework support, can use immediately body sense handle, thereby support somatic sensation television game.
As shown in Figure 1, its hardware components has: wireless body sense handle 1, wireless transport module 2, wireless usb receiver 3, android smart machine 4 and operation Games Software thereon, wireless usb receiver 3 is inserted on the usb interface of android smart machine 4, wireless body sense handle 1 comprises various sensors, but comprise at least Gravity accelerometer 101, be used for the raw data of motional induction or the action recognition data transmission after processing to android, android smart machine 4 is installed android 3.0 and above edition system, moving body sense Games Software on the android smart machine.
As shown in Figure 2, the flow process of the implementation method of Android system plug and play body sense handle is:
1) the wireless body sense handle that has Gravity accelerometer obtains the acceleration of motion data from Gravity accelerometer, be transferred to wireless usb receiver by wireless transport module, wireless transport module is the module of radio frequency 2.4G, bluetooth or wifi, transfer data to wireless usb receiver by radio frequency 2.4G, bluetooth or wifi mode, the transmission accepting method of wireless usb receiver is corresponding with it;
2) after wireless usb receiver receives the acceleration of motion data, be modeled to rocking bar three axis data of usb joystick to Android system;
3) operate in somatic sensation television game in the Android system by android framework(android ccf layer) Motion Event interface obtain rocking bar three axis data, and translate into the required body sense data of somatic sensation television game, carry out action recognition and control.
The user controls the limb action of wireless body sense handle, be converted into 3-axis acceleration value (x by the Gravity accelerometer perception, y, z), after wireless body sense handle is obtained 3-axis acceleration value (x, y, z), then the pre-service that standardizes sends to wireless usb receiver by wireless transport module.
Wireless usb receiver adds standard Joystick(joystick in its usb coded description) description of data, when receiving 3-axis acceleration value (x, y, z) after, with (x, y, z) as the Joystick(joystick) rocking bar data (X, Y, Z) send; Its usb coded description fragment and being described as follows:
Code Explanation
0x09, 0x04 Usage (Joystick) 09 04
0x95, 0x06, Report Count (6) 95 05
0x09, 0x30 Usage (X) 09 30
0x09, 0x31, Usage (Y) 09 31
0x09, 0x32, Usage (Z) 09 32
The Android system spreads out of it after receiving the rocking bar data (X, Y, Z) of Joystick in standard MotionEvent mode, operation application thereon obtains this data.
Somatic sensation television game is by Android API(Android application programming interfaces) realize that call back function onGenericMotionEvent obtains rocking bar data (X, Y, Z) after, it is translated into the required 3-axis acceleration value (x, y, z) of game.Then further by the action recognition algorithm, the 3-axis acceleration value is converted to user's action control, reaches the user by the purpose of limb action operate game.Such as, analyze a series of and acceleration change value time correlation, can identify the action that the user once brandishes arm, be that the baseball player in the game makes similar driving action.
In sum, the present invention realizes body sense handle plug and play, compare with existing body sense handle solution, the system bottom of avoiding revising the android of prepackage drives and the support of framework layer, the great amount of cost of minimizing co-development, test, adjustment, communication; The standard of organizator sense handle and android integration of equipments, different body sense handles can use at different android smart machines, does not produce other integrated cost; Can on the android of production and sales smart machine, directly use, have very high proper value.
What need to understand is: the above only is preferred implementation of the present invention; for those skilled in the art; under the prerequisite that does not break away from the principle of the invention, can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (5)

1.Android the implementation method of system's plug and play body sense handle is characterized in that may further comprise the steps:
1) the wireless body sense handle that has Gravity accelerometer obtains the acceleration of motion data from Gravity accelerometer, is transferred to wireless usb receiver by wireless transport module, and wireless usb receiver is connected on the android smart machine;
2) after wireless usb receiver receives the acceleration of motion data, be modeled to rocking bar three axis data of usb joystick to Android system;
3) the Motion Event interface of somatic sensation television game by android framework that operates in the Android system obtains rocking bar three axis data, and translates into the required body sense data of somatic sensation television game, carries out action recognition and control.
2. the implementation method of Android according to claim 1 system plug and play body sense handle, it is characterized in that: described wireless transport module transfers data to wireless usb receiver by radio frequency 2.4G, bluetooth or wifi mode, and the transmission accepting method of wireless usb receiver is corresponding with it.
3. the implementation method of Android according to claim 1 system plug and play body sense handle, it is characterized in that: described android smart machine is installed android 3.0 and above edition system, android smart machine moving body sense Games Software.
4. the implementation method of Android according to claim 1 system plug and play body sense handle, it is characterized in that: described wireless usb receiver is inserted on the usb interface of android smart machine.
5. the implementation method of Android according to claim 1 system plug and play body sense handle, it is characterized in that: by controlling the limb action of wireless body sense handle, be converted into 3-axis acceleration value (x by the Gravity accelerometer perception, y, z), wireless body sense handle obtains 3-axis acceleration value (x, y, z) after, carry out standardization processing, be transferred to the usb receiver by wireless transport module; The usb wireless receiver adds the description of standard Joystick data in its usb coded description, after receiving 3-axis acceleration value (x, y, z), (x, y, z) sent as the rocking bar data (X, Y, Z) of Joystick;
The Android system spreads out of it after receiving the rocking bar data (X, Y, Z) of Joystick in standard MotionEvent mode, operation application thereon obtains data.
CN201210422838.0A 2012-10-30 2012-10-30 The implementation method of android system plug and play body sense handle Active CN102915117B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210422838.0A CN102915117B (en) 2012-10-30 2012-10-30 The implementation method of android system plug and play body sense handle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210422838.0A CN102915117B (en) 2012-10-30 2012-10-30 The implementation method of android system plug and play body sense handle

Publications (2)

Publication Number Publication Date
CN102915117A true CN102915117A (en) 2013-02-06
CN102915117B CN102915117B (en) 2015-08-19

Family

ID=47613514

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210422838.0A Active CN102915117B (en) 2012-10-30 2012-10-30 The implementation method of android system plug and play body sense handle

Country Status (1)

Country Link
CN (1) CN102915117B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103316472A (en) * 2013-05-17 2013-09-25 南京睿悦信息技术有限公司 Android device gas platform system based on Bluetooth handle and implementation method of Android device gas platform system
CN103657088A (en) * 2013-11-25 2014-03-26 苏州运智互动科技有限公司 Method for achieving android system double game driver-free motion-sensing handle 2
CN104436647A (en) * 2014-12-09 2015-03-25 邹其志 Novel special-purpose gamepad for android
CN105100004A (en) * 2014-05-06 2015-11-25 上海渡维电子科技有限公司 Motion sensing data transmission method and apparatus
CN105487686A (en) * 2015-11-30 2016-04-13 上海电机学院 Interactive game device capable of identifying gesture wave
CN106730820A (en) * 2016-12-12 2017-05-31 苏州蜗牛数字科技股份有限公司 A kind of method and android terminal device for being adapted to various game paddles
CN109085927A (en) * 2018-09-10 2018-12-25 南昌黑鲨科技有限公司 Operation control assembly, method, intelligent terminal and computer readable storage medium based on body-sensing
CN112328098A (en) * 2019-08-04 2021-02-05 广州市品众电子科技有限公司 Method for controlling electronic equipment and somatosensory control handle
CN113407044A (en) * 2021-07-16 2021-09-17 北京百度网讯科技有限公司 Method, device, equipment and storage medium for simulating terminal handle input

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060084504A1 (en) * 2004-04-30 2006-04-20 Chan Andy K Wireless communication systems
CN201821461U (en) * 2010-09-02 2011-05-04 中国华录集团有限公司 Set-top box with joystick for realizing game function
CN102671382A (en) * 2011-03-08 2012-09-19 德信互动科技(北京)有限公司 Somatic game device
CN102750146A (en) * 2012-06-07 2012-10-24 惠州Tcl移动通信有限公司 Method for realizing simulated mouse control in intelligent terminal and intelligent terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060084504A1 (en) * 2004-04-30 2006-04-20 Chan Andy K Wireless communication systems
CN201821461U (en) * 2010-09-02 2011-05-04 中国华录集团有限公司 Set-top box with joystick for realizing game function
CN102671382A (en) * 2011-03-08 2012-09-19 德信互动科技(北京)有限公司 Somatic game device
CN102750146A (en) * 2012-06-07 2012-10-24 惠州Tcl移动通信有限公司 Method for realizing simulated mouse control in intelligent terminal and intelligent terminal

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103316472A (en) * 2013-05-17 2013-09-25 南京睿悦信息技术有限公司 Android device gas platform system based on Bluetooth handle and implementation method of Android device gas platform system
CN103316472B (en) * 2013-05-17 2015-12-23 南京睿悦信息技术有限公司 A kind of Android device game platform system based on Bluetooth handle and its implementation
CN103657088A (en) * 2013-11-25 2014-03-26 苏州运智互动科技有限公司 Method for achieving android system double game driver-free motion-sensing handle 2
CN105100004A (en) * 2014-05-06 2015-11-25 上海渡维电子科技有限公司 Motion sensing data transmission method and apparatus
CN104436647A (en) * 2014-12-09 2015-03-25 邹其志 Novel special-purpose gamepad for android
CN105487686A (en) * 2015-11-30 2016-04-13 上海电机学院 Interactive game device capable of identifying gesture wave
CN106730820A (en) * 2016-12-12 2017-05-31 苏州蜗牛数字科技股份有限公司 A kind of method and android terminal device for being adapted to various game paddles
CN109085927A (en) * 2018-09-10 2018-12-25 南昌黑鲨科技有限公司 Operation control assembly, method, intelligent terminal and computer readable storage medium based on body-sensing
CN112328098A (en) * 2019-08-04 2021-02-05 广州市品众电子科技有限公司 Method for controlling electronic equipment and somatosensory control handle
CN112328098B (en) * 2019-08-04 2024-06-07 广州市品众电子科技有限公司 Method for controlling electronic equipment and somatosensory control handle
CN113407044A (en) * 2021-07-16 2021-09-17 北京百度网讯科技有限公司 Method, device, equipment and storage medium for simulating terminal handle input

Also Published As

Publication number Publication date
CN102915117B (en) 2015-08-19

Similar Documents

Publication Publication Date Title
CN102915117A (en) Method for realizing plug-and-play somatosensory handle in Android system
CN103657088A (en) Method for achieving android system double game driver-free motion-sensing handle 2
CN111078606B (en) Analog I2C slave computer, implementation method thereof, terminal device and storage medium
CN102932695B (en) A kind of remote control thereof, intelligent terminal and intelligent remote control system
EP2530551A1 (en) Self diagnosis system of home appliance and operation method of the same
CN102902476B (en) A kind of method of touch terminal control electronic equipment and system thereof
CN103227860A (en) Method and system for serving mobile equipment as remote controller
CN201203853Y (en) Body sense remote-control input game device
CN102819392B (en) Method and system for controlling PPT
CN107748509B (en) ASI communication slave machine implementation method based on single chip microcomputer transceiving control
CN105786727A (en) Method and device for compatibility between applications and peripherals
CN207008557U (en) A kind of keyboard and mouse of wired/bluetooth BLE based on cell phone application control
CN103139631A (en) System and method for set top box and television to share remote control
CN101382847A (en) Input controller and interaction system with the input controller
CN102523508B (en) Intelligent television control method based on local area network
CN102890587A (en) Driver-free electronic whiteboard control device crossing operating system platforms
CN103007537A (en) Realization method for expanding Android system wireless handle/remote controller
CN100435074C (en) Television infrared remote-receiver for notebook computer and receiving method
CN104793759A (en) Simulating and monitoring equipment based on PS2 interface mouse signal
CN201560326U (en) Digital intelligent control network washing machine
CN201860324U (en) Multifunctional wireless apparatus
CN105120313A (en) Intelligent remote-control device for television set
CN106331544A (en) Split television awakening system and awakening method
CN206039838U (en) Infrared omnipotent remote controller
CN105279922A (en) Universal remote controller

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant