• Announcements

    • Reminder - MoDaCo position on illegal content   07/30/15

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such softwareNintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)CUSTOM ROMS You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)ROMs must give full credit to the original authorISSUES If you have any issues with this policy, please contact PaulOBrien directly via PM.
    • Reminder: Selling items on the forum directly is not allowed   07/30/15

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspension / ban.

AGPS Location Awareness API Incoming

15 posts in this topic

Posted

So I was wanting to implement location awareness for titanium weather, and the only available winmo location service I could find is not cdma compatible. I now have a prototype based on DeepCast that pulls gps coordinates using cell towers that is extremely accurate. It writes the values to the registry for easy manipulation by other programs or scripts. I still need to work on it a bit and would like to implement it as a service, but a backgrounded startup app would be just as well I suppose, at least for now. I don't know if anyone has use for location aware ability, but we'll have it soon. And this should work for any phone on any carrier. I'll post a proof of concept tomorrow.

0

Share this post


Link to post
Share on other sites

Posted (edited)

Alright, here's a proof of concept. The program will collect your AGPS position (you can be indoors no problem as long as you have a cell signal), display your gps coordinates as well as a map with your location. This program also places your coordinates in the registry at HKLM\Software\Locaware. Currently it's set to update every five seconds, but I'll probably turn that way back to something like every 15 minutes in a final release. The source API also has the ability to notify services of changes in location to cause them to update automatically, so there's definitely some flexibility in program design around this.

Someone install this and let me know that it works ok for someone other than myself? Thanks.

To install:

1) Unzip and copy LocAware.cab to your phone and install to device.

2) Run the program from the start menu. It's called LocAware and has a satellite icon.

3) You can start and stop it from within the program with the left soft key, and it won't run after closing, so there's no worry about it constantly pinging for your location.

If it gives you an error the first time or two, try running it again. There seems to be an initialization issue sometimes. I'm just trying to get confirmation it will work before proceeding. Note you do need a data connection, whether that's wifi, cellular, or via activesync or you will definitely get an error. This is because it's trying to pull the map data. I haven't implemented error handling for this as I plan to remove the map pull in the final release, and it's only included here as a quick proof of coordinate accuracy.

I'm getting five-to-ten second agps fixes - indoors - to within 50 feet or so. I'm curious to know how it works for someone else. Thanks again for the feedback.

Video Demonstration:

LocAware.zip

Edited by Snow02
0

Share this post


Link to post
Share on other sites

Posted

I tried running this at least 20 times but all I get are unexpected errors in DeepCast.exe and I don't have the net3.5 messages cab installed to see the detailed error. Seems to be right after the Lat & Long change from - Searching - to 0 I get the crash error.

I'm running DC23 still with yardi's last 23568 rom.

0

Share this post


Link to post
Share on other sites

Posted

I'm running DC23 still with yardi's last 23568 rom.

Times have changed buddy.

X

0

Share this post


Link to post
Share on other sites

Posted

I tried running this at least 20 times but all I get are unexpected errors in DeepCast.exe and I don't have the net3.5 messages cab installed to see the detailed error. Seems to be right after the Lat & Long change from - Searching - to 0 I get the crash error.

I'm running DC23 still with yardi's last 23568 rom.

Hmm. Ok. Thanks. Anyone else?

0

Share this post


Link to post
Share on other sites

Posted (edited)

Video Demonstration posted. Please drop a quick post to let me know if it worked for you or didn't. Thanks again.

Edited by Snow02
0

Share this post


Link to post
Share on other sites

Posted

I've pulled the old installer and made a cab install. If you had a problem with the original, please try this one. There is no need to restart after installing this one.

0

Share this post


Link to post
Share on other sites

Posted

worked after changing gps com port to NONE in samsung settings but that fugged up other programs that use gps, so setting to com1 seems to do the trick. so does this work as a fluffer for other programs such that dont use agps? not sure if it was coincidence but google maps had me locked onto 3 satellites indoors seconds after it opened, GPSWeatherRadar not so much though

0

Share this post


Link to post
Share on other sites

Posted

nevermind that now i cant get it to work at all -ill keep trying, and one more thing, the settings softkey isnt responding

0

Share this post


Link to post
Share on other sites

Posted (edited)

Thank you for the info. I believe your changing the gps com port was just coincidence, as it doesn't use the gps receiver. I've just always left my com port on 6 (the default) and never had any issue with any gps programs. Though I can see where turning it to none would cause a program that relied on a gps connection to fail.

How accurate was your position?

The API actually uses the same tower location database as google maps. The settings softkey doesn't presently do anything, so that's normal.

I'd like a couple more people's input if possible.

Edited by Snow02
0

Share this post


Link to post
Share on other sites

Posted

nevermind that now i cant get it to work at all -ill keep trying, and one more thing, the settings softkey isnt responding

Hmm. I'm having an issue myself now too.

0

Share this post


Link to post
Share on other sites

Posted

the few times it did work ( about 4 times within 5 minutes ) it seemed to be very precise

0

Share this post


Link to post
Share on other sites

Posted

As an API, it'll need to be called by programs, right? Or, will this make programs that currently don't use aGPS (such as Bing) work with it?

Or, will it make those that do more accurate? My Sense weather is insisting I'm in Spain tonight. I thought I was in Southern New Jersey...

0

Share this post


Link to post
Share on other sites

Posted

As an API, it'll need to be called by programs, right? Or, will this make programs that currently don't use aGPS (such as Bing) work with it?

Or, will it make those that do more accurate? My Sense weather is insisting I'm in Spain tonight. I thought I was in Southern New Jersey...

It won't necessarily need to be directly called by programs, and it won't work with something like Bing. What it will do is allow another program the ability to have access to constantly updated gps coordinates via the registry - or, a program can be incorporated into the source so that the location service will notify the program when the location changes.

The simplest use will be to have a program you want to be location aware to check the registry every X minutes and update according to the coordinates there. This is how titanium weather will work. Once I get this working I'll release an updated titanium weather.mscr along with it as an example implementation.

I know sense also uses agps for it's location service, but I'm not very familiar with sense in general, and have no idea if their location service is editable in any way.

0

Share this post


Link to post
Share on other sites

Posted

Does this pull the ephemeris data off the cell towers to update the GPSOne chip within the phone to actually use the AGPS function, or is it just another version of gpsmoddriver like on XDA-Developers?

If it's the the former, then awesome.

If it's the latter, someone's already developed it for almost a year now.

If you want to truly get AGPS, I'd suggest you reverse engineer the Verizon Nav program and understand how it talks to the GPSOne Chip in the phone, Especially with the PDE servers. This project would certainly be an undertaking but can imagine that it would be worth it for the life of Windows mobile on this phone.

As of now, you cannot modify the PDE server info in QPST on the i920.

We don't even have to use Verizon's PDE, it would certainly be nice to use any of them. Several companies still keep them "open"

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.