IMG2GPS - Replacing primary mapping on Garmin 2720

Alternative software for loading maps into your GPS

Moderator: mdipol

Re: IMG2GPS - Replacing primary mapping on Garmin 2720

Postby TweakHanz » Tue Jan 13, 2009 10:25 pm

If for some reason you don't know the MapID of your installed mapset, you can use the tool MapSetToolkit: http://cypherman1.googlepages.com/
BMW R1200RT
StreetPilot 2720/2730 (firmware 7.20), City Navigator Europe NT 2009 / North America NT 2009, Mapsource 6.14.1
User avatar
TweakHanz
 
Posts: 4
Joined: Tue Jan 13, 2009 8:47 pm
Location: Amersfoort, The Netherlands

Sign up for Wanderlust membership or view your account details

Re: IMG2GPS - Replacing primary mapping on Garmin 2720

Postby Chopper Dad » Wed Jan 14, 2009 9:16 am

This is absolutely amazing, Hans! I had stumbled across the same Dutch forum-post a while back, and just yesterday evening had PM'd bumpkin to let him know that there really IS a solution out there! And here you go, beating me to the punch! Bravo!

And for anyone wondering, this DOES work exactly as Hans has described. I've gone so far as to take my U.S. SP2720 (with old CN NA NT v8 maps) and successfully copied the full CN EU NT 2009 mapset to it, then successfully reverted to CN NA NT 2009. I've even experimented -- successfully -- with combining portions of multiple maps into one 'gmapprom.img' file before uploading into the device, though whether you put the supplemental maps into the 'gmapprom.img' primary image or the 'gmapsupp.img' secondary image is essentially irrelevant, other than making them non-overwritable with subsequent uploading of new 'gmapsupp.img' image files, of course. A 'gmapprom.img' image consisting of the entire EU mapset and a large swath of the U.S., is one in which some might be interested, for example.

If you do decide to combine multiple mapsets into one 'gmapprom.img' image file, use the following line, which eliminates the application checking to see that you have a valid unlock code for the GPSr entered into Mapsource:
C:\Garmin\WebUpdater\WebUpdater.exe /upload_file rgn=49 path=C:\Garmin\gmapprom.img -autorun usb /i
You still need to have a valid unlock code (or codes) compiled into the 'gmapprom.img' image file, but you don't need to have WebUpdater check that for you if you're certain the image file was properly created. The only reason to have it do so is as a confirmation for you so that you don't spend an hour or two uploading an image file that does not contain the proper unlock code(s). It's for your convenience, not Garmin's protection.

By the way, Hans, it appears that the rgn 49 value refers to a memory region within the GPSr.

In order to make things even easier and error-free, I've simply created a couple of batch files to do the job, each containing various permutations of the command line you've provided, as follows:
SP2720_Update_CNEUNT2009.bat
(contains the following command: C:\Garmin\WebUpdater\WebUpdater.exe /upload_file rgn=49 path=C:\Garmin\gmapprom.img -autorun usb /unlock_check fid=378 pid=1 /i)

SP2720_Update_CNNANT2009.bat
(contains the following command: C:\Garmin\WebUpdater\WebUpdater.exe /upload_file rgn=49 path=C:\Garmin\gmapprom.img -autorun usb /unlock_check fid=325 pid=1 /i)

(For those who don't know, a batch file is simply a text file containing the command string(s) you want, but the '.txt' has been replaced with '.bat'. Try it! You'll like it! Be sure to use a text editor, not a word processor to create these files!)

Then, stored in my 'C:\Garmin\' folder, I've got copies of the afore-mentioned 'gmapprom.img' files for easy access. When not actively uploading one of them, I leave them named as follows, deleting the addendum to the file name immediately prior to upload:
gmapprom.img.CNEUNT2009
gmapprom.img.CNNANT2009

In order to start an upgrade, just be certain that the desired image file has been renamed to 'gmapprom.img' (without the '.CNXXNT2009' addendum) and double-click the appropriate batch file. No need to open a DOS window first... the batch file will do it for you, and also close it when the upgrade is done. Really, really nice to avoid error-prone typing each time you want to do this. And now that you can, you will want to play around a bit!

