Hi,
where could i find the API/SDK for the accelerometer, because i would develope an an application (.net cf) which should use the g-sensor.
no ideas?
Take a look at this application, maybe you can contact the author. I don't know if any API/SDK is used, but it is the first program I have seen wich uses the accelerometer:
http://forum.xda-developers.com/showthread.php?t=403939
Thanks, but he don't want to tell us, how they did it.
The authors of GSen won't tell anybody how he did it.
It's a commercial software house... someday they will surely try to sell that utility or develope some commercial applications and games using Diamond's accellerometer.
I presume they reverse engineered Teeter or Opera to find out how it works.
At moment, we keep the infos for several reasons.
GSen is " freeware ", no need to change the status.
CharlyV said:
At moment, we keep the infos for several reasons.
GSen is " freeware ", no need to change the status.
Click to expand...
Click to collapse
Great software ya got there.
Just a feedback.. it's a real pain to edit the config file.
The save function on the device doesnt work. It's like the same function as "restore to default". I had a number of apps there and all gone when I clicked saved. Undo doesnt seem to work either.
Looks like I gotta do the hard way.. check for the window names and edit the config file on PC manually.
Checkout OnDeviceTilt...
After a lot of searching and disassembling manila.exe, etc. i figure out, that we have to use "HTCSensorSDK.dll" in Windows-Directory.
There are functions like "HTCSensorOpen", "HTCSensorClose", etc.
The problem is, that I don't know the parameters of these functions, and HTC won't answer on emails.
sushilange said:
After a lot of searching and disassembling manila.exe, etc. i figure out, that we have to use "HTCSensorSDK.dll" in Windows-Directory.
There are functions like "HTCSensorOpen", "HTCSensorClose", etc.
The problem is, that I don't know the parameters of these functions, and HTC won't answer on emails.
Click to expand...
Click to collapse
the HTCSensorSDK is the Light Sensor not the Accelerometer API, you should disasm the "Teeter" game on the Diamond to see what API's its using
HTCSensorSDK is the API for the accelerometer. I attached a debugger to the teeter app and verified it was one of the loaded modules. There were no other relevent DLLs loaded.
Walsheiu is definitely wrong:
http://scottandmichelle.net/scott/comments.html?entry=784
Scottandmichelle.com figured out the function paramters to the G-Sensor API and released the full source code. It is using HTCSensorSDK.dll.
Koush said:
Walsheiu is definitely wrong:
http://scottandmichelle.net/scott/comments.html?entry=784
Scottandmichelle.com figured out the function paramters to the G-Sensor API and released the full source code. It is using HTCSensorSDK.dll.
Click to expand...
Click to collapse
no worries, i stand corrected, i assumed that was only for the Sensor, so now we know.
I have written a managed wrapper that allows you to access the HTC Sensor SDK easily. More information here:
http://blog.enterprisemobile.com/2008/07/using-htc-diamonds-sensor-sdk-from-managed-code/
Koush said:
I have written a managed wrapper that allows you to access the HTC Sensor SDK easily. More information here:
http://blog.enterprisemobile.com/2008/07/using-htc-diamonds-sensor-sdk-from-managed-code/
Click to expand...
Click to collapse
very nice work mate....
Just out of curiosity, which kind of applications - games - tweaks or what so ever can we expect with this accelerometer?
Diamond WII bowling ?
Related
I should be getting my new artemis tomorrow. Im off on holiday soon and im hoping that when you take a picture there is an option to log the gps coordinates so you can tell where I was taken. Maybe you can even import them into google earth????
If this isn’t possible maybe there is some 3rd party software. Or any other good gps tracing applications??
Soz if this has already been covered, I have had a look at previous post!!!
There are lots of apps which get GPS coordinates. These are mostly for some Bluetooth GPS devices as diagnostics software. The German .NET Magazine dotnet pro had an article about getting GPS coordinates. If you are familiar with .NET programming you could write an additional GoogleEarth export.
Alternatively you could look after some ready made tools.
Im really surprised that nobody else wants to do this on a pda especially as the Artemis has a built in gps receiver!!!
!
I have since learned that this is called geotagging and some digital cameras with now embed the gps coordinated onto the picture. Web sites like http://www.panoramio.com/ which make a kml file to view your pics in google earth.
At the moment tho i have to find these coordinates by using picasa 2
and using their geotag option but you still have to find the location manually on google earth
download picasa here: http://picasa-server.com/?s=yp_uk&OVRAW=picasa 2&OVKEY=picasa 2&OVMTC=standard
It would be so much easier to be able to just take a pic on the Artemis and have the coordinates automacally embedded on to the file!
Any new ideas????
I heard that the Dopod ROM has this feature (geo coding). So solution for other ROMs yet.
im quite happy with my rom at the mo, dont wanna mess about with it. But if thats the only way i might have to look into it
Here is the solution to activate the gps photo on the Artemis...
Go to HKEY_LOCAL_MACHINE\SOFTWARE\HTC\Camera\
create a new folder called P9 and then
"ProfileName"="GPS Photo"
"MainCamCaptSize"=dword:00000040
"Enable"=dword:00000001
"2ndCamSupportCaptSize"=dword:00000054
"MainCamSupportCaptSize"=dword:000002D4
"2ndCamCaptSize"=dword:00000040
"EnableRecLimit"=dword:00000000
"RecLimitSize"=dword:0000005F
"RecLimitedType"=dword:00000000
"EncodeFormat"=dword:00000003
"CaptureFormat"=dword:00000002
"Property"=dword:018013BD
"CaptureType"=dword:00000008
"ProfileName_0409"="GPS Photo"
or you can import with Resco the attached registry file.
Some friend tell me that they have on the registry the folder P9.
In this case you must only change the registry value Enable from 0 to 1
That is awesome, great that this can be done via registry. Wonder why htc disabled it per default.
travegliaesogno said:
Some friend tell me that they have on the registry the folder P9.
In this case you must only change the registry value Enable from 0 to 1
Click to expand...
Click to collapse
Yes. This is correct when the last ROM you updated from was the Dopod one.
While we are at this let me share my findings:
1. You can improve the camera pictures (at least if you uped. from dopod rom as I did) by going to the ext.rom with total commander and running the cab CP_061025_P800W_CamAgentCab.enus. The pic quality of the plain PDAMobiz rom is worse than the htc or real Dopod one, with a yellow hue
2. The radio rom is not updated, so it inherits that of last ROM before you went to the PDAMobiz one
Cheers
anyone done this yet? im just about 2 try!
It works!!!!! if you upload your pics to http://www.panoramio.com they will then create a kml file to view in google earth!
Cheers guys!!!
Yes, it works!
If you start the camera application,m you have to choose a different Profile in the left top of the screen.
Choose the Camera-sign with the cross, so the phone tries to get a GPS-Fix.
If the fix is established, you can make a photo.
But is the any other possibility to use the new information in Google Earth as panoramio?
Realflo said:
Yes, it works!
But is the any other possibility to use the new information in Google Earth as panoramio?
Click to expand...
Click to collapse
Im not sure what question your asking?
I read the lat and long of the picture with an exif reader and use it in Google Map
It works in my P-3300. Thanks
just finding at the mo its about 100 meters out!!! anyone else found this?
Very GOOD!! but...
travegliaesogno said:
Here is the solution to activate the gps photo on the Artemis...
Go to HKEY_LOCAL_MACHINE\SOFTWARE\HTC\Camera\
create a new folder called P9 and then
"ProfileName"="GPS Photo"
"MainCamCaptSize"=dword:00000040
"Enable"=dword:00000001
"2ndCamSupportCaptSize"=dword:00000054
"MainCamSupportCaptSize"=dword:000002D4
"2ndCamCaptSize"=dword:00000040
"EnableRecLimit"=dword:00000000
"RecLimitSize"=dword:0000005F
"RecLimitedType"=dword:00000000
"EncodeFormat"=dword:00000003
"CaptureFormat"=dword:00000002
"Property"=dword:018013BD
"CaptureType"=dword:00000008
"ProfileName_0409"="GPS Photo"
or you can import with Resco the attached registry file.
Click to expand...
Click to collapse
I've tried this and suceed to take photos. But how and where can I see them geo-referenced??
if you download googles free picture viewer/editor in properties you will find the coordinates. make sure that you have selected the gps mode on the camera it will flash up searching for gps signal.
GPS-mode in camera works great, thank you very much. However I've lost vibration function for incoming calls, probably coincidentally, but I'm not sure.
prodvagon said:
GPS-mode in camera works great, thank you very much. However I've lost vibration function for incoming calls, probably coincidentally, but I'm not sure.
Click to expand...
Click to collapse
For the vibration function try to see in HKCU\ControlPanel\Sounds\RingTone0\Script
you must have in the script a v with a number i.e v2 means vibrate for two second, or v0 vibrate always...
Like many of you i am sure an attraction of this device was the GPS function.... now i was wondering does anyone know of a program that can use the GPS to record the longs and lats and dump them to an xml file when a button is pressed? For example i take a photo, it has a timestamp.... i then take the long/lat with this program and save it to an xml then when i get back i can link it all up and then plot it to a map where i was and what it looked like... Anyone? Or even an automated way to take a GPS location save it to an XML and link it to a photo for example.
But really what i want as a barebones is just away to press the screen and dump the location to a txt or an XML with a line or so of writing so i can link it to what i was doing or where a location is.
Anyone?
Would anyone find this useful or is it just me?
For GPS exif data take a look at the following thread:
http://forum.xda-developers.com/showthread.php?t=292560http://forum.xda-developers.com/showthread.php?t=292560
ok then that looks great howevs does anyone have a fix for making the minutes in lat and long differ? or have any info on a possible fix or another program?
Its the seconds that appear to be the issue, not the mins
strange though with the HTC Artemis P3300 it works fine but with the O2 XDA Orbit or the T-Mobile MDA C III it messes up, not found anything as yet to address this though - Mike
reisyboy said:
Like many of you i am sure an attraction of this device was the GPS function.... now i was wondering does anyone know of a program that can use the GPS to record the longs and lats and dump them to an xml file when a button is pressed? For example i take a photo, it has a timestamp.... i then take the long/lat with this program and save it to an xml then when i get back i can link it all up and then plot it to a map where i was and what it looked like... Anyone? Or even an automated way to take a GPS location save it to an XML and link it to a photo for example.
But really what i want as a barebones is just away to press the screen and dump the location to a txt or an XML with a line or so of writing so i can link it to what i was doing or where a location is.
Anyone?
Would anyone find this useful or is it just me?
Click to expand...
Click to collapse
Check out the GPS Tuner website. http://www.gpstuner.com/
They also have a free program called "Map Calibrator" which I think does what you want.
mikealder said:
Its the seconds that appear to be the issue, not the mins
strange though with the HTC Artemis P3300 it works fine but with the O2 XDA Orbit or the T-Mobile MDA C III it messes up, not found anything as yet to address this though - Mike
Click to expand...
Click to collapse
Hmm i wonder can anyone extract the camera app and stettings etc of the P3300 to try it on the XDA/MDA?
And Mike you are right im sorry it is the seconds that are just coppied between each other.
I doubt the GPSTuner application can do this functionality, what we are talking about is embeding the Lat/ Long information directly in to a photograph taken with the onboard camera, its a nice application though all the same.
The GPS Software is the same on both the HTC P3300 and the MDA C-III (if you check the Exif info it lists them as 29.29.9.9 on either device - not got direct access to an O2 Orbit to check).
The Camera versions are the same but the Build number is different (24865 on the HTC P3300, and MDA C-III is Build 24724, will have to try "playing" around a bit more - Mike
If anyone wants to help, I've been putting together an application to fix this long/lat camera issue on the Artemis/Orbit
So far I have the following working
1. monitor a given folder on the device for new jpegs as they are created
2. query the satellites for the correct GPS long/lat values
3. update code to write to the EXIF GPS values for a given JPEG
I have a mixture of C# and C++ code, which I need to combine into a single application.
If anyone has C# or C++ skills and wants to help, then please PM me and I'll share what I have so far
I've also posted this here:
http://forum.xda-developers.com/showthread.php?p=1217400#post1217400 post #54
Ah that seems to be a great idea i will eargerly await any info on it.
I still hope that HTC fix this issue would be a great not to have to use additional applications.
Do images rotate on turning the device without opening the keyboard? like on HD or Diamond? Because in my TP2, images do not rotate on turning the device as it is supposed to due to g-sensor .... isn't it? Does it have to be activated somehow or is it not possible in TP2 ... which will be strange.
dr_s said:
Do images rotate on turning the device without opening the keyboard? like on HD or Diamond? Because in my TP2, images do not rotate on turning the device as it is supposed to due to g-sensor .... isn't it? Does it have to be activated somehow or is it not possible in TP2 ... which will be strange.
Click to expand...
Click to collapse
by default rotation with gyro does not work on Rhodium.
You can use gyrator2 if you wish to enable this functionality.
Cheers,
Beasty
I have the same problem. Screen rotates in opera, but not in Album.
same here, and gyrator is not the perfectly program for this... its slow, and it isn't integrated with WM after install. its just a stand-alone app what runs as the same way as other programs (you can also close it by taskmanager).
Also taksmanager doenst close programs by clicking [X] ?? (even when i select it)...
Attached regisry that will enable a lot of programs in G-sensor.
You also can edit by notepad to remove program that you are not like.
Well found! Very Handy
Thanks
Joseng said:
Attached regisry that will enable a lot of programs in G-sensor.
You also can edit by notepad to remove program that you are not like.
Click to expand...
Click to collapse
I understand this works great. few questions:
Doesn't it slow the device?
What programs do you suggest to be rotating without the screen sliding out and what programs do you think shouldn't flip to landscape because it gets annoying?
Joseng said:
Attached regisry that will enable a lot of programs in G-sensor.
You also can edit by notepad to remove program that you are not like.
Click to expand...
Click to collapse
thanks. great find. but same question as above.
Why HTC has not made it default for the album?
dr_s said:
thanks. great find. but same question as above.
Why HTC has not made it default for the album?
Click to expand...
Click to collapse
The same question could be applied to many things HTC have done with the Rom on the Rhodium.
At the end of the day, do what we do best here, add the functionality that you want, then fix any problems that occur afterwards.
I haven't noticed any adverse affects using gyrator, as yet anyway.
Cheers,
Beasty
does anybody by any chance have the window class of sygic mobile drive (previously mcguider)??
Joseng said:
Attached regisry that will enable a lot of programs in G-sensor.
You also can edit by notepad to remove program that you are not like.
Click to expand...
Click to collapse
how do you add this file to the reg for us newbs please
thanks for any help
Doesn't it automatically display the picture at the maximum size? Meaning if it is a landscape picture it displays it in landscape and if it is a portrait picture it displays it in portrait? I actually prefer the way it is done in the new album which I am running on my FUZE.
combat goofwing said:
how do you add this file to the reg for us newbs please
thanks for any help
Click to expand...
Click to collapse
Guide for newbies here
http://htctouchpro2.wordpress.com/2009/06/21/htc-touch-pro2-hacks-–-part-2-–-g-sensor-everything/
thanks thats why i love this site, you get what you think is a great phone and they just help you make it even better
and to think i thought my viewty was the muts nuts
Could someone help me out with the TomTom reg key? I get the modulename bit right, just point it to tomtomnavigator.exe. Don't really understand the whitelist key. What should the value be for Tomtom?
Thanks.
EDIT: Just found it in the topaz section. For anyone wlse who needs to know, it is "MunichWinClass" for some reason. Thanks to infoman68 for that.
Awsome thread I downloaded and installed the gyrator2, but I cannot figure out what plugin/program to grab from microsoft to install that dotnet 3.5 on the phone to get gyrator to work. can someone please point me to the correct file?
thanks.
to anyone else wishing to add an app to HTCs GSensor list in the reg and not knowing the window title or class...
download Gyrator2, install and run. Add a new event. Choose learn. Take stylus out. Make active the window you need the name of. Insert stylus. There! Gyrator has just told ya what ya need to know... Uninstall gyrator and add what it told ya to the reg...
nice post dude...
i am still trying to get the gyrator to work on my pro2.
did you also have issues with the dotnet thing?
Hello, brilliant suggestion from bigjezza. Myself I'm trying to get Microsoft Reader to react to my phone's gyrations. However when I bring up Gyrator 2 the MS Reader app is not listed. Actually it never came up in my program-list in the first place even though it did install and runs perfectly. Had to stick a shortcut in the Windows/Start-menu.
Any suggestion on how to get MsReader onto Garator's list, or does anyone know what the relevant data is for MsReader just like that?
Many thanks/McHan
Joseng said:
Attached regisry that will enable a lot of programs in G-sensor.
You also can edit by notepad to remove program that you are not like.
Click to expand...
Click to collapse
I did install the .reg, then looked my self the new strings in the registry and everything looked OK, but the images on Album still do not respond to device rotation... Any other solution? Or it is need to activate or deactivate something else?
regards,
Tyrone
Now supports Rotation, same download place. I hope to see Rotate To Unlock applications Soon
Now Demo Rotate To Exit Application available, Youtube Video
Greetings XDA,
Today i released the beta version of the SDK
In December last year, i posted an Alpha version of this SDK. Now it is mature enough to announce it as Beta. This SDK allows developers to build Dual-Touch enabled applications. so let’s get into action.
Features:
Pinch to Zoom Support
Drag (swipe) support.
Replacement events for the mouse move fires only when a single finger detected.
Multiple events based on gestures.
Performance optimized, memory footprint is minimal.
To use this SDK you will need Visual Studio Professional or better. start a new Smart Device Project, and add the SDK to your references.
The SDK is consists of only one object, which is DualTouchSDK. We will need one instance of this class for every control that supports pinch to zoom or drag in your application.
There are several methods, properties and events that can be utilized in order to achieve multitouch effect. i have done my best to make this as easy as possible, my code is now complex but it is necessary to achieve easy implementation.
More info and download with documentation is available here
http://www.windowsphoneme.com/?p=386
great works, looking for further implementations
nice, i hope you keep developing this
Great job, thanks!
I wonder if anyone started using the sdk to build an application, can you post here if you did start
demo app
anaadoul: When You write it You must test it too .. so what is the problem to release some demo app showing the possibilities and features of this solution ? You have some test code so publish it ..
For me it's very strange that You already do not do this.
porlock said:
anaadoul: When You write it You must test it too .. so what is the problem to release some demo app showing the possibilities and features of this solution ? You have some test code so publish it ..
For me it's very strange that You already do not do this.
Click to expand...
Click to collapse
the only problem i have with the demo app is that i don't know how to create a hardware accelerated applications.
if i used the same old method (as the prealpha version), it's going to look slow and stuttery! while inface this has nothing to do with the SDK.
if you know how to build a hardware accelerated application please let's do it together.
I'm not sure i understand what do You mean " i don't know how to create a hardware accelerated applications", if that means You use a standard win mobile .net API ? if so please refer to this site.
IN THIS PLACE SHOUD BE LINK
damn i can't post links ... so please type it in google "khronos opengles 2"
for .Net wrapper, type in google
"Tiny Graphics Engine Tigre"
or
"koushik dutta net-compact-framework-wrapper"
I'm looking forward to this being implemented in games and such.
I'd love to see a screen unlocker that supports multi gestures "stretch to unlock" anyone?
I presume this only applies to HD2 as it has multi touch.
bteljuice said:
I presume this only applies to HD2 as it has multi touch.
Click to expand...
Click to collapse
Im happy to say: NO
I've got the HD aka Blackstone and the Alpha release worked on mine HD.
bteljuice said:
I presume this only applies to HD2 as it has multi touch.
Click to expand...
Click to collapse
How did you work that out? HD2 wouldnt need this cos it already supports dual touch? Right?
hd2 has a capactive screen, thus meaning it alreasy has multi touch!
us people on resistive screens however are stuck on single touch only, until now (hopefully )
The funny thing is that this wont run on the HD2!
When you press 2 points on a resistive screen, apps get the middle of those points. And that fact is used for this emulated dualtouch.
When you press 2 points on the capacitive screen of the HD2 apps(without multitouch support) get no mousedown at all(at least on my HD2).
Uppy said:
How did you work that out? HD2 wouldnt need this cos it already supports dual touch? Right?
Click to expand...
Click to collapse
Thats why i said, I PRESUME. I am not sure, this is why I was asking.
I hope this project works Will be sooo happy
I'm not a programmer at all, but I'm curious from an electrcial standpoint, how the screen knows that your touching it at more than one point? I suppose with a normal resistive wire screen, you would get 3/4 minimum inputs, but with these "touchflo" screens..?
Just Curious.
Val
hi. Can anyone post one app made with this sdk so we can test it on our devices?
Thanks
Wow! I'm amazed at what I see everytime I get on XDA-Developers! I thought getting multi-touch on a resistive touch screen would be impossible! Excellent Work! People really need to start pumping out applications that can use this!
XanderCorp said:
Wow! I'm amazed at what I see everytime I get on XDA-Developers! I thought getting multi-touch on a resistive touch screen would be impossible! Excellent Work! People really need to start pumping out applications that can use this!
Click to expand...
Click to collapse
same here. xda u rule and all of its members
Haha wow can't believe this is possible! Emulators would actually be playable like Mario and such, haha imagine the possibilities dude you rock!
Hey, I like to use multitouch to get more intuitive input on the touchscreen like to emulate a virtual ThumbStick and some buttons working on the same time.
It's easy to get multitouch working using the WindowsMessages HTC_Zooming, HTC_End_.... But now, the fingers must be set on the screen nearly at the same time or it won't work. That's fine to implement some rotation or zooming cap but it's not enough for a game...
Does anyone know how to get multitouch, like the HTCAlbum does support?
An interesting fact is that the HTCAlbum app is in the blacklist of the Pinch cap in the registry and to get the PinchToZoom-Messages you must be registered in the whitelist...
Thanks
If you send me one HD2 for testing, I'll find it out hehe
HTCAfe.dll
Hey guys
I'm doing some research in the dependencies of the htc apps on my hd2 to get real multitouch. Now I need to analyze htcafe.dll but I can't copy it from my device 'cause it's cooked in the rom.
How do I get that lib on my pc or could anyone send me a copy?
Thanks
Sure, here you go!
Fast?
EpiphanyNL said:
Sure, here you go!
Click to expand...
Click to collapse
thanks for that quick help!
You can usually copy out rom modules with either Cotulla's romextractor.exe or dotfred's task manager (the Depends tool-extract rom library).
DirectShow?
Hey guys
I'm sorry for the long dead time. It's really tricky 'cause I've no idea of directdraw/show on winmo? I figured out that you have to create a htcscene out of htcafe.dll and there you probably get the real multitouch-events.
Could some one send me a good tut for directdraw/show?
cheers
Got it!!!!
I got it working now!!! After spending hours, I found out how the HTCAlbum does it and I think it's the best way to do it without rewriting the whole driver and that stuff....
If anyone is interested in how to do it, i will write a sdk for .net and maybe a tut for native coding... (So if you're writeing a game... I can't wait to see multitouch ingames!!!)
For the moment I'm done, but I will soon post a sample game (some stuff like AirHockey or Pong)... (if I find time....)
Cheers
Some sample would be nice =)
Is it really something different from "HTC_Zoom_Begin" etc?
As for me, I prefer native code sample, but .net sample is ok as well.
How is this different from the multitouch already enabled on many hd2 apps? For example, fpsece, the playstation emulator has had multitouch for a long time, at least in the donators version. Is this a better implementation of multitouch?
Sent from my HTC HD2 using XDA App
zarathustrax said:
How is this different from the multitouch already enabled on many hd2 apps? For example, fpsece, the playstation emulator has had multitouch for a long time, at least in the donators version. Is this a better implementation of multitouch?
Sent from my HTC HD2 using XDA App
Click to expand...
Click to collapse
Firsteful, there are now three approaches to get multitouch working (as far as I know). The first is the simplest, I think the multiouch skins for morphgear uses this trick. If the second finger is pressed, you get (I don't know exactly how, cause it was never an option for me...) the point in the middle, and you asign two buttons to this point.Well, It's fake multitouch, but it works.
The second option is to write the PenTrac.dll and activate MultipointDemo (or what so ever) key in the registry and send some window messages (they often abuse the standard mouseevents...)...
The last option is to use HTC_Zooming-messages and so on (in my opinion the best, cause this function is already there, so no overheat is made...). And this is what I do. But in all samples I got before (like I described in the first post of this thread...) , you needed to press both fingers at the same time. I figured out, how to avoid this problem. And that's the difference...
And in the end, I just wanted to make a really easy-to-use sdk. So that even beginners are able to get multitouch working.... I found it quite hard to start with all the p/invoke stuff or change from c# to native code. I hope I can help you with the sdk.
Here's the thread of my sdk. Feel free to leave feedback.
http://forum.xda-developers.com/showthread.php?t=906068
Chabun