SensorLib: a peek at the future
Posted by Chainfire on 08-01-2010 at 01:15:00 - Comments: 23 - Views: 2081
Project: SensorLib - Tags: Windows Mobile Drivers Good news
Project: SensorLib - Tags: Windows Mobile Drivers Good news
So, we all know many new devices have much of the same sensors: GSensor, Compass, Light Sensor, Proximity Sensor, etc.
The problem is no common APIs exist, and most dev's only support HTC and occasionally Samsung (usually through SDK). As I am now working on some cool things that will make use of these sensors, I have started an effort to make a library that supports all of them through a common interface. While of course there is Koushik Dutta's awesome C# project supporting various HTC and Samsung sensors, this was not enough to my liking as I don't believe in managed code for "base" libraries nor do I think it supports enough brands / models.
Luckily WM7 is rumored to bring a true unified sensor API, but until that time...
Currently my library only supports GSensor and Compass, but I am working on the other sensors!
GSensor support:
- HTC
- Samsung SDK 2.x
- Samsung SDK 1.x
- Samsung < 2009 raw
- Samsung >= 2009 raw
- E-Ten/Acer
- Toshiba
- LG
As far as I know it is the only software not licensed by LG that can actually use the LG GSensor, and it is definitely the only library that supports as many different brands and sensor models!
Compass support:
- HTC
- Samsung SDK 2.x
Planned light sensor support:
- HTC
- Samsung SDK 2.x
- Samsung SDK 1.x
- LG
Planned proximity sensor support:
- HTC
- Samsung SDK 2.x
- LG
GSensor and Compass (if available) have so far been tested on the following devices (Samsung's using various APIs):
- HTC Touch Diamond
- HTC Touch Pro
- HTC Touch HD
- HTC Touch Diamond 2
- HTC Touch Pro 2
- HTC HD2
- Samsung Omnia I900
- Samsung Omnia II I8000
- Samsung Omnia II I920 tested by surgex
- Samsung Omnia Pro B7610
- Samsung Giorgio Armani II B7620
- Acer M900 tested by hdubli
- Acer F900 tested by hdubli
- Acer F1 / neoTouch S200 tested by hdubli
- Toshiba TG-01 tested by Paul Diston (SmartMobileDevice)
- LG Expo / IQ / Monaco tested by Jug6ernaut
All devices tested by myself unless stated otherwise. I hope to add more sensors and devices soon!
Also, at the time of writing, all sensors work on all devices in unattended mode (!!) except for the original Samsung Omnia.
EDIT#1: Seems LG Expo GSensor really doesn't work in unattended mode for the moment. Under investigation!
EDIT#2: OK LG Expo GSensor does work in unattended mode with my mods, jug6ernaut just made a mistake with testing.
The problem is no common APIs exist, and most dev's only support HTC and occasionally Samsung (usually through SDK). As I am now working on some cool things that will make use of these sensors, I have started an effort to make a library that supports all of them through a common interface. While of course there is Koushik Dutta's awesome C# project supporting various HTC and Samsung sensors, this was not enough to my liking as I don't believe in managed code for "base" libraries nor do I think it supports enough brands / models.
Luckily WM7 is rumored to bring a true unified sensor API, but until that time...
Currently my library only supports GSensor and Compass, but I am working on the other sensors!
GSensor support:
- HTC
- Samsung SDK 2.x
- Samsung SDK 1.x
- Samsung < 2009 raw
- Samsung >= 2009 raw
- E-Ten/Acer
- Toshiba
- LG
As far as I know it is the only software not licensed by LG that can actually use the LG GSensor, and it is definitely the only library that supports as many different brands and sensor models!
Compass support:
- HTC
- Samsung SDK 2.x
Planned light sensor support:
- HTC
- Samsung SDK 2.x
- Samsung SDK 1.x
- LG
Planned proximity sensor support:
- HTC
- Samsung SDK 2.x
- LG
GSensor and Compass (if available) have so far been tested on the following devices (Samsung's using various APIs):
- HTC Touch Diamond
- HTC Touch Pro
- HTC Touch HD
- HTC Touch Diamond 2
- HTC Touch Pro 2
- HTC HD2
- Samsung Omnia I900
- Samsung Omnia II I8000
- Samsung Omnia II I920 tested by surgex
- Samsung Omnia Pro B7610
- Samsung Giorgio Armani II B7620
- Acer M900 tested by hdubli
- Acer F900 tested by hdubli
- Acer F1 / neoTouch S200 tested by hdubli
- Toshiba TG-01 tested by Paul Diston (SmartMobileDevice)
- LG Expo / IQ / Monaco tested by Jug6ernaut
All devices tested by myself unless stated otherwise. I hope to add more sensors and devices soon!
Also, at the time of writing, all sensors work on all devices in unattended mode (!!) except for the original Samsung Omnia.
EDIT#1: Seems LG Expo GSensor really doesn't work in unattended mode for the moment. Under investigation!
EDIT#2: OK LG Expo GSensor does work in unattended mode with my mods, jug6ernaut just made a mistake with testing.
Comments
You may use tags like [b], [u], [i], [url], [quote], [code], [pre], etc

Where is the download link?
HTC requires runtime patch, Samsung and LG work out-of-the-box. Still working on supporting LG proximity sensor from unattended mode, but it does not look promising.
As for Acer (F1), I've failed so far to figure out how the proximity sensor works on this device.
Stylus sensors have been added as well.
As for light sensor, it seems again Acer will be the odd one left out, as also for this it seems the sensor is hard to figure out.
I am hoping for a beta-release soon, though I am always working on 10 different projects at the same time with varying priority.
As for contacting me, you can mail me at chainfire at chainfire dot eu
We are tired of searching for something to activate the g-sensor at our LG Eigen WM phones (GM 730 series 730f, 735 etc).
Keep it up.
Thank you.
Thank you chainfire
If I understand you right, your lib is a api wrapper so that all currently availabe htc applications will work with all phones ?
You may want to have a look.
http://forum.xda-developers.com/showthread.php?t=471591&page=1
how can we mail you for testing ?
While I got most of it working, I've stated before that I was developing it for my needs for an application I was building.
I wanted to get all this stuff done right before releasing anything. However now it seems that not only has somebody else released a shoddy beta version of the same thing, but also for free and open source.
Since there is no competing with that, I have no further need of SensorLib development and thus I won't spend more time on it.
Could you point us to the open source project you are referring to?
I might be releasing fragments of code for using for example the LG Expo G-Sensor for developers, not sure about that yet.