You may be thinking: "oh, not again that GPS crap", but no, I'm not complaining about the GPS as it is working flawlessly for me.
As I have noticed the sampling frequency of the GPS data points is 1Hz i.e. one sample every second which is not the ideal if we want to track accurately our activities specially in the corners and in not so linear routes.
Here you have an example (iPhone), 3G vs 4, the iPhone4 has a higher sampling rate and clearly better results.
So, I want to request the developers to try to change the sampling frequency from 1Hz to 2Hz. I've read somewhere that the integrated chip is 2Hz capable but disabled at driver level.
I am not sure if 2Hz are really needed, at least if you are not in a car. I am using Oruxmaps for recording tracks, there i see a huge difference when setting minimal time between gps points to 0s (Always on) and minimal distance between gps points to a lower value.
I want to see the difference after sampling changes to 2Hz
Yeah, come on, give it a try!!!
This sounds interesting. Wish i could assist in making it happen. Unfortunately Im not that clever.
Sent From My GT-Iphone-killer almost.
Well I thought I would look into this, I've never edited a driver or any thing linux in my life, but i thought "how hard can it be"?
Well I still dont know lol.
I downloaded the jm9 files from this thread.
http://forum.xda-developers.com/showthread.php?t=831725
And looking at the files the only one I can play with is the jupiter.xml file.
Now looking it seems pretty straight forward, i dont know what half of the things being enabled and disabled mean, but we can play i suppose.
One thing does concern me tho, looking at the xml file it seems to use a couple of differant servers for some kind of supl data. I know we can edit the supl entries in the gps.conf file, but maybe the jupiter file overrides that? Im not clever enough to find out unfortunately.
Anyway to cut a long story short the servers it uses are:
http://www.spirent-lcs.com/
bcmls2.glpals.com
bcmlbsqa1.glpals.com
Neither of which seem to work when using a normal web browser.
There is also some references in the xml file to frequency plan, but im not sure i really understand what these mean.
Maybe someone with better knowledge than me could take a look and see what they think.
Or maybe im barking up completely the wrong tree, in which forgive me.
I've uploaded another copy of the jm9 drivers file in case anyone wants to take a look also.
Also noticed that a chap on modaco forums has tried changing some elements, in case it is of any help...
http://android.modaco.com/content/s...xml-etc-gps-conf-and-gps-fixing/#entry1336782
Related
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?
Here is an idea: a lot of people are unhappy about the fact that their G-Sensor is out of alignment, and that this may negatively affect apps which may be developed in the future (or which are already under developemnt) and which rely on the sensor for something critical. Though my device does not suffer from this, I can fully understand them!
However, today the only app which uses the sensor is Teeter, for which - frankly - this mis-alignment is not a huge issue! The reason I say this is that this app would fall outside of what I propose below...
So, here is my idea: why don't we set up a simple standard for the G-Sensor calibration, to be stored in the registry in a dedicated set of keys, and develop a quick and simple application to calibrate it and store the values in there (much like was done in BubbleLevel)?
As long as all developers here agree to use these values and stick to the standard... voila! We can all have a calibrated G-Sensor, which any future program will know how to read correctly (by correcting the values it gets with the offsets stored in the Registry to get a perfect reading).
What do you people think (especially all you developers out there)? Anyone care to volunteer a registry location and some key names?
That would be really great
that's exactly what we need...
Instead of using HTCSensorSDK.dll we could create a HTCCalibratedSensorSDK.dll (for example )
Exactly same interface, but calibrated... The developers only would have to change their dll names...
I did the day before a such dll for testing purposes, and its really simple (I even successed in 'calibrating' teeter when overwriting the original one..).
I think this is the thing we have to do...
Other inputs?
Sven
g-sensor not working
after i installed gsen my g-sensor dont work! when i try to play teeter the ball is stuck up and only moves left to right. also it opens my ktcalbum upside down. can the touchflo be reinstalled maybe? any idea?
svenso said:
that's exactly what we need...
Instead of using HTCSensorSDK.dll we could create a HTCCalibratedSensorSDK.dll (for example )
Exactly same interface, but calibrated... The developers only would have to change their dll names...
I did the day before a such dll for testing purposes, and its really simple (I even successed in 'calibrating' teeter when overwriting the original one..).
I think this is the thing we have to do...
Other inputs?
Sven
Click to expand...
Click to collapse
This sounds live a VERY good idea. Do I understand you correctly, that you actually have a basic version of the DLL already done???
Does anybody know if there is any application which can allow to draw what i want? I work as a logo designer and sometimes i need to quickly draw things whats on my mind. I tried Pocket Artist 3.3 which is great but it is kinda buggy For example when i draw something with paintbrush it everytime generates straight lines to one randomly seleceted point which is bothering me So is here any other app which allows all the things like PocketArtist? Thanks for any help
I have found Pocket Artist to be the most complete program available. I found it only to be buggy with the stylus recognition. In the preferences there is a setting to reduce stylus jitters. After changing that it is very accurate. I don't know if this is what you meant by buggy, but it helps if you haven't tried it. Most of my other issues I would just consider to be limitations of a phone/small screen.
I have tried a lot of other programs but most of them were not impressive. Photogenics had some cool features, but was fairly limited. I think it was limited to like 240x320 or something small like that. Maybe if you don't need large images it would be worth checking out. At least it allows layers
If you find anything else worthwhile please post it here.
Hope this helps!
yeah ive also tried a lot of programs but found Conduits Pocket Artist the most flexible and easiest to use on the small screen.
JM33 said:
I have found Pocket Artist to be the most complete program available. I found it only to be buggy with the stylus recognition. In the preferences there is a setting to reduce stylus jitters. After changing that it is very accurate. I don't know if this is what you meant by buggy, but it helps if you haven't tried it. Most of my other issues I would just consider to be limitations of a phone/small screen.
I have tried a lot of other programs but most of them were not impressive. Photogenics had some cool features, but was fairly limited. I think it was limited to like 240x320 or something small like that. Maybe if you don't need large images it would be worth checking out. At least it allows layers
If you find anything else worthwhile please post it here.
Hope this helps!
Click to expand...
Click to collapse
Hey man it seems that adjusting jitter reduce to max value helped to solve my problem. Thanks for pointing me to that, because i would never think it could help i am wondering if there is any app which could work with curves? thanks a lot again!
Hi, I would like to know if there are apps that shows the speed of movement by using the build in accelerometer? I know there are some apps that work like this in windows mobile, but what about android?
Thanks
Update: I have made one for this, but just an alpha maybe.....
Have a look at page 2.
Just a thing about speed and acceleration:
The accelerometer can only measure acceleration (ok, it's obvious ). Not actual speed.
What the application could do is calculate the speed if it begins measuring when you don't move and then log all accelerations...
Anyway, you cannot give any accurate speed measure just using an accelerometer. If you start it for example when your car is already moving at a constant speed, the accelerometer will announce a speed of... 0 mph / km/h...
Just my two cents.
Sorry for my bad English. Yes, what I want to see is exactly the thing you say. I know that speed measured by this method is not accurate, but it is nice to have a brief estimation of the speed.
You would not get an estimated speed. The error in speed would increase in a linear fashion. You can only get the speed changes during the short time span.
try gps status in the market, its using your gps, so your battery is going to be drained quicker, but it shows your acceleration in lateral g's and has a speed. I dont know how accurate it is, but i will find out tomorrow. Got a nerd bikemount for my phone, and i already have a speedometer on it, so i should be able to give you a rough idea of how accurate the speed is tomorrow
Hi, Johnny5Walker. I am also using gpsstate2 now, and I know it shows speed according to gps and it also shows acceleration by the accelerometer. But what I am interested in is a program to show a roughly calculated speed when gps is unavailable, like in a metro or something like that.
I have search through the market and found nothing like that. Maybe I will write one, but I don't know how to write android program.....
like someone else has mentioned in this thread, It not physically possible with the accelerometer. It can only measure g forces, and once your done accelerating there is no more gforces being applied. hence no speed rating.
But there may be a way to calculate an approximate speed by the gforces initially put onto the phone. but what that calculation might be, i have no idea
like someone else has mentioned in this thread, It not physically possible with the accelerometer. It can only measure g forces, and once your done accelerating there is no more gforces being applied. hence no speed rating.
But there may be a way to calculate an approximate speed by the gforces initially put onto the phone. but what that calculation might be, i have no idea
It all depends on how accurate the accelerometer is.
If it is accurate enough, it should be no problem to use it to calculate relative speed, and even relative position.
It is just a mater of logging the data, that is if the accelerometer is able to export direction of acceleration.
Johnny5Walker said:
But there may be a way to calculate an approximate speed by the gforces initially put onto the phone. but what that calculation might be, i have no idea
Click to expand...
Click to collapse
It is pretty simple: 1G=9.8 m/s^2 so acceleration * time is "relative" speed
Trndr said:
It all depends on how accurate the accelerometer is.
If it is accurate enough, it should be no problem to use it to calculate relative speed, and even relative position.
It is just a mater of logging the data, that is if the accelerometer is able to export direction of acceleration.
It is pretty simple: 1G=9.8 m/s^2 so acceleration * time is "relative" speed
Click to expand...
Click to collapse
I honestly should have known that. well i did, its just been awhile since physics class. lol
now if only i had any programming skills
It seems that you are having some interests of this feature.
I have written a small program for this purpose, called speed.
Just a very little alpha version.
Tell me what you think about this.
Hold your device stable for setting gravity.
It will not considered as an acceleration if net acceleration is below 0.25 ms2.
Please provide a better method if you have.
Please also give me some idea of how to improve the program.
If you like it, please consider a little donation:
HERE
Car performance meter.
eddielo:
I'm interested in developing an app that uses the accelerometer to calculate performance information about a car.
It would basically integrate the acceleration to obtain a measurement of:
- Instantaneous speed
- Performance: 0-60mph, 0-100Kmph, 60-0mph, quarter mile time.
- Power: Vehicle peak HP (together with vehicle weight) and max torque, plus curves.
It would be possible to integrate this with a vehicle performance database to calculate deviations from vehicle standard performance (and weight data could come from there as well).
Maybe advanced options could include integrating the GPS to improve performance (I don't know if the GPS data timing would be accurate enough to make this feasible).
I have the tools and the physics knowledge, as well as the tools, my dev skills are a bit rusty (haven't done any development on WM and my last development efforts on Windows were five years ago) but I guess it all comes back.
Are you interested in collaborating on something like this?
Given the cost of a typical car accelerometer and performance meter, I guess there might be an actual market for such an app.
can you post the source code for your speed app?
would be much appreciated.
Been trying to figger this out for about a week now, but no success.
i'm trying to build a dyno app
eddielo said:
Sorry for my bad English. Yes, what I want to see is exactly the thing you say. I know that speed measured by this method is not accurate, but it is nice to have a brief estimation of the speed.
Click to expand...
Click to collapse
There are a couple of apps in the market that measure speed:
http://weaverfishdesigns.blogspot.com/
http://www.androlib.com/android.application.org-prowl-speedhud-jz.aspx
eddielo said:
It seems that you are having some interests of this feature.
I have written a small program for this purpose, called speed.
Just a very little alpha version.
Click to expand...
Click to collapse
Hi eddielo
I know this was a long time ago but any chance in sharing the code for this app? I would love to implement something like this in my student project but I am not too sure where to start in terms of code.
Thanks
Liam
bravo.. eddielo..
it would be more accurate if could take into account only a single axis (say x or y axis)
the user will have to hold the phone along this axis(hope u got what i mean)...
also check acmeter application in market...
another prob.. it does seem to account for negetive acc...
We tried to do something similar with Slide Meter.
By mean of a double integration (with tuned filtering and drift compensations) we are able to estimate the distance.
It is not 100% precise, but it's a good guess!
Bye
Dicotomica said:
We tried to do something similar with Slide Meter.
By mean of a double integration (with tuned filtering and drift compensations) we are able to estimate the distance.
It is not 100% precise, but it's a good guess!
Bye
Click to expand...
Click to collapse
Hey, can you please send the apk file if you made it? I'm really eager to use it!!
Thanks
lanksdot said:
Hi eddielo
I know this was a long time ago but any chance in sharing the code for this app? I would love to implement something like this in my student project but I am not too sure where to start in terms of code.
Thanks
Liam
Click to expand...
Click to collapse
Hey, if you've got an Android app on this, please share it. I'm most eager to use it.
I've got one, but it's not too good. Check it out:
Thanks
lanksdot said:
Hi eddielo
I know this was a long time ago but any chance in sharing the code for this app? I would love to implement something like this in my student project but I am not too sure where to start in terms of code.
Thanks
Liam
Click to expand...
Click to collapse
Hey there, please consider sending the Android app, if you've got it. I'm most eager to use it.
I've got one, but it's not too good. It just integrates forward acceleration but not the reverse acceleration. Check it out:
Thanks
If this has been discussed and I have overlooked it in my searches please if you know point me in the right direction. here is an example of what I am trying to do: The sensorcalibutil_yamaha, I want to find out how it is working so I can write a very simple app kind of like the one in the Froyo ROMs but where I can input inverted values for certain axis without "calibrating" them all thus messing up other axis I want to stay the same. Then save those values like this utility does only with my input tweaked values. I have tried logcat but it does not do what I need. is there something I can do in ADB?
dono, there is a file in *deep breath*
/sys/devices/virtual/accelerometer/accelerometer/
called acc_file which is rw-r--wrx (kinda weird). It looks like it contains the current accelerometer info (if you rotate the phone it changes) but I don't have a clue where the information is being read from or what function is putting it in there.
What 'cha trying to do?
Sherpa
Invert only one axis by inputting calibration values manually so as to correct the rotation issue. In the froyo roms there is a gui to do what sensorcalibutil_yamaha does bit it reads the current sensor values and issues an "offsetUpdate" with the current values as assumed Level. But on us variants you are holding the device semi verrical part landscape to get it to sort of stay rotated vertical but doing this also updates the other axes as "level" so rotation is flaky at best with no love in games at all. So if this app reads current values and issues an update we should easly be able to write a simple app that we put our own values into and issue an update. Thus allowing us to invert only a singlw axis and make rotation work perfect.
Sent from my SAMSUNG-SGH-I897 using XDA App
We've tried swapping every file with yamaha or sensor in it to a froyo build with no luck. It looks like the garray and marray values are somewhere deep inside the kernel rather than a handy library file. If your handy with a hex editor or a soldering iron you would be a hero
Sherpa
I saw an episode on revision 3 of a show called APP JUDGEMENT where the host was doing something like that to get a reading of how much his motercycle leaned in corners not sure which episode it was but its at least 4 weeks ago
Good luck hope you succeed
TMC_Sherpa said:
We've tried swapping every file with yamaha or sensor in it to a froyo build with no luck. It looks like the garray and marray values are somewhere deep inside the kernel rather than a handy library file. If your handy with a hex editor or a soldering iron you would be a hero
Sherpa
Click to expand...
Click to collapse
I am quite good with a hex editor and an expert with a soldering iron. anyways no one really cares lol so to clarify (sorry was on my device in a vehicle so I did not feel like typing a lot) No it is not stored in a file anywhere on the system (in temp memory while it reads the values before it updates) the values in this chip are stored outside the system (often in the chips software(actual firmware of the hardware) this would explain why when erasing the system and flashing back to stock leaves your rotation messed up even with a kernel reflash. it is in the kernel where the driver interprets these values (that is why in 2.1 it can be patched like in the reorient kernel) obviously the I9000 default settings are 90deg different on one axis then ours. SO my point remains, the recalibration utility works as described above, it calls commands I believe from perhaps one of the yamaha libs, libms3c_yamaha.so? it seems to do it in this order with a couple of other steps involved: it measures the sensor readings then gets the "offset" (I think this is it calculating the offset based on the current values being assumed level) then it saves those values (temp) then it issues the update. As I said before instead of updated ALL of the values as the new "level" we want to update with manually input values to work with single axes. anyone follow? I am going to give it a go tonight and at this time wish myself luck!
btw: I tried to patch the kernel with a hex editor but could never get it to repack correctly and was mostly bootless. next step is to **** my device for good with some micro-soldering (probably not plausible from the way it looks though)
It was a joke. Sir, step away from the iron.
There is an orientation lock so there is some control over the accelerometer however I'm not sure if you can lock only one axis. If it's a .so you are looking for then it ain't stripped so there should be readable text inside.
I would need to reboot to look further but the only real function in yamaha.c is yamaha_read which does what it says on the tin.
ak8973b.c does a bunch of stuff but I'm not sure why it's even in there as I doubt there are two accelerometers http://www.asahi-kasei.co.jp/akm/en/product/ak8973nbs/ak8973nbs.html but it's included with the build.
Grr, I bookmarked the photobucket but not the link
http://s379.photobucket.com/albums/oo239/vendetta-mr2/Captivate/
*Sigh* because I'm stupid
http://s379.photobucket.com/albums/oo239/vendetta-mr2/Captivate/
If it's a yamaha sensor I don't see it anywhere but then again I don't know which one it is (Thanks Samsung) so I'm not sure what part number to look for.
I think there was a point to all this but I don't remember what it was so quick ask another question, post another comment or just say something witty, I'm sure I'll remember it sooner or later.
hey what ever works for me! besides I can always fall back on the nexus. it's easier than it sounds I'll post what I find out tonight.
BLEH! "permission denied" happen to know if the gui in the froyo build is an apk?
TouchWiz is proprietary Samsung. Eugene373 has managed to remove/work around parts of it in his Frankin-Twiz but I have not messed around with that ROM so I don't know what bits are still in there.
Well that was a big ****ing fail! oh well. Gotta go back to work tomorrow so I guess that's it for me for now. I would say maybe next time but Froyo will be released by then I hope..... I guess I will spend the rest of the evening making sure I have a modem that works in froyo jpk
Ok, I gave it one last go and I got it to do portrait correctly BUT now landscape is upside down....... but it rotates nicely.....
TMC_Sherpa said:
There is an orientation lock so there is some control over the accelerometer however I'm not sure if you can lock only one axis. If it's a .so you are looking for then it ain't stripped so there should be readable text inside.
Click to expand...
Click to collapse
I rather doubt that orientation lock has anything to do with how the accelerometer values are interpreted. It probably just forces the UI to disregard changes in orientation.
Sent from my SAMSUNG-SGH-I897 using XDA App