Below, please see WebUpdater's various command line options explicity spelled out. I stumbled across this gem when I inadvertently mis-typed something in this command on one occasion, and WebUpdater burped and presented me with this very interesting piece of documentation.

Usage: WebUpdater may be run with the following options:
<pathname> - Name of file to send to the unit
[/i] - WebUpdater should be run in installer mode.
[/k] - WebUpdater should keep running after a successful transfer.
[/autorun usb|serial] - WebUpdater should autodetect a USB or serial device and begin transfer immediately.
[/checksum_check rgn=<rgnnum> chk=<chksum>] - After transferring data to the region specified, WebUpdater will request the unit to checksum this region.
[/unlock_check fid=<familyid> pid=<productid>] - Before transferring data, WebUpdater will ensure that the user has unlock codes for the given family and product.
[/sacrifice_maps rgn=<rgnnum>] - WebUpdater will ask the unit if <rgnnum> is large enough for the data it will receive. If not, MapSource maps will be erased to make room.
[/offline path=<location of Package.XML>] - WebUpdater will perform the update using Package.XML instead of the Garmin server.
[/upload_file rgn=<rgnnum> path=<location of img file> -autorun usb|serial] - Performs image transfer.
[/offline path=<location of update files> -autorun usb|serial] - Performs all updates in the given folder.


