YOU CAN NOW ORDER A GPS MODULE BY CLICKING BELOW

Want anmodule?


Wish to become a distributor of the iGPS360 module?
Please send us an email at distributors@orangegadgets.com



Tuesday, February 17, 2009

MobileSubstrate update


Some good news and some less good news today (it seems they always come together :-0).

I have been playing around intensively trying to hook into the CoreLocation framework by using the MobileSubstrate platform. Rodrigo, a customer from Portugal, dropped me an email two weeks ago with some very useful source code and a link for a MobileSubstrate tutorial on using MobileSubstrate to trick the Springboard.

Rodrigo pretty much figured out how to feed the CoreLocation framework coordinates and accuracy data. I decided to dig in a little more and managed to also feed the CoreLocation framework fake (generated by a random number generator) altitude, speed and heading data. It was a little bit tricky to get the speed and heading in as it required upgrading the Toolchain to 2.2 (I was at 2.0.1, but am currently at 2.2). It looks like Saurik has updated his instructions for building the 2.x Toolchain and it seems to be pretty straightforward now assuming you follow instructions as outlined (I have done it a few times now and have gotten the hang of it :-)

So what have we been able to do? I installed a bunch of free AppStore apps on my iPhone 2G that are GPS related: Google Earth, GPSLite, Beacon, Speedometer, GPS Tracker, GPS Ally, GPS-R and Trailguru.

