CN102915117B - The implementation method of android system plug and play body sense handle - Google Patents

The implementation method of android system plug and play body sense handle Download PDF

Info

Publication number
CN102915117B
CN102915117B CN201210422838.0A CN201210422838A CN102915117B CN 102915117 B CN102915117 B CN 102915117B CN 201210422838 A CN201210422838 A CN 201210422838A CN 102915117 B CN102915117 B CN 102915117B
Authority
CN
China
Prior art keywords
android
body sense
wireless
android system
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.)
Active
Application number
CN201210422838.0A
Other languages
Chinese (zh)
Other versions
CN102915117A (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

Landscapes

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

Abstract

The present invention relates to the implementation method of android system plug and play body sense handle, first, wireless body sense handle obtains moving acceleration data from Gravity accelerometer, is transferred to wireless usb receiver by wireless transport module; Then, after wireless usb receiver receives moving acceleration data, be modeled to rocking bar three number of axle certificate of usb joystick to Android system; Operate in the somatic sensation television game in Android system and obtain rocking bar three number of axle certificate by the Motion Event interface of android framework, and translate into the body sense data needed for somatic sensation television game, carry out action recognition and control.Realize body sense handle plug and play, avoid the system bottom of the android revising prepackage to drive and the support of framework layer, reduce the great amount of cost of co-development, test, adjustment, communication.

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 in current family is most all based on android operating system, comprises based on the intelligent television of android, Intelligent set top box and other smart machine.
Embedded somatic sensation television game breaches in the past simple with the mode of operation of handle key-press input, but is changed by limb action and operate, and runs on android smart machine.And somatic sensation television game generally uses " game paddle " mode with Gravity accelerometer to operate.
But the original mechanism of Android system, the body sense handle with Gravity accelerometer that can not directly support external radio to connect.Existing technical solution, needs body sense handle technical scheme business to provide the driver mated with body sense handle, is integrated in the Android system of customization, and needs corresponding framework smart machine scheme being revised Android system to support.This mode, cannot on existing android equipment quick support sense handle, realize somatic sensation television game.
Therefore, producing at present serious contradiction is, software and hardware function perfectly can run somatic sensation television game to a large amount of already present android smart machine terminals, can the body sense handle of plug and play but do not have.Another problem is, if be the android smart machine support sense handle of new production, needs handle technical scheme business, Android system customization business, android smart machine provider and integrator in many ways to coordinate collaborative work.The each side of cooperative work, on deliberation standard, exploitation of working in coordination, final combined debugging, will expend considerable manpower and time.
Android operation system 3.0 versions and more than, can support usb joystick handle (Joystick) equipment of standard, and read each number of axle certificate of handle rocker by the routine interface (API) that its framework layer realizes.
Summary of the invention
The object of the invention is the deficiency overcoming prior art existence, a kind of implementation method of android system plug and play body sense handle is provided, solve body sense handle integrated difficulty and the problems such as existing android equipment cannot be supported on Android system, make the extensive fast propagation of somatic sensation television game on Android system become possibility.
Object of the present invention is achieved through the following technical solutions:
The implementation method of android system plug and play body sense handle, comprises the following steps:
1) the wireless body sense handle with Gravity accelerometer obtains moving acceleration data from Gravity accelerometer, and be transferred to wireless usb receiver by wireless transport module, wireless usb receiver is connected on android smart machine;
2), after wireless usb receiver receives moving acceleration data, rocking bar three number of axle certificate of usb joystick is modeled to Android system;
3) operate in the somatic sensation television game in Android system and obtain rocking bar three number of axle certificate by the Motion Event interface of android framework, and translate into the body sense data needed for somatic sensation television game, carry 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 installs 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, 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 manipulating the limb action of wireless body sense handle, be converted into 3-axis acceleration value (x, y by Gravity accelerometer perception, z), after wireless body sense handle obtains 3-axis acceleration value (x, y, z), carry out standardization processing, be transferred to usb receiver by wireless transport module; Usb wireless receiver, in its usb coded description, adds the description of standard Joystick data, after receiving 3-axis acceleration value (x, y, z), (x, y, z) is sent as the rocking bar data (X, Y, Z) of Joystick;
It spreads out of in standard MotionEvent mode after receiving the rocking bar data (X, Y, Z) of Joystick by android system, and the application run thereon obtains data.
The substantive distinguishing features that technical solution of the present invention is outstanding and significant progress are mainly reflected in:
The present invention realizes body sense handle plug and play, compared with existing body sense handle solution, avoids the system bottom of the android revising prepackage to drive and the support of framework layer, reduces the great amount of cost of co-development, test, adjustment, communication; The standard of organizator sense handle and android integration of equipments, different body sense handles can use on different android smart machines, does not produce other integrated cost; Directly can use on the android smart machine of production and sales, there is very high proper value.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, technical solution of the present invention is described further:
Fig. 1: present system configuration diagram;
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, making a large amount of android intelligent television/Set Top Box when not revising bottom layer driving and framework supports, body sense handle can be used immediately, thus 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 the Games Software run thereon, wireless usb receiver 3 is inserted on the usb interface of android smart machine 4, wireless body sense handle 1 comprises various sensor, but at least comprise Gravity accelerometer 101, for the action recognition data after the raw data of motional induction or process are transferred to android, android smart machine 4 installs android 3.0 and above edition system, moving body sense Games Software on 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 with Gravity accelerometer obtains moving acceleration data from Gravity accelerometer, wireless usb receiver is transferred to 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 moving acceleration data, rocking bar three number of axle certificate of usb joystick is modeled to Android system;
3) operate in somatic sensation television game in Android system by android framework(android ccf layer) Motion Event interface obtain rocking bar three number of axle certificate, and translate into the body sense data needed for somatic sensation television game, carry out action recognition and control.
User manipulates the limb action of wireless body sense handle, 3-axis acceleration value (x is converted into by Gravity accelerometer perception, y, z), after wireless body sense handle obtains 3-axis acceleration value (x, y, z), carry out standardization pre-service, then send to wireless usb receiver by wireless transport module.
Wireless usb receiver is in its usb coded description, add standard Joystick(joystick) description of data, when receiving 3-axis acceleration value (x, y, z) after, by (x, y, z) as 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
It spreads out of in standard MotionEvent mode after receiving the rocking bar data (X, Y, Z) of Joystick by android system, and the application run thereon obtains this data.
Somatic sensation television game is by Android API(Android application programming interfaces) realize call back function onGenericMotionEvent acquisition rocking bar data (X, Y, Z) after, translated into the 3-axis acceleration value (x needed for game, y, z).Then further by action recognition algorithm, 3-axis acceleration value is converted to the action control of user, reaches the object of user by limb action operate game.Such as, analyzing acceleration change value that is a series of and time correlation, can identify that user once brandishes the action of arm, is that the baseball player in game makes similar driving action.
In sum, the present invention realizes body sense handle plug and play, compared with existing body sense handle solution, avoid the system bottom of the android revising prepackage to drive and the support of framework layer, reduce the great amount of cost of co-development, test, adjustment, communication; The standard of organizator sense handle and android integration of equipments, different body sense handles can use on different android smart machines, does not produce other integrated cost; Directly can use on the android smart machine of production and sales, there is very high proper value.
It is to be understood that: the above is only the preferred embodiment of the present invention; for those skilled in the art; under the premise without departing from the principles 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 (4)

  1. The implementation method of 1.Android system plug and play body sense handle, is characterized in that comprising the following steps:
    1) the wireless body sense handle with Gravity accelerometer obtains moving acceleration data from Gravity accelerometer, and be transferred to wireless usb receiver by wireless transport module, wireless usb receiver is connected on android smart machine;
    2), after wireless usb receiver receives moving acceleration data, rocking bar three number of axle certificate of usb Joystick is modeled to Android system;
    3) operate in the somatic sensation television game in Android system and obtain rocking bar three number of axle certificate by the MotionEvent interface of android framework, and the body sense data translated into needed for somatic sensation television game, carry out action recognition and control, by manipulating the limb action of wireless body sense handle, 3-axis acceleration value (x is converted into by 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 usb receiver by wireless transport module; Usb wireless receiver, in its usb coded description, adds the description of standard Joystick data, after receiving 3-axis acceleration value (x, y, z), (x, y, z) is sent as the rocking bar data (X, Y, Z) of Joystick;
    It spreads out of in standard MotionEvent mode after receiving the rocking bar data (X, Y, Z) of Joystick by android system, and the application run thereon obtains data.
  2. 2. the implementation method of android system plug and play body sense handle according to claim 1, it is characterized in that: described wireless transport module transfers 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.
  3. 3. the implementation method of android system plug and play body sense handle according to claim 1, is characterized in that: described android smart machine installs android 3.0 and above edition system, android smart machine moving body sense Games Software.
  4. 4. the implementation method of android system plug and play body sense handle according to claim 1, is characterized in that: described wireless usb receiver is inserted on the usb interface of android smart machine.
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 CN102915117A (en) 2013-02-06
CN102915117B true 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)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
CN112328098B (en) * 2019-08-04 2024-06-07 广州市品众电子科技有限公司 Method for controlling electronic equipment and somatosensory control handle
CN113407044B (en) * 2021-07-16 2023-06-09 北京百度网讯科技有限公司 Method, device, equipment and storage medium for simulating terminal handle input

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2505234A1 (en) * 2004-04-30 2005-10-30 Esel International Co., Ltd. Wireless communication systems

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN102915117A (en) 2013-02-06