Again, thank you very much, Hans, for an incredibly useful and amazingly-timed post! (Have you been reading my mind???? Oh my GOD!!! PLEEZ DON'T CALL THE COPS ON ME!!! ) :D

Regards-
CD
Last edited by Chopper Dad on Thu Jan 15, 2009 8:17 pm, edited 1 time in total.
Chopper Dad
 
Posts: 10
Joined: Tue Jan 13, 2009 5:32 am

Re: IMG2GPS - Replacing primary mapping on Garmin 2720

Postby bumpkin » Wed Jan 14, 2009 10:13 am

Thank you both very much. A big coincidence that you both found the Holy Grail and contacted me on the same day. A large virtual beer to the both of you Image

Following Hans' instructions I successfully changed my US import 2720 to a full European version last night. OK, it still has the Americas base-map but this is easily resolved be using this free 3rd party base-map.

Whilst the base-map above isn't routeable, like the Garmin one, it is used when showing the calculated route preview and when zoomed out beyond a certain altitude. Not essential by any means but a nice touch. I didn't think to combine it with my copy of City Nav in the 'gmapprom.img' file like Chopper Dad mentions above but uploaded it to the 'gmapsupp.img' instead. I'll run the process again when I have the time as it's far neater to have the basemap stored safely within the relatively undeleteable 'gmapprom.img'. Took about 3.5 hours to complete as I had to write to my pen drive, rename and then write to the GPS, virtually all of which can be done unattended.

CD, thanks also for the extra info regarding the bat files and command line options for Webupdater, a helpful addition to this thread.

Having asked this question in numerous other places I'll be posting there and pointing to this thread so that others in a similar situation can benifit from this.
Chas
Garmin i3, Quest and SP 2720 with GMT10
VFR800 VTEC
bumpkin
 
Posts: 30
Joined: Tue Apr 15, 2008 8:44 am

Re: IMG2GPS - Replacing primary mapping on Garmin 2720

Postby Chopper Dad » Wed Jan 14, 2009 1:47 pm

Something else that may be of interest to many is this (new executable for MapSource v6.13.7):
http://thepiratebay.org/torrent/4093233 ... pecial.zip

Or, this (new executable for MapSource v6.14.1):
http://thepiratebay.org/torrent/4318939 ... pecial.zip

Or, this (new executable for MapSource v6.15.3):
http://thepiratebay.org/torrent/4656991 ... .3_Special

What are these? Well, let me try to explain...

As you know, the last step in the MapSource process of building a new 'gmapsupp.img' file requires you to open the 'Send to Device' dialog and specify a location to which the new image file will be compiled. MapSource scans your available drives and then makes available as a destination any Garmin GPS receivers installed, any USB thumb drives installed, any SD cards installed (by way of a Reader/Writer device), etc. MapSource, for reasons I don't comprehend, does <NOT> allow you to select one of your hard drives as a destination. Only Garmin GPS receivers, thumb drives and SD cards.

Why is that a problem? Well, generally those devices are low-speed devices and are incapable of accepting data from MapSource in a timely fashion; they become the bottle-neck in the compilation process. MapSource is capable of compiling the 'gmapsupp.img' image file much faster than the GPSr, thumb drive or SD card can accept it. This isn't the case with a hard drive, of course; the hard drive's quite fast enough to give MapSource "a run for it's money", but Garmin has chosen not to allow you to select one of your local hard drives as a destination in this process.

So what are the above linked MapSource Special files? These are re-compiled MapSource executables that resolve this issue, allowing you to see your local hard drives in the above-mentioned destination-selection process. Instead of compiling to a thumb drive or SD card at a snail's pace, then copying the completed image file over to your hard drive (another time sink), you may now compile directly to your hard drive at comparably blazing transfer rates.

So what do you do? Well, I strongly prefer to run MapSource version 6.13.7, as 6.14.1 is said to be agonizingly slow on older PCs, but you can choose whichever you prefer. In my case, I downloaded -- by way of a torrent client -- the new executable referenced in the upper link, and after virus-scanning it, unzipped it. That left me with a file called 'MapSource.exe'. At that point, I copied it directly into my MapSource installation folder at C:\Garmin\MapSource\, but only after re-naming the original MapSource.exe contained therein to MapSource.exe.original. Remember, you must be running the same version of MapSource as the executable that you are attempting to use! Don't copy a new "special" version 6.13.7 executable into a MapSource v6.13.6 installation!

I've been using these "special" executables for quite a number of months, and I love 'em! This allows me to compile new 'gmapsupp.img' files directly into my C:\Garmin\ folder on the first pass, and at a much faster rate. You, too, will love the freedom this little tool brings you!

Regards-
CD

P.S.- I had nothing to do with creating these gems, but I am very thankful someone did! Bravo to MyRevel!
Last edited by Chopper Dad on Mon Jan 19, 2009 5:46 pm, edited 1 time in total.
Chopper Dad
 
Posts: 10
Joined: Tue Jan 13, 2009 5:32 am

Re: IMG2GPS - Replacing primary mapping on Garmin 2720

Postby TweakHanz » Wed Jan 14, 2009 5:11 pm

Here another virtual beer for Chopper Dad: Image The information about the WebUpdater commandline options is just where I was looking for. Your last post about the MapSource executables gives also very usable info, nice homework you did!

My part in all of this is very little, I'm no more than a messenger; 'Scheurneus' on the Dutch forum did the thinking and was the first one I know who had the guts to do the trick and be kind enough to share this info with us.

So, we're now one big happy 'replacing-primary-mappings-family' I think :D Everybody a lot of fun with their renewed and amazingly improved StreetPilot :wink:
BMW R1200RT
StreetPilot 2720/2730 (firmware 7.20), City Navigator Europe NT 2009 / North America NT 2009, Mapsource 6.14.1
User avatar
TweakHanz
 
Posts: 4
Joined: Tue Jan 13, 2009 8:47 pm
Location: Amersfoort, The Netherlands

Re: IMG2GPS - Replacing primary mapping on Garmin 2720

Postby bumpkin » Wed Jan 14, 2009 5:31 pm

Chopper Dad wrote:Something else that may be of interest to many is this (new executable for MapSource v6.13.7)

CD, hope you're not driving home today. Have another Image

Just created my City Nav 'gmapsupp.img' file again but incorporating the Geodude European base-map. Using the modified Mapsource executable the indexing took as long as usual (about 25 minutes) but the writing took less than 5 minutes! This speeds the whole process up greatly. Will still have to endure the 1.5 hour write to my 2720 but all the same it's a great improvement.
Chas
Garmin i3, Quest and SP 2720 with GMT10
VFR800 VTEC
bumpkin
 
Posts: 30
Joined: Tue Apr 15, 2008 8:44 am

Re: IMG2GPS - Replacing primary mapping on Garmin 2720

Postby bumpkin » Thu Jan 15, 2009 1:08 am

Chopper Dad wrote:By the way, Hans, it appears that the rgn 49 value refers to a memory region within the GPSr.


Looks like you're right. Before writing my latest 'gmapprom.img' to my GPS I thought I'd try loading the routeable World basemap from the from the iQue 3600 overwriting the 'gmapbmap.img' file using a suitably amended comand line. This seemed to overwrite the City Nav Europe that I put on last night. The map was there and routable, I plotted a route from the UK to Cape Town. However, I eventually resorted to uploading my combined City Nav and Geodude European basemap which works as expected. This overwrote the World basemap.

Not brave enough to try this using and randomly selected rgn number, anyone have suitable knowledge or reference on this?

I really should stop tinkering... never 100% happy until it's too late... :roll:
Chas
Garmin i3, Quest and SP 2720 with GMT10
VFR800 VTEC
bumpkin
 
Posts: 30
Joined: Tue Apr 15, 2008 8:44 am

Re: IMG2GPS - Replacing primary mapping on Garmin 2720

Postby urrterrible » Thu Jan 15, 2009 5:36 am

THANKS for the update!!! I will try this next week and post my results. Nothing like the command line sometimes!!!!! Hell YEA
urrterrible
 
Posts: 3
Joined: Fri Apr 18, 2008 4:59 am

Re: IMG2GPS - Replacing primary mapping on Garmin 2720

Postby bumpkin » Thu Jan 15, 2009 9:46 am

Just to calarify, for those wanting to try this, what I've done so far:

Both Hans' and Chopper Dad's instructions are all valid from my experience. I've used both methods:

1/ First time around just loading the entire tile set for City Nav Europe. This first deleted the US mapping which, without the install DVD I'll never see again (it was one of the early US ones that only had preloaded mapping, no great loss), then proceeded to load the European mapping which took a good 1.5 hours. I then loaded the Geodude basemap by uploading this from Mapsource to the supplementary memory. Result, a fully functioning European 2720.

2/ I then thought, how about using the Garmin World basemap from the iQue? This is routeable unlike the Geodude basemap and covers most of the planet. Further research showed that apparently there was a file on my GPS called 'gmapbmap.img' which contains the basemap. Seeing as, on my GPS, the basemap is of the US then I thought this was disposable (especially as I no longer have any US detail mapping). Trying to load this, however, caused a problem in so much as the area of the 2720's memory was the same as that occupied by the European mapping loaded in 1/ above. It loaded and worked, I plotted an overland route from the UK to Cape Town, but the European mapping was gone but the US basemap is still there. The rgn number as part of the command line apparently (according to CD) dictates the memory location, I don't really want to dabble with that as I risk overwriting the firmware or something else that would convert my sat nav into a paper weight. If I could find the rgn location of the installed 'gmapbmap.img' file I'd probably have a go.

3/ To resolve the removal of my new full European mapping in step 2/ above and in the light of Chopper Dad's suggestion re. loading more than one mapset into the primary mapping, I combined City Nav Europe and the Geodude Euro basemap (using CD's modded Mapsource.exe to write to the HD, much quicker). This uploaded to the 2720 using the command line without the unlock check and now works fine. The Geodude basemap is now locked away with the primary mapping and I won't need to re-upload it again if I write anything to the supplementary memory as I had to previously.

