HTCSensorSDK.Dll and getting sensor information - Touch Diamond, MDA Compact IV General

Has anyone figured out the arguments to the functions exposed by this DLL? Is any developer from HTC reading and kind enough to provide us with a .h file so we can do our own development?
I'm looking to do some development using the sensor API, but am stuck trying to figure out the method signatures!

Related

Tilt Sensor Not-Quite-SDK

I contacted HTC and asked them if they had a tilt sensor SDK, or had plans to release one, and they basically said "no". So, I decided to see what I could come up with to get tilt response integrated into my little pet-project, and to my surprise, managed to figure out how to get some basic data out of the existing tilt sensor DLL on the Diamond.
If you'd like, you can see my "hello world"-level app using the tilt sensor here on my blog. I've included the source so others can play with the few tidbits I've figured out. The app itself is pretty boring, it'll really only be of interest to developers looking to integrate tilt into their app, and even then, it's still a boring app =)
If accessing the tilt sensor is well known, feel free to ignore me.
Well done, thats great!
You should also probably look at this and talk to CharlyV, he might be able to add some info.
http://forum.xda-developers.com/showthread.php?t=403939
That's great news !
Now developers might use such information to release usefull applications and funny games !
Yes, I was wondering, for my car I use the G-tech for acceleration-measurement.
Is this sensor sensitive / good enough to also do those kind of things?
Also, navigation programs can be a lot more precise by knowing when accelerating, cornering or braking.
Riel said:
Yes, I was wondering, for my car I use the G-tech for acceleration-measurement.
Is this sensor sensitive / good enough to also do those kind of things?
Click to expand...
Click to collapse
Good question: I might try to write some sort of logging program and see what kind of data I can get out of a car trip. That's a bit off for now.
Also, I made a minor update the project, I determined a few more of the unknown values that the API returns.
perhaps you or some other guys are capable to work with some tools mentioned in this post??
http://forum.xda-developers.com/showpost.php?p=2373447&postcount=56
Is there any chance to develop a calibration tool for this sensor?? Mine drifts to lower-left and thats annoying because Opera always means, I rotate my phone :-(
Thank you
I updated the project to include a sample of how to use the event driven notification of different orientations that Opera uses (instead of polling the sensor constantly to determine the current orientation).
I'll have to do some digging to see if there's any way to calibrate the sensor. It'd be nice (mine is a bit off too), but I don't see anything immediatly obvious.
Perfect news!
I hope there are devs, who will make apps or games for this. My idea of a new game is "Black Circle".
(Side in German bug game in English, dont worry)
http://spiele.isnichwahr.de/r432-spin-the-black-circle.html
What do you tink about it?
I wrote a managed wrapper based on Scott's work:
http://blog.enterprisemobile.com/2008/07/using-htc-diamonds-sensor-sdk-from-managed-code/
I think it would be possible to calibrate the sensor by replacing the HTCSensorSDK.dll with one that acts as a pass through to the real thing. Then it could "massage" the returned values with calibration adjustments.
Teeter -> HTCSensorSDK.dll (one we roll that tweaks values) -> RealHTCSensorSDK.dll (the real DLL)
I don't think that the DLL is replaceable unless the device is flashed with a new ROM.
Thoughts?

TP2 sensors API

I know that the TP2 come with different kind of sensors (ambient light, proximity, g-sensor) and wonder if we could make the most out of them.
There are lot of programs out there which make use of the g-sensor to rotate screen and so on.
What about the ambient light and proximity sensor? I have not come across any programs using them...
When I drive for example, I listen to music using my TP2. I can't really change the tracks since I am driving. I was thinking may be the proximity
sensor could help...
Eg. 1. Waving the hand in front of the sensor would move to the next track.
2. Leaving the hand in front of the sensor after few seconds would pause the music...
These are just simple ideas and I think many of you guys reading this will come with great ideas (even for the light sensor)....
My point for this post is that does anyone have/or can create API's for these sensors (It would be great if they were in .NET compact, would make life easier for developping apps.)
I am sorry for posting this in the ROM section but I think by posting it there, it will attract the attention of the ROM cooks, who I think would have come across these sensors and might have thought of doing something special with them
29 views already but no replies....
if you know c# this is everything you need
http://sensorapi.codeplex.com/SourceControl/changeset/view/11841#
Thats nice. thanks.
It does not seem to support promity sensors though, which will be the most interesting one.
It would be great if others came up with ideas of what can be done with these sensors...
jinjav said:
29 views already but no replies....
Click to expand...
Click to collapse
Maybe if you posted in the sub-forum for Windows Mobile software development (which is what your question sounds like) you'd get more response. I don't know for sure...but people who create new apps from scratch may be different people than rom cooks.
I'll do that as well. thanks
Did you look at TouchLockPro Recently the ZoomBar is added.
TouchLockPro is open source, so you can download the source code here at sourgeforge. So you can also see how to access all those other sensors too.
The idea behind it, is that others can learn from it and also make *FREE* beautiful programs. Just make sure you adhere to the open source license and make your code also public available
this post shows the approach and source code for the ZoomBar.
ZuinigeRijder said:
Did you look at TouchLockPro Recently the ZoomBar is added.
TouchLockPro is open source, so you can download the source code here at sourgeforge. So you can also see how to access all those other sensors too.
The idea behind it, is that others can learn from it and also make *FREE* beautiful programs. Just make sure you adhere to the open source license and make your code also public available
this post shows the approach and source code for the ZoomBar.
Click to expand...
Click to collapse
Thanks for that . Does it support the proximity sensor?
jinjav said:
Thanks for that . Does it support the proximity sensor?
Click to expand...
Click to collapse
No, unfortunately not. If you know the API I am also glad to know it too

[Q] How about a XDandroid debug app?

Hi! I've been noticing that's appear very hard to figure out what is working on each device, with what downloaded files...
Wouldn't be possible to be created, by you Android Masters (since I don't have any skills ) an application that would collect all that information?
The user would install it, use xdandroid, and could submit anytime a score to that combination. And maybe that application could detect if wifi, bluetooth, etc are working! Or send some precious pre-determined logs.
Is that possible? Wouldn't it be useful?
I guess powerful users do logs and use them somehow for debugging. But regular users that want to contribute may have a hard time helping out. And I'm sure many of us really would like to help but don't now how or have a very hard time doing it correctly...
I guess an app of this kind could speed up development, and maybe with minor changes could be reused for new Android releases.
What do you think?
quite agree with you
Hey guys!
No opinion? Not even one developer to say it's useful or it's dumb?

SDK from HTC WANTED

hi everybody,
anybody has the SDK from HTC for the ir library that i can download of?
thxx for helping
http://www.htcdev.com/devcenter/opensense-sdk
need to fill the form for ir api :/ nobody already has it?
https://www.google.com.hk/search?q=opensense+sdk+torrent
oh thxx search a torrent i didn t thought about that... if you look deeper, you ll see it doesn t include ir api. thxx anyway
The latest one does.
Answer from HTC:
[...]
"To access other HTC Partner SDKs, a bilateral NDS needs to be signed.
Please let me know the company name for which you are requesting the SDK.
It would be needed in signing the NDA."
[...]

An ideal solution for an industry

I have limited coding skills.
I have an idea for an app that would need to integrate with existing programs and have a generic solution based on common inquiries, as well as the option to give a solution based on more specific details from prestored data (database). I would need to know in what language would it be best to write the program and how to receive help without someone else taking the idea and building on it, leaving me out of the loop?

Categories

Resources