Recently, I’ve done some research on the Windows Phone 7 and Windows 7 and managed to find out about a brilliant idea involving both the program compatible systems. The idea focuses on combining the features of one OS with the other. It will help you arrange all the gyroscopes, accelerometers and other motion-detecting sensors in your desktop!
The idea is about using Windows Phone 7 accelerometer sensor as a regular device on Windows 7. The plan was influenced by developer Arik Poznanski who managed to create a driver to allow direct connection between the accelerometer and Windows 7.
The idea can be accomplished as follows:
- Firstly, create a dummy software drive which will carry out what’s required for a regular Windows 7 Accelerometer sensor; it will send back constant data at this stage. UDMF(User Mode Driver Framework) is needed for writing a sensor driver in Windows 7.
- Next, you need to find out a way to transfer Windows Phone 7 sensor data into the PC. This can be done by applying a WCF service on the desktop which will enable the Phone to keep calling with Accelerometer data. However, an application needs to run on the Phone to keep the data transferring.
After carrying out the above steps we can now use the WCF from the Phone which will help us get the Accelerometer data by using the Phone API. Now, you can get real accelerometer data from Windows Phone. All you need to do is connect the devices for the accelerometer to return actual data. Lastly, you will need some sort of communication device to transfer the information from WFC service to the driver.