A routeable World basemap would be nice though... Will have to keep looking out for that one. Unfortunately you can't load this into Mapsource otherwise loading it onto the 2720's supplementary memory would be easy. I tried a few different tools to try and do this but to no avail.

UPDATE - I now have a routeable World basemap, extracted the basemap file from here, renamed it to 'gmapsupp.img' and sent it to my 2720 using IMG2GPS. If I load any maps via Mapsource I'll loose this so it's a sort of fix. Sucessfully plotted a route from UK to Shanghai.
Chas
Garmin i3, Quest and SP 2720 with GMT10
VFR800 VTEC
bumpkin
 
Posts: 30
Joined: Tue Apr 15, 2008 8:44 am

Re: IMG2GPS - Replacing primary mapping on Garmin 2720

Postby Chopper Dad » Thu Jan 15, 2009 6:52 pm

Very interesting...

That's the same basemap (if file size is any indication) that I pulled off my son's Nuvi 370 for use in one of my NA-only units (which I intended to use in the EU by means of CNEUNT2009 on SD card). I like this basemap very much, as it covers not only NA and EU, but SE Asia / Australia-NZ, as well.

From what I gather, you are able to successfully use that basemap simply by renaming it as 'gmapsupp.img' and uploading into the unit. Interesting... :)

You're correct, of course, in your observation about having to be careful not to overwrite it by uploading another 'gmapsupp.img' when you want additional maps, but now that we know how to combine all detail maps into one 'gmapprom.img' by way of MapSource and get them into the device by way of the methodology described in the Dutch forum posts that Hans described, that looks like it won't be much of a problem. The only nuisance I see is that additional maps will require a full 1.5 or 2.0 hours as you upload a newly-compiled 'gmapprom.img', but it seems like a small price to pay for what you're getting! :)