Similar Documents

Publication Publication Date Title
CN102915117B (en) The implementation method of android system plug and play body sense handle
CN103657088A (en) Method for achieving android system double game driver-free motion-sensing handle 2
CN203169986U (en) Multi-functional intelligent bluetooth gamepad
CN106681765A (en) Intelligent APP application system of electronic Bluetooth cigarette
CN101815159A (en) Intelligent household TV control system
CN109817232A (en) A kind of transmission method, terminal device and apparatus for processing audio
CN107979738A (en) A kind of double fluid conference apparatus and method
CN207008557U (en) A kind of keyboard and mouse of wired/bluetooth BLE based on cell phone application control
CN103599635A (en) Household cloud gaming device system
CN103024501A (en) System and method for using mobile terminal to control television terminal
US20130017887A1 (en) Game Controller System
CN103007537A (en) Realization method for expanding Android system wireless handle/remote controller
CN202282066U (en) Wireless control device for family multimedia entertainment equipment and family entertainment system
CN107754349A (en) Intelligent building blocks
CN106095082A (en) Body feeling interaction method, system and device
CN103823574B (en) Implementation method for multi-point touch screen-based video game remote control handle
CN104735170B (en) A kind of interface arrangement, mobile terminal, data interaction system and method, apparatus
CN203208659U (en) Novel device for virtualizing mobile phone as computer wireless gamepad
CN105100229A (en) System and method of interaction with mobile device games based on intelligent hardware networking
CN103780276B (en) Input equipment and operational approach thereof
CN203520135U (en) Remote wireless control system of case power supply
CN203492161U (en) Infrared somatosensory remote controller and information processing system
CN203193816U (en) Remote controller with touch screen
CN107690794A (en) The method, apparatus and body-building apparatus that body-building apparatus is communicated with smart machine
CN204741569U (en) Neighbours detection device based on wireless radio frequency

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