Here are the most interesting ones:
  • GPS Tracker: this app has a nice readout on its screen of the location data (see top left screenshot above) and was therefore most helpful in trying to figure out the hooks. I signed up for a device key on the InstaMapper website so that my location data could be uploaded to their site. Due to the override of the location accuracy, the GPS tracker shows "tracking" on its screen (it doesn't matter what you set the slider at), but it only seems to send the location data to their servers once (right after I start the application). The data on the iPhone screen is however updated continuously.

  • Google Earth: this app also displays the fake latitude and longitude data after pressing the little bulls eye in the lower left corner. Also here, the data is only updated once (when you press the bulls eye). Make sure to turn the latitude/longitude display on under the settings in Google Earth. The altitude shown is actually not related to the CoreLocation altitude as it is the altitude for the zoomlevel of the satellite image that is active.

  • GPS Ally: this app shows the current location data on its screen as well (see top right screenshot above), but here also, the data is only updated once (after starting the app). You can re-update it manually by hitting the "Update On/Off" button in the lower left corner twice.

  • Trailguru: this app also shows the latitude, longitude and altitude/elevation (see the bottom center screenshot above), but doesn't seem to use the speed data (probably because it was written for firmware < 2.2). Here again, the actual app doesn't seem to use the changing CoreLocation data even though the values are changing on its screen. An interesting thing is however that if you press on the "Map" icon at the bottom, the center of the map does move around according the the fake data the CoreLocation framework is fed.

So now for the less good news...

I am currently stuck as I haven't figured out how to tell an app that new CoreLocation data is available so that e.g. the GPS tracker app will continuously use the new data and send a new point to its servers. The same for Google Earth, GPS Ally and Trailguru.

What I think is that we need to do something with the CoreLocationManager framework and/or the CoreLocationManagerDelegate framework and their delegates. We would need to somehow tell the CoreLocationManager object of the app that the CoreLocation object (which I am succesfully feeding fake location data) has a new data set so that it will actually use that new data.

So I am counting on some help from you in getting this figured out as I have pretty much run out of ideas.

You can do some reading around in Apple's documentation and on the forums to see if we can find what needs to be done.

I have also uploaded the source code for the CoreLocation hook here. If you wish to try it out, make sure to have Toolchain 2.2 installed (if you have Toolchain < 2.2 installed, just comment out the speed hooks and any other ones that the compiler complains about in the source code). Also make sure to install MobileSubstrate through Cydia on your device and also put the libsubstrate.dylib file into your filesystem library directory on your desktop so the compiler can find it. Make sure to "ldid -S" the ExampleHook.dylib file after it is put in /Library/MobileSubstrate/DynamicLibraries on the phone. You can take a look at the Makefile as most of the process is automated in it.

If it turns out to be possible and we do find the solution, it will be great news as it means that we can use our iGPS360 module with the majority of the AppStore apps!

Saturday, February 7, 2009

GPS voice navigation for the iPod and iPhone

Link for iPhone and iTouch users here

Link for iPhone and iTouch users here

I have been playing around with software related things the last couple of days.

I decided to upgrade the iPod Touch 1G to firmware 2.2.1 (the video above was taken at firmware 2.2) and I also upgraded the iPhone 2G to 2.2.1.

Unfortunately, I had some problems with both the iPhone and iPod getting stuck at the Apple logo screen after having re-installed/synced AppStore apps on them with iTunes.

So that's why I ended up upgrading the iPod to 2.2.1 (after it got stuck at 2.2) and downgrading the iPhone again from 2.2.1 to 2.2 (after it got stuck at 2.2.1). I think the Apple firmware has a fundamental flaw in the way it boots, trying to rebuild the SpringBoard application list which takes a long time and eventually times out, freezing the iPod/iPhone at the Apple logo screen. I searched online to see if there were any fixes, but none of them worked, so I ended up restoring both the iPod and iPhone.

It looks like things are working again now as I haven't gotten stuck at the Apple logo (I have removed most of the AppStore apps that I had downloaded though and did a reboot after every single package I installed with Cydia).

I also installed the latest beta version of Xwaves' xGPS software to see what had changed in the period I was gone.

There have been quite a lot of bug fixes and additions to xGPS. You can track the development roadmap here. The major new additions for version 1.2 are:
  • A first beta version of voice navigation in English is now implemented and the speech engine does a pretty good job of pronouncing the directions (see the first video above). It will need some future tweaks to correctly pronounce abbreviations (like Rd, Blvd, Pkwy, N, E, S W, slashes, etc), but other than that it does a very good job. It would also be nice if the user could set the distance(s) at which voice directions are given; they are currently set at about 400m and 20m before the next turn.

  • GPS coordinates are now accessible under the GPS settings menu. It would be nice if they could also be displayed in the bottom menu bar of the map view, similarly to the Google Earth application.

  • A Night Mode view is now available under the User Interface settings menu. Night Mode can either be manually enabled or automatically through a timer from 8pm through 7am. The timer is currently fixed, but will be fully customizable in a future release.

  • You can also have your iPhone/iPod play music at the same time when using the xGPS application. The voice directions will be played through the music (see the second video above). It would be nice to have the music fade in/out when there is a voice direction.

According to the roadmap, the next official release is scheduled for February 20, 2009. I am sure you are all looking forward to it.

Monday, February 2, 2009

GPS module working with iPod Touch 2G


With this post I am planning on regularly making posts on the blog again :-)

After a rough start of the year, today it is time for some great news!

Just last Saturday, January 31st, I got an email from Matt, an Australian customer who ordered the iGPS360 module a little before Christmas.

Matt has an iPod Touch 2G and ordered the iGPS360 module in anticipation of a jailbreak for the iPod Touch 2G, which was not available at the time he ordered.

Matt send me the above picture, showing the xGPS software running on his iPod Touch 2G. You can see the iGPS360 module in the upper right corner.

Matt used Redsn0w from the iPhone Dev Team to jailbreak his iPod Touch 2G. It is certainly not as easy a jailbreak as for the old iPod Touch and iPhone, but it certainly works as Matt's photo shows. For more information on how to jailbreak your iPod Touch 2G, please visit www.redsn0w.com.

The jailbreak is a tethered jailbreak, which means that you will need the assistance of a computer if you want/need to reboot your iPod Touch 2G for some reason.

Matt had upgraded the firmware on his iPod Touch 2G to firmware 2.2.1 before using the jailbreak. This thus also confirms that the iGPS360 module works on the new 2.2.1 firmware.

Matt has also posted his success of the jailbreak on iPodTouchFans, so if you are interested in seeing how many people are jailbreaking their iPod Touch 2G with Redsn0w and their success rate, take a look at that forum.

Matt, thanks for your feedback and great photo contribution!