CN102419917B - Military boxing teaching system-oriented smartphone interactive platform and realization method thereof - Google Patents
Military boxing teaching system-oriented smartphone interactive platform and realization method thereof Download PDFInfo
- Publication number
- CN102419917B CN102419917B CN 201110326033 CN201110326033A CN102419917B CN 102419917 B CN102419917 B CN 102419917B CN 201110326033 CN201110326033 CN 201110326033 CN 201110326033 A CN201110326033 A CN 201110326033A CN 102419917 B CN102419917 B CN 102419917B
- Authority
- CN
- China
- Prior art keywords
- mobile phone
- military
- computing machine
- acceleration
- fist
- 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.)
- Expired - Fee Related
Links
Images
Abstract
The invention discloses a military boxing teaching system-oriented smartphone interactive platform and a realization method thereof; the realization method comprises the following steps of: obtaining a rotation angle and a gravitational acceleration of a smartphone through the direction of the smartphone and a gravity sensor, establishing communication between the smartphone and a personnel computer, and converting the rotation angle and the gravitational acceleration into viewpoint control information of scenes in a military boxing teaching system so that the viewpoints of the scenes can be changed through operations such as translation, rotation, touch control and the like under the condition that a user is far away from a screen and input devices such as a keyboard and a mouse. The invention provides a new interactive means for the military boxing teaching system based on a web browser, which is used for improving interactive experience so as to achieve better teaching effect. The design of the platform is based on a mobile calculation platform and fully reflects pervasive computer interaction; and the user uses the smartphone instead of the traditional mouse and keyboard for controlling virtual scenes of the military boxing teaching system in space in a three-dimensional manner so as to obtain good user experience.
Description
Technical field
The present invention relates to a kind of new for military sports fist tutoring system interactive mode, related in particular to towards smart mobile phone interaction platform and its implementation of military sports fist tutoring system, belonged to the field of human-computer interaction of the sensor application of smart mobile phone and itself and personal computer.
Background technology
The appearance of IPhone, Android smart mobile phone, mobile phone have become the supplier that all kinds of services are used from the single means of communication of tradition, the thing followed be smart mobile phone how with the mutual new application of conventional personal computer.Pass through PAN (Personal Area Network) at present, as WiFi, Bluetooth technology, smart mobile phone can well be communicated by letter with personal computer, and the information sharing between them makes daily life more convenient with work.The various kinds of sensors that is integrated on the smart mobile phone also provides better interface alternately for smart mobile phone and personal computer.The user can carry out communication by different operating and the computing machine to mobile phone, and computing machine is also given mobile phone with the information feedback of user's operation.Smart mobile phone predictably, will become a focus of man-machine interaction research field as the developing direction of following communicating terminal based on the new interactive mode of mobile phone and personal computer.
Summary of the invention
The present invention is directed to towards the novel interactive mode of web military sports fist tutoring system, made up the interaction platform of a smart mobile phone and personal computer, by controlling smart mobile phone, indirect realization is controlled military sports fist tutoring system in the web browser, is obtaining a kind of more interesting user experience aspect the use military sports fist tutoring system.
To achieve these goals, the present invention adopts following technical scheme:
Towards the smart mobile phone interactive system of military sports fist tutoring system, it is made up of as server module and communication module three parts as client's module, personal computer smart mobile phone;
Wherein: the smart mobile phone end mainly carries out the exercise data of mobile phone to be handled, and comprises collection and the calculating of the anglec of rotation and acceleration of gravity;
Personal computer module is mainly carried out data processing work, and the rotation variable gathered and acceleration of gravity variable are converted into operation to the mouse response events;
Communication module is mainly carried out the data transmission between mobile phone and the computing machine.
The data acquisition of described smart mobile phone end comprises a wave filter, is used for shielding the noises such as shake naturally in user's use, carries out signal smoothing and handles.
The implementation method of described smart mobile phone interactive system towards military sports fist tutoring system, the performing step of this method is as follows:
Step 1: the collection of user mobile phone signal, by gathering the built-in gyroscope signal that smart mobile phone carries, in a fixed sampling time, call the gyroscope controller event sniffer method of sampling, obtain the anglec of rotation and the acceleration of gravity data of operating handset, and be expressed as original motion signal absolute value r_aX, r_aY, the r_aZ of mobile phone, because this information comprises terrestrial gravitation acceleration G, can't directly change X, Y, Z three axial linear acceleration aX, aY, aZ in the solid space into, represent that the user is to the operation of mobile phone; So the original signal data need be changed by following formula, wherein, R and P are the gyroscope orientation information, and D is the arc length of anglec of rotation correspondence:
gX?=?G×sin(R×D);
gY?=?G?×?sin(P×D);
gZ?=?sqrt(G -?gX-?gY );
aX?=?r_ax?–?gX;
aY?=?r_ay?–?gY;
aZ?=?r_az?+?gZ;
Step 2: mobile phone is transferred to angle and the acceleration information that collects in the computing machine;
Step 3: computing machine receives the anglec of rotation and the acceleration of gravity data that mobile phone sends, when aX, aY, aZ are not 0, with mobile phone along screen method to rotary manipulation, be mapped as along the mouse of the Web military sports fist z of system axle and pull event; With the rotary manipulation of mobile phone along major axis, be mapped as along the mouse of Web military sports fist x axle and pull event; With the translation along the y axle of mobile phone, be mapped as the mouse roller event of Web military sports fist, far and near push-and-pull just and resetting; The method of decomposing mapping by this model reduces the data dimension that mobile phone produces in three dimensions, transfer to analog mouse ± X on the two dimensional surface, ± the Y four directions to displacement information and corresponding mouse response events, realize the control to three-dimensional scenic.
In the described step 2, mobile phone is as follows with the process that the angle that collects and acceleration information are transferred to computing machine: mobile phone is at first all unified various signal datas changes into character string, utilize TCP communication protocol, find the IP address of computing machine to set up an interim two-way communication LAN (Local Area Network) by wireless router, then character string information is passed to computing machine, computing machine is the operation of reappearing user accordingly; Same, computing machine transfers various feedback informations to signal, by the IP address that socket finds mobile phone, signal is passed to mobile phone.
Beneficial effect of the present invention: the design of this platform is based on the mobile computing platform, demonstrated fully the general fit calculation interactivity, the user does not re-use traditional mouse and keyboard, and be to use smart mobile phone, control the virtual scene of military sports fist tutoring system at the space neutral body, to obtain a kind of favorable user experience.System uses the commissarial visual angle of smart mobile phone, and by the direction sensing system, the seizure user to the change in displacement of mobile phone, comes the visual angle change of analog subscriber in the space.The mobile phone change in displacement that is captured by PAN (Personal Area Network), inputs to computing machine.Computing machine is with the change in displacement of mobile phone in solid space, naturalization is computing machine input instruction primitive, shine upon one by one with original response correlation method to mouse, KeyEvent in the browser, by this Function Mapping, system will represent the primitive that user's visual angle space displacement changes, be interpreted as the steering order to the variation of military sports fist scene viewing angle, upgrade the rendering content of military sports fist on client Web page or leaf.
Description of drawings
Fig. 1 is the smart mobile phone interaction platform towards military sports fist tutoring system;
Fig. 2 is that smart mobile phone direction movable information transmits synoptic diagram;
Fig. 3 is system works flow process figure.
Embodiment
The invention will be further described below in conjunction with accompanying drawing and embodiment.
As shown in Figure 1, formed as server module and communication module three parts as client's module, personal computer by smart mobile phone towards the smart mobile phone interaction platform of military sports fist tutoring system.
The smart mobile phone end mainly carries out the exercise data of mobile phone to be handled, and comprises collection and the calculating of the anglec of rotation and acceleration of gravity, and principle of work as shown in Figure 2.Mobile phone with reference to angle, in the sampling time of certain frequency, is done the anglec of rotation that difference namely obtains mobile phone to twice different angle value, the input variable that rotation angle value is namely rotated as the Web scene by the rotation sensor record when being rotated operation; Mobile phone is when carrying out move operation, by acceleration of gravity sensor record acceleration of gravity, thus as the input variable of the far and near push-and-pull of scene and reset operation.Carry out in the process of data acquisition at sensor, by using a wave filter, be used for shielding the noises such as shake naturally in user's use, carry out signal smoothing and handle, thereby make the data of collection more accurate.
Personal computer module is mainly carried out data processing work, and the rotation variable of mobile phone collection and acceleration of gravity variable are converted into operation to the mouse response events.
Communication module is mainly carried out the data transmission between mobile phone and the computing machine.Adopt socket communication between the two, various signal datas (character string that changes into that all signal datas are all unified in native system is transmitted) use TCP communication protocol, find the IP address (setting up an interim two-way communication LAN (Local Area Network)) of computing machine by wireless router, be passed to computing machine, computing machine is the operation of reappearing user accordingly; Same, computing machine transfers various feedback informations to signal, by the IP address that socket finds mobile phone, signal is passed to mobile phone.
As shown in Figure 3, be three main performing steps of the present invention: 1. the collection of user's gesture information; 2. mobile phone and compunication; 3. the control of three-dimensional scenic.
The collection of user's gesture information.Combined with intelligent mobile phone development SDK creates a mobile phone event sniffer object.This program is by gathering the built-in gyroscope signal that smart mobile phone carries, in a fixed sampling time (7 * e nanosecond), call the gyroscope controller event sniffer method of sampling, obtain angle and the acceleration information of operating handset, and be expressed as the original motion signal absolute value (r_aX, r_aY, r_aZ) of mobile phone.Because this information comprises terrestrial gravitation acceleration (G), can't directly change three the axial linear accelerations of X, Y, Z (aX, aY, aZ) in the solid space into, represent that the user is to the operation of mobile phone.So the original signal data need be changed by following formula, wherein, R and P are the gyroscope orientation information, and D is the arc length of anglec of rotation correspondence.
gX?=?G×sin(R×D)
gY?=?G?×sin(P×D)
gZ?=?sqrt(G -?gX-?gY )
aX?=?r_ax?-?gX
aY?=?r_ay?-?gY
aZ?=?r_az?+?gZ
Afterwards by with the communication of the universal serial bus input equipment port of computing machine, input to computer operating system.
The method that mobile phone is searched by address is communicated by letter with the serial bus port foundation of computing machine, forms ephemeral data and connects, and carries out data transmission.The transmission course of data, the program in smart mobile phone, write Various types of data by a data output flow object according to destination host address and port numbers.Computer terminal is created data and is received object, receives when data arrive, just can block in the time of no datat, just can wake up again when data are arrived.Because the velocity ratio of mobile phone sending signal is very fast, computer terminal the eavesdropping target realize with multithreading, in turn the data that mobile phone sends over collected and handled with a plurality of threads.
The control of three-dimensional scenic.Computing machine receives the anglec of rotation and the acceleration of gravity data that mobile phone sends, when aX, aY, aZ are not 0, with mobile phone along screen method to rotary manipulation, be mapped as along the mouse of the Web military sports fist z of system axle and pull event; With the rotary manipulation of mobile phone along major axis, be mapped as along the mouse of Web military sports fist x axle and pull event; With the translation along the y axle of mobile phone, be mapped as the mouse roller event of Web military sports fist, far and near push-and-pull just and resetting.The method of decomposing mapping by this model reduces the data dimension that mobile phone produces in three dimensions, transfer to analog mouse ± X on the two dimensional surface, ± the Y four directions to displacement information and corresponding mouse response events.
Though above-mentionedly by reference to the accompanying drawings the specific embodiment of the present invention is described; but be not limiting the scope of the invention; one of ordinary skill in the art should be understood that; on the basis of technical scheme of the present invention, those skilled in the art do not need to pay various modifications that creative work can make or distortion still in protection scope of the present invention.
Claims (2)
1. a utilization is characterized in that towards the implementation method of the smart mobile phone interactive system of military sports fist tutoring system the performing step of this method is as follows:
Step 1: the collection of user mobile phone signal, by gathering the built-in gyroscope signal that smart mobile phone carries, in a fixed sampling time, utilize the gyroscope controller event sniffer method of sampling, obtain each instantaneous acceleration value of the anglec of rotation of operating handset and mobile phone, and be expressed as original motion signal absolute value r_aX, r_aY, the r_aZ of mobile phone, because this information comprises terrestrial gravitation acceleration G, can't directly change X, Y, Z three axial linear acceleration aX, aY, aZ in the solid space into, represent that the user is to the operation of mobile phone; So the original signal data need be changed by following formula, wherein, R and P are the gyroscope orientation information, and D is the arc length of anglec of rotation correspondence:
gX=G×sin(R×D);
gY=G×sin(P×D);
gZ=sqrt(G
2-gX
2-gY
2);
aX=r_ax–gX;
aY=r_ay–gY;
aZ=r_az+gZ;
Step 2: mobile phone is transferred to angle and the acceleration information that collects in the computing machine;
Step 3: computing machine receives the anglec of rotation and the acceleration of gravity data that mobile phone sends, when aX, aY, aZ are not 0, with mobile phone along screen method to rotary manipulation, be mapped as along the mouse of Web military sports fist tutoring system z axle and pull event; With the rotary manipulation of thorny machine X-axis, be mapped as along the mouse of Web military sports fist tutoring system x axle and pull event; With the translation along the y axle of mobile phone, be mapped as the mouse roller event of Web military sports fist tutoring system, far and near push-and-pull just and resetting; The method of decomposing mapping by this model reduces the data dimension that mobile phone produces in three dimensions, transfer to analog mouse ± X on the two dimensional surface, ± the Y four directions to displacement information and corresponding mouse response events, realize the control to three-dimensional scenic;
Described smart mobile phone interactive system towards military sports fist tutoring system, it is made up of as server module and communication module three parts as client's module, personal computer smart mobile phone;
Wherein: the smart mobile phone end mainly carries out the exercise data of mobile phone to be handled, and comprises collection and the calculating of the anglec of rotation and acceleration of gravity;
Personal computer module is mainly carried out data processing work, and the rotation variable gathered and acceleration of gravity variable are converted into operation to the mouse response events;
Communication module is mainly carried out the data transmission between mobile phone and the computing machine;
The data acquisition of described smart mobile phone end comprises a wave filter, is used for shielding the natural dither noise in user's use, carries out signal smoothing and handles.
2. the implementation method of the smart mobile phone interactive system towards military sports fist tutoring system as claimed in claim 1, it is characterized in that, in the described step 2, mobile phone is as follows with the process that the angle that collects and acceleration information are transferred to computing machine: mobile phone is at first all unified various signal datas changes into character string, utilize TCP communication protocol, find the IP address of computing machine to set up an interim two-way communication LAN (Local Area Network) by wireless router, then character string information is passed to computing machine, computing machine is the operation of reappearing user accordingly; Same, computing machine transfers various feedback informations to signal, by the IP address that socket finds mobile phone, signal is passed to mobile phone.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110326033 CN102419917B (en) | 2011-10-24 | 2011-10-24 | Military boxing teaching system-oriented smartphone interactive platform and realization method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110326033 CN102419917B (en) | 2011-10-24 | 2011-10-24 | Military boxing teaching system-oriented smartphone interactive platform and realization method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102419917A CN102419917A (en) | 2012-04-18 |
CN102419917B true CN102419917B (en) | 2013-08-28 |
Family
ID=45944312
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110326033 Expired - Fee Related CN102419917B (en) | 2011-10-24 | 2011-10-24 | Military boxing teaching system-oriented smartphone interactive platform and realization method thereof |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102419917B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2014199648A (en) * | 2013-03-15 | 2014-10-23 | 株式会社リコー | Distribution control system, distribution system, distribution control method, and program |
CN103425272A (en) * | 2013-09-02 | 2013-12-04 | 福州大学 | Method for controlling movement of computer three-dimensional dummy object by smartphone |
CN103929479B (en) * | 2014-04-10 | 2017-12-12 | 惠州Tcl移动通信有限公司 | Mobile terminal simulation of real scenes realizes the method and system of user interaction |
CN110806796A (en) * | 2018-07-20 | 2020-02-18 | 北京君正集成电路股份有限公司 | Control method and device |
CN115454240B (en) * | 2022-09-05 | 2024-02-13 | 无锡雪浪数制科技有限公司 | Meta universe virtual reality interaction experience system and method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2004147272A (en) * | 2002-10-23 | 2004-05-20 | Takeshi Ogura | Communication module for cellular phone and mobile pc with wireless mouse and ten key functions of which main body can be bisected |
CN101645176A (en) * | 2008-08-06 | 2010-02-10 | 刘俊杰 | Three-dimensional image interaction technique used in network |
CN101762231B (en) * | 2008-12-26 | 2011-08-17 | 比亚迪股份有限公司 | Device and method for detecting appearance of mobile phone keys |
CN101943957A (en) * | 2010-07-23 | 2011-01-12 | 康佳集团股份有限公司 | Touch screen mobile phone with acceleration transducer and mouse input method |
-
2011
- 2011-10-24 CN CN 201110326033 patent/CN102419917B/en not_active Expired - Fee Related
Also Published As
Publication number | Publication date |
---|---|
CN102419917A (en) | 2012-04-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102419917B (en) | Military boxing teaching system-oriented smartphone interactive platform and realization method thereof | |
TWI683259B (en) | Method and related device of determining camera posture information | |
CN102810008B (en) | A kind of air input, method and input collecting device in the air | |
CN102937839B (en) | A kind of remote control unit and method that terminal unit is carried out body-sensing remote control | |
CN102664988A (en) | Three-dimensional interaction method based on intelligent mobile phone and system thereof | |
CN105571052A (en) | Path setting executing method, control method and system for intelligent terminal air equipment | |
CN111367488B (en) | Voice equipment and interaction method, equipment and storage medium thereof | |
CN105739703A (en) | Virtual reality somatosensory interaction system and method for wireless head-mounted display equipment | |
CN105404390B (en) | A kind of modeling of wireless data gloves and gesture motion recognition methods | |
Wu et al. | Multi-screen cyber-physical video game: An integration with body-area inertial sensor networks | |
CN107071035A (en) | mobile terminal remote control method, device and corresponding mobile terminal | |
CN103049102B (en) | Mouse data treating apparatus and mouse data disposal route | |
CN103064532A (en) | Air mouse remote controller | |
CN103327099B (en) | A kind of network-based social interaction equipment and its control method | |
Pandit et al. | A simple wearable hand gesture recognition device using iMEMS | |
CN112121406A (en) | Object control method and device, storage medium and electronic device | |
CN106843481A (en) | A kind of three dimensions Freehandhand-drawing device and method based on gesture control | |
US20160329029A1 (en) | Apparatus and method for integrating a smart mobile device and a touch device | |
CN110717993A (en) | Interaction method, system and medium of split type AR glasses system | |
CN104922901A (en) | Game system of implementing a game controller by means of mobile equipment and operating method thereof | |
CN101782813B (en) | Input apparatus and method | |
CN209377613U (en) | A kind of control system of ultrasonic device | |
JP3211484U (en) | Tactile controller | |
CN204423307U (en) | A kind of Wireless 3 D body sense control system | |
CN107438808A (en) | A kind of method, apparatus and relevant device of rod volume control |
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 | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130828 Termination date: 20161024 |