CN101996151A - Method for realizing G-sensor function at PC (Personal Computer) end - Google Patents
Method for realizing G-sensor function at PC (Personal Computer) end Download PDFInfo
- Publication number
- CN101996151A CN101996151A CN201010507974.0A CN201010507974A CN101996151A CN 101996151 A CN101996151 A CN 101996151A CN 201010507974 A CN201010507974 A CN 201010507974A CN 101996151 A CN101996151 A CN 101996151A
- Authority
- CN
- China
- Prior art keywords
- usb
- mobile phone
- sensor data
- sensor
- module
- 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
Links
Images
Abstract
The invention discloses a method for realizing the G-sensor function at the PC (Personal Computer) end, which comprises the following steps of: sampling S-sensor data at the mobile phone end; filtering the G-sensor data through a DSP (Digital Signal Processor) module in the mobile phone; sending the filtered G-sensor data to a USB (Universal Serial Bus) in the mobile phone so as to be packed according to the interruption transmission protocol; sending the packed G-sensor data to the USB module in the PC through a USB bus so as to be unpacked; and sending the unpacked G-sensor data to the DSP module in the PC to carry out corresponding data analysis so as to realize various different applications.
Description
Technical field
The present invention relates to a kind of method, relate in particular to by USB and interrupt transmission mode realizes the G-sensor function at the PC end method in PC end realization G-sensor function.
Background technology
G-sensor is an acceleration transducer, and the variation by the perception accelerating force (as rock, rotate, fall, rise, descend, etc. various mobile variations) is converted into electric signal, thereby finishes the good function of program design.The G-sensor technology is applied in the electronic product more and more.IPOD once was applied in this function on the passometer, calculated amount of exercise and consumption of calorie by G-sensor.Many game machines are used G-sensor and are realized the action induction of playing, and allow the player can be more on the spot in person when recreation.G-sensor on mobile phone and MP3, MP4 widespread use be that whipping changes Qu Gongneng, need not see button and screen, can switch to next music by whipping mobile phone and MP3, MP4.At present some mobile phones that are in the trend front all have the G-sensor function, its application that has more innovation is along with whipping and rotating mobile are realized multiple switchings such as music, video, e-book, recreation, picture, comprises automatic switchover display direction and play mode etc.The G-sensor function makes the more random freedom of operation of electronic products such as mobile phone, and is practical and convenient.
But a lot of now office home PCs even notebook computer all do not have the G-sensor function, because the volume of this class PC or notebook or weight are still very huge with respect to mobile phone, teetertotter about being not suitable for.
In addition, present PC and mobile phone are all used the USB interface technology, and both can communicate by USB interface.USB is the abbreviation of English Universal Serial BUS (USB (universal serial bus)), and its Chinese is abbreviating " logical get lines crossed " as, is an external bus standard, is used for being connected and communication of standard computer and external unit, is the interfacing that is applied in the PC field.The plug and play of USB interface support equipment and hot plug function.USB will unite proposition in the end of the year 1994 by many companies such as Intel, Compaq, IBM, Microsoft.
Based on above-mentioned situation, the electronic product that the inventor has expected utilizing mobile phone etc. to have the G-sensor function is realized the function of G-sensor at the PC end, interruption transmission mode by USB is held the G-sensor data transmission of mobile phone end to PC, just more application can be arranged at the PC end like this, thereby reach the function of expanding PC, increase user's interest, make the user have the effect of happier operating experience.
Summary of the invention
The objective of the invention is to, a kind of method that realizes the G-sensor function at the PC end is provided.The electronic product that this method utilizes mobile phone etc. to have the G-sensor function, the interruption transmission mode by USB is held the G-sensor data transmission of mobile phone end to PC, thereby realizes the G-sensor function at the PC end.Just more application can be arranged at the PC end like this, thereby expand the function of PC, increase user's interest, make the user have happier operating experience.
The present invention adopts following technical scheme:
A kind of method in PC end realization G-sensor function may further comprise the steps: in mobile phone end sampling G-sensor data; The DSP module filtration treatment of these G-sensor data in this mobile phone; The USB module that G-sensor data after handling after filtration are sent in this mobile phone is packed according to interrupting host-host protocol; G-sensor data after the packing unpack through the USB module that usb bus is sent among this PC; And these G-sensor data after unpacking are sent among this PC the DSP module and carry out the corresponding data analysis, thereby realize various application.
Preferably, the G-sensor data after this packing are sent to this PC by the USB interface of this mobile phone and the USB interface of this PC from this mobile phone, and wherein the USB interface of the USB interface of this PC and this mobile phone connects by the USB connecting line.
Preferably, when this USB connecting line was connected to the USB interface of this mobile phone, the user interface of this mobile phone the USB choice box occurred and selects the USB controller for the user.
Choosing ground, after this USB connecting line was connected to the USB interface of this PC, the user was arranged so that in this PC side the Default device of game console among this PC is changed the controller into USB.
By the inventive method, also can realize the G-sensor function at office home PC or notebook computer end, just more application can be arranged at the PC end like this, thereby expand the function of PC, increase user's interest, make the user have happier operating experience.And, because the present invention does not make any change to the hardware of PC or mobile phone, can utilize existing P C and mobile phone fully, therefore greatly reduce cost.
Further specify the present invention below in conjunction with drawings and Examples.
Description of drawings
Fig. 1 is a system chart of realizing the G-sensor function at the PC end of the present invention;
Fig. 2 is a process flow diagram of realizing the G-sensor function at the PC end according to an embodiment of the invention; And
Fig. 3 is the synoptic diagram of the USB choice box at mobile phone UI according to an embodiment of the invention interface.
Embodiment
Introduce specific embodiments of the invention below by Fig. 1-3.
Fig. 1 is a system chart of realizing the G-sensor function at the PC end of the present invention.As shown in Figure 1, this mobile phone comprises USB module and DSP module.
DSP is the abbreviation of Digital Signal Processing, the expression digital signal processor.Informationalized basis is digitizing, and one of digitized core technology is a digital signal processing, and the task of digital signal processing need be finished by the DSP device to a great extent, and the DSP technology has become cutting edge technology people's growing interest and that obtain developing rapidly.Digital signal processing is to utilize computing machine or dedicated treatment facility, with digital form to signal gather, processing such as conversion, filtering, valuation, enhancing, compression, identification, to obtain meeting the signal form of people's needs.The DSP technology can be applicable to speech processes, comprises voice coding, phonetic synthesis, speech recognition, voice enhancing, voice mail, voice storage etc.In the present embodiment, the DSP module in the mobile phone is used for the whipping of induction mobile phone or rocks the G-sensor data that (acceleration of gravity) obtain and carry out filtration treatment.
G-sensor data after the processing after filtration that this USB module is used for the DSP module is sent are packed according to USB interruption host-host protocol, and the data after the packing can send to PC through usb bus by the USB interface of mobile phone.
In Fig. 1, this PC also comprises USB module and DSP module.This USB module is used for the G-sensor data from the mobile phone side are unpacked according to interrupting host-host protocol, and the data after will unpacking send to the DSP module among the PC.The DSP module is used for the G-sensor data are carried out analyzing and processing, thereby realizes that at PC end various G-sensor functions use, and comprises that whipping changes song, game control, freely switch at the interface anyhow, and picture browsing rotates freely etc.
Fig. 2 is a process flow diagram of realizing the G-sensor function at the PC end according to an embodiment of the invention.In the present embodiment, utilize mobile phone to realize the G-sensor function at the PC end, certainly, those skilled in the art knows, and also can utilize other electronic product with G-sensor function to realize the G-sensor function at the PC end.What need explanation earlier is, the mobile phone in the present embodiment before dispatching from the factory by manufacturer to its burn recording software, thereby make this mobile phone have the function that meets the data transmission of usb protocol with PC by the USB path.As shown in Figure 2, at first, PC and the mobile phone USB interface by is separately coupled together (step 201) with the USB connecting line.When the USB interface that detects mobile phone had connected the USB connecting line, the user interface of mobile phone (UI interface) ejected the USB choice box and selects (step 202) for the user.As shown in Figure 3, the USB choice box comprises USB flash disk, options such as IP Camera and USB controller.In the present embodiment, the user selects USB controller option (step 203).Then, the user is arranged so that in the PC side that the Default device of game console is changed among the PC and is USB controller (step 204).Particularly, the user selects " game console " option in control panel, in " game console " property box, click " interpolation ", to eject " interpolation game console " property box, in the drop-down menu of " game console ", select the USB controller, thereby make that the Default device of game console is changed the controller into USB among the PC.Then, the PC end detects the driver (step 205) whether the USB controller (being mobile phone) that is connected has been installed.The driver of this USB controller is provided by mobile-phone manufacturers.If the PC end does not have install driver, then can eject dialog box on the PC display screen, the driver of prompting user installation USB controller.After the PC end detects the driver that the USB controller that is connected has been installed, can realize the G-sensor function at the PC end by this mobile phone as the USB controller.For example at recreation, as the mobile phone of USB controller even can substitute existing game paddle, game direction dish etc.Particularly, user's whipping or rock mobile phone when playing games, mobile phone end collects G-sensor data (step 206).The DSP module filtration treatment (step 207) of these G-sensor data in this mobile phone.The USB module that G-sensor data after handling after filtration are sent in this mobile phone is interrupted host-host protocol pack (step 208) according to USB.G-sensor data after the packing unpack (step 209) through the USB module that usb bus is sent among this PC.These G-sensor data after unpacking are sent among this PC the DSP module and carry out corresponding data analysis (step 210), thereby utilize mobile phone can realize various operation.
Though described the application of G-sensor function in recreation that realizes at the PC end in the foregoing description, but those skilled in the art knows, can also realize various application at the PC end, comprise multiple switchings such as realizing music, video, e-book, picture, and realize that in mobile phone end the G-sensor function reaches similar effect.
By the inventive method, also can realize the G-sensor function at office home PC or notebook computer end, just more application can be arranged at the PC end like this, thereby expand the function of PC, increase user's interest, make the user have happier operating experience.And, because the present invention does not make any change to the hardware of PC or mobile phone, can utilize existing P C and mobile phone fully, therefore greatly reduce cost.
Above-described embodiment only is used to illustrate technological thought of the present invention and characteristics, its purpose is to make those skilled in the art can understand content of the present invention and implements according to this, can not only limit claim of the present invention with present embodiment, be all equal variation or modifications of doing according to disclosed spirit, still drop in the claim of the present invention.
Claims (4)
1. the method in PC end realization G-sensor function is characterized in that, may further comprise the steps:
In mobile phone end sampling G-sensor data;
The DSP module filtration treatment of described G-sensor data in described mobile phone;
The USB module that G-sensor data after handling after filtration are sent in the described mobile phone is packed according to interrupting host-host protocol;
G-sensor data after the packing unpack through the USB module that usb bus is sent among the described PC; And
Described G-sensor data after unpacking are sent among the described PC DSP module and carry out the corresponding data analysis.
2. the method that realizes the G-sensor function at the PC end as claimed in claim 1, it is characterized in that, G-sensor data after the described packing are sent to described PC by the USB interface of described mobile phone and the USB interface of described PC from described mobile phone, and the USB interface of wherein said PC and the USB interface of described mobile phone connect by the USB connecting line.
3. the method in PC end realization G-sensor function as claimed in claim 2 is characterized in that when described USB connecting line was connected to the USB interface of described mobile phone, the user interface of described mobile phone the USB choice box occurred and selects the USB controller for the user.
4. the method that realizes the G-sensor function at the PC end as claimed in claim 3, it is characterized in that, after described USB connecting line was connected to the USB interface of described PC, the user was arranged so that in described PC side the Default device of game console among the described PC is changed the controller into USB.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010507974.0A CN101996151A (en) | 2010-10-15 | 2010-10-15 | Method for realizing G-sensor function at PC (Personal Computer) end |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010507974.0A CN101996151A (en) | 2010-10-15 | 2010-10-15 | Method for realizing G-sensor function at PC (Personal Computer) end |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101996151A true CN101996151A (en) | 2011-03-30 |
Family
ID=43786323
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010507974.0A Pending CN101996151A (en) | 2010-10-15 | 2010-10-15 | Method for realizing G-sensor function at PC (Personal Computer) end |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101996151A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102890566A (en) * | 2011-07-22 | 2013-01-23 | 中兴通讯股份有限公司 | Method and device for electronic device to realize desktop switching, and electronic terminal |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2922021Y (en) * | 2006-03-24 | 2007-07-11 | 王烈 | Display device for oscillatelly displaying text |
CN101042436A (en) * | 2007-04-05 | 2007-09-26 | 徐蔚 | Wireless induction operation instrument |
CN101108125A (en) * | 2007-08-02 | 2008-01-23 | 张志强 | Dynamic monitoring system of body sign |
CN101467878A (en) * | 2007-12-26 | 2009-07-01 | 陈澎 | Health monitoring device based on Zigbee |
CN101504791A (en) * | 2009-02-23 | 2009-08-12 | 上海圈之圆网络科技有限公司 | Remote control device for multifunctional intelligent terminal |
CN101577759A (en) * | 2009-06-15 | 2009-11-11 | 北京艾摩讯工业设计有限公司 | Mobile phone internally provided with game control device as well as game control system and method thereof |
CN101593532A (en) * | 2008-05-30 | 2009-12-02 | 北京爱国者存储科技有限责任公司 | Flash memory device is realized the method for attitude control |
-
2010
- 2010-10-15 CN CN201010507974.0A patent/CN101996151A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2922021Y (en) * | 2006-03-24 | 2007-07-11 | 王烈 | Display device for oscillatelly displaying text |
CN101042436A (en) * | 2007-04-05 | 2007-09-26 | 徐蔚 | Wireless induction operation instrument |
CN101108125A (en) * | 2007-08-02 | 2008-01-23 | 张志强 | Dynamic monitoring system of body sign |
CN101467878A (en) * | 2007-12-26 | 2009-07-01 | 陈澎 | Health monitoring device based on Zigbee |
CN101593532A (en) * | 2008-05-30 | 2009-12-02 | 北京爱国者存储科技有限责任公司 | Flash memory device is realized the method for attitude control |
CN101504791A (en) * | 2009-02-23 | 2009-08-12 | 上海圈之圆网络科技有限公司 | Remote control device for multifunctional intelligent terminal |
CN101577759A (en) * | 2009-06-15 | 2009-11-11 | 北京艾摩讯工业设计有限公司 | Mobile phone internally provided with game control device as well as game control system and method thereof |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102890566A (en) * | 2011-07-22 | 2013-01-23 | 中兴通讯股份有限公司 | Method and device for electronic device to realize desktop switching, and electronic terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102687099B (en) | User's input in dynamic explanation portable electron device | |
JP5179361B2 (en) | Non-release digital butler consumer electronic device and method | |
CN101599224B (en) | Demonstration system, mobile terminal and wireless internet access card | |
WO2018040010A1 (en) | Application interface display method and terminal device | |
CN101384028A (en) | Handhold electronic device operating method | |
US20060062400A1 (en) | Bluetooth headset device capable of processing both audio and digital data signals | |
CN102830906B (en) | Method and the terminal unit of file process is carried out based on user interface | |
EP2498188A2 (en) | Input interface providing USB apparatus and interface providing method | |
JP2014085857A (en) | Electronic device, electronic device communication control method, electronic device communication control program, information terminal device and electronic system | |
JP2014534522A (en) | Multi-touch interface method | |
WO2018209555A1 (en) | Bluetooth device connection method and terminal device | |
CN102779398A (en) | Control method, device and system for smart appliance | |
CN105302287A (en) | Electronic device and electronic method of starting specific functions | |
CN101996151A (en) | Method for realizing G-sensor function at PC (Personal Computer) end | |
CN103945305B (en) | The method and electronic equipment of a kind of information processing | |
CN202171950U (en) | Audio playing system supplied for blind person to use | |
TW201205317A (en) | Digital media server with extendable transcoding capability | |
CN102981642B (en) | Cloud terminal mouse and realization method thereof | |
CN2864801Y (en) | Mouse | |
KR20110102532A (en) | Interlocking control method between mobile terminal device and outer device, mobile terminal device and outer device used therein, and media that program used therein is recored | |
WO2018137306A1 (en) | Method and device for triggering speech function | |
CN202362732U (en) | Multifunctional controller for computer | |
CN102546958A (en) | Wireless remote control and audio-video output mobile phone | |
US20120044144A1 (en) | Computer mouse having sound-box function | |
KR20100027921A (en) | Usb device and method for operating it |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20110330 |