Regards-
CD

P.S.- I'm only speculating about the rgn 49 referring to a memory location within the device; I have no concrete knowledge either way.

UPDATE: I should note also that one does not actually need MapSource to create compilations of multiple mapsets. I've successfully used Gmaptool to do this any number of times, and it works quite well. This way, should you not have a desired mapset installed in MapSource, but in a 'gmapsupp.img' or 'gmapprom.img' file only, you can easily combine multiple already-compiled image files into one larger 'gmapprom.img' file and then upload to the device by way of WebUpdater in command-line mode. Just be sure to have the appropriate unlock codes for each desired mapset available to you; they can be added thru Gmaptool either before, during or after the multiple-image combining operation.
Chopper Dad
 
Posts: 10
Joined: Tue Jan 13, 2009 5:32 am

Re: IMG2GPS - Replacing primary mapping on Garmin 2720

Postby TweakHanz » Sat Jan 17, 2009 3:21 pm

If you (like me) use different desktops or laptops, there is a possibility to make your batchfiles more 'portable'.
On my desktop PC I have all the Garmin files on F:, on my laptop they are installed on D:

So I made a folder in the ..\Garmin map and named it "Replace Mapset". In that folder i've put a folder called "Upload", and a folder called "WebUpdater"
In ..\Garmin\Replace Mapset\Upload I put the gmapprom.img
In ..\Garmin\Replace Mapset\Webupdater I put the files WebUpdater.exe and WebUpdater_Lang.dll
The batchfiles are stored in ..\Garmin\Replace Mapset

My "Replace_CNEUNT2009.bat" looks like this:
Webupdater\WebUpdater.exe /upload_file rgn=49 path=Upload\gmapprom.img -autorun usb /unlock_check fid=378 pid=1 /i

So, no driveletters, you can use this setup on any drive, as long as you copy the complete ..\Replace Mapset folder and its subfolders.
BMW R1200RT
StreetPilot 2720/2730 (firmware 7.20), City Navigator Europe NT 2009 / North America NT 2009, Mapsource 6.14.1
User avatar
TweakHanz
 
Posts: 4
Joined: Tue Jan 13, 2009 8:47 pm
Location: Amersfoort, The Netherlands

Re: IMG2GPS - Replacing primary mapping on Garmin 2720

Postby Chopper Dad » Sat Jan 17, 2009 11:20 pm

I like it !!!

I don't do much map work from my laptop, but I do have a couple of desktops side-by-side in my home office so that I can devote one to this project or that, while the other is available for other things. I just love my KVM switch! :D Anyway, I like your idea... a lot!... and I've implemented it on my two desktops exactly as you have described. Thanks for the great idea!

Regards-
CD
Chopper Dad
 
Posts: 10
Joined: Tue Jan 13, 2009 5:32 am

Re: IMG2GPS - Replacing primary mapping on Garmin 2720

Postby Chopper Dad » Sun Jan 25, 2009 2:27 pm

It has been reported in another forum that some folks have had difficulty with this procedure failing with only a few percent left to go. The problem has been determined to be that without erasing their secondary mapset, their new (and larger) primary mapset hasn't enough room to be loaded. This will not be a problem for most people, but rather only those with a large secondary mapset installed.

An easy solution is to remove the secondary mapset altogether with Sendmap20's erase command: sendmap20 -e

Or, if you prefer a GUI, you can, of course, access that same funtionality by way of IMG2GPS or the new GUI that's been built into the latest version Sendmap20. Just look for the Erase Maps in GPS button, which only erases secondary maps, not your primary maps; primary maps will be erased automatically by WebUpdater when you initiate the upload process discussed earlier.

Download the latest version of Sendmap20 here: http://cgpsmapper.com/download/sendmap20.zip
(You'll only need to extract the Sendmap20.exe file from the archive; place it in a convenient location; I like to put a copy in my C:\Garmin folder)

What I have started doing to eliminate any potential problem of the update failing (due to a large secondary mapset) is to place a copy of Sendmap20.exe into my C:\Garmin folder, then using a new 2-line BATCH file as follows:

C:\Garmin\Sendmap20.exe -e
C:\Garmin\WebUpdater\WebUpdater.exe /upload_file rgn=49 path=C:\Garmin\gmapprom.img -autorun usb /i

In other words, I create a new text file just as outlined in earlier posts, but it contains the 2 lines above, rather than just the single line with the WebUpdater command. The new text file gets re-named to SP2720_Update.bat or something similar and, when run, first uses Sendmap20.exe to erase your old secondary mapset before WebUpdater is called to replace your primary mapset. In this way, you eliminate the potential for failure due to the secondary mapset occupying too much internal memory space.

Enjoy!
Chopper Dad
 
Posts: 10
Joined: Tue Jan 13, 2009 5:32 am

Re: IMG2GPS - Replacing primary mapping on Garmin 2720

Postby bumpkin » Sun Jan 25, 2009 5:26 pm

Chopper Dad wrote:It has been reported in another forum that some folks have had difficulty with this procedure failing with only a few percent left to go. The problem has been determined to be that without erasing their secondary mapset, their new (and larger) primary mapset hasn't enough room to be loaded. This will not be a problem for most people, but rather only those with a large secondary mapset installed.

Good point.

As I'd previously used practically all of the secondary storage space for the bits of Europe I could fit in there I just uploaded, using Mapsource, a tile from the North Sea (NORDZEE 1) which is all of 57KB. This overwrote the existing secondary mapping and freed up the space allowing me to install the whole of City Nav NT Europe 2008 into the primary space replacing the slightly smaller City Nav NT North America v7 without a hitch.
Chas
Garmin i3, Quest and SP 2720 with GMT10
VFR800 VTEC
bumpkin
 
Posts: 30
Joined: Tue Apr 15, 2008 8:44 am

Re: IMG2GPS - Replacing primary mapping on Garmin 2720

Postby Chopper Dad » Mon Jan 26, 2009 4:07 am

bumpkin wrote:As I'd previously used practically all of the secondary storage space for the bits of Europe I could fit in there I just uploaded, using Mapsource, a tile from the North Sea (NORDZEE 1) which is all of 57KB. This overwrote the existing secondary mapping and freed up the space allowing me to install the whole of City Nav NT Europe 2008 into the primary space replacing the slightly smaller City Nav NT North America v7 without a hitch.


Yes, your solution works quite well, and I thought of doing the same, but I'm a stickler for "cleaning out the cobwebs" and I just hate having unnecessary bits and pieces lying around, especially in my Garmin's "Detail Maps" menu! So when I realized that Sendmap20 would sweep away all those "cobwebs", I was ecstatic! Call me crazy... or silly... whatever you like, but I really, really, really HATE clutter! :) :) :)
Chopper Dad
 
Posts: 10
Joined: Tue Jan 13, 2009 5:32 am

Sign up for Wanderlust membership or view your account details
PreviousNext

Return to Img2Gps

Who is online

Users browsing this forum: bumpkin, Google Adsense [Bot] and 0 guests