Page 1 of 161 1231151101 ... LastLast
Results 1 to 10 of 1605
Like Tree65Likes

Thread: Garmin jnx file format hacking

  1. #1
    WHITEDRAG0N is offline Sergeant First Class
    Join Date
    Sep 2010
    Posts
    119
    Thanks
    1
    Thanked 61 Times in 3 Posts

    Post Garmin jnx file format hacking

    PROJECT OUTLINE

    Brief intro

    JNX files are used in Garmin devices to show the raster maps available via BirdsEye service subscription. In the devices, these files reside in Garmin\BirdsEye folder on the internal disk or the memory card.

    JNX is so called tile format, i.e. a large raster map is divided into smaller rectangular pieces (tiles) to speedup the map rendering.

    This format is supported by the following Garmin devices: Colorado 300/400, Dakota 10/20, Edge 800, GPSMAP 62/78, Oregon 200/300/400/450/550.

    In the same devices, you can also use raster maps in Google Earth format (KMZ) - "Custom Maps".
    Custom Maps is a tile format just like JNX, but there are several important differences between these two:

    As you may see, the most significant drawbacks of JNX format are locking to a device, and impossibility to make a JNX file from some existing raster map you have.

    Goal of the research

    BirdsEye provides rather poor-quality satellite imagery for the number of territories. So, it would be really great to use JNX tile format for the scanned versions of old paper maps in modern Garmin devices. This is already possible with KMZ files, but their limitations make them practically useless for the large maps.

    When the JNX format is fully discovered, it would be possible to make a map converter from OziExplorer, GeoTIFF and other raster map formats to JNX.

    Results

    Unfortunately, it's currently impossible to achieve all the above-listed goals, since an asymmetric encryption is used to lock the JNX files.

    A more detailed JNX discription can be found here


    JNX FIRMWARE PATCHER:-

    A firmware patcher to remove the limitation on number of displayed demo-maps, and their max area has been created.

    FIRMWARE PACTHER VERSION 2.9

    THANKS TO WHITER FOR THE FIRMWARE PATCHER


    THIS PAGE IS RESERVED FOR ALL FIRMWARE PATCH UPDATES AND FINDINGS
    Last edited by WHITEDRAG0N; 30th September 2011 at 05:19. Reason: 2.7 patcher added
    cobaltblue, nznz, boreas and 6 others like this.


  2. #2
    WHITEDRAG0N is offline Sergeant First Class
    Join Date
    Sep 2010
    Posts
    119
    Thanks
    1
    Thanked 61 Times in 3 Posts

    Re: Garmin jnx file format hacking

    JNX TOOLS

    Brief intro

    A list of all the tools you may require when generating custom JNX maps

    MAPC2MAPC

    MAPC2MAPC WEBSITE


    - Load map images and calibrate them
    - Load calibrations in many different formats and Datums
    - View the calibrated map
    - Crop and rescale maps whilst preserving the calibration
    - Reproject maps to 'Plate Carre' (Equirectangular)
    - Rotate maps to true North
    - Fit maps to other projections and polynomial fit
    - Read and Write Garmin Custom Maps (KMZ) and Write Trekbuddy Tiles and JNX files
    - Read MrSID .sid and .jp2 files, GeoTiff and ECW files
    - Merge, join or overlay maps regardless of the scale or projection
    - Draw tracks onto maps in a variety of styles (PLT, TXF, KML, GPX)
    - Write several calibration formats
    - Write Mobile Atlas tile sets for Andnav, Back Country Navigator, Maverick, Orux and OSMtracker


    Will read and write MAP (Ozi), JPR (Memory-map, Fugawi), GMI (GPSTuner), MCD (GPSMAPOS, GPSGO), CAL (Pathaway), TFW (Mapyx/Quo), IMP(CompeGPS), Google Earth overlays as KML, KMZ. Will also read GUX (GPSU) and OKM (OKmaps) . Will invoke MrSIDDecode to decode MrSID files, will invoke FWTools to read GeoTiff and ECW files. Will handle different input datums but writes WGS84.

    BUILD 468 ALLOWS JNX PRODUCT ID TO SET AS A PREFERENCE


    32 BIT VERSION BUILD 468

    64 BIT VERSION BUILD 457

    MOBAT2JNX

    MOBAT2JNX WEBSITE

    MOBAT2JNX is a command line program to create multi-level JNX files form Mobile Atlas sets created as OSMTRacker format.

    VERSION 1030 ALLOWS to use jpegs directly without re-enconding them

    MOBAT2JNX VER 1027

    Please note that the firmwares released in March 2011 (i.e. version 2.93 for GPSMAP 62/78, version 4.16 for Oregon, 4.45 for Oregon x50, and 4.01 for Dakota) are not compatible with the JNX maps made in MAPC2MAPC before version 444 or MOBAT2JNX version 1007, will most likely cause the device hang on boot. To make these maps compatible with latest firmware versions use the JNX fixer tool

    JNX FIXER

    JNX SCALE

    JNX SCALE is a simple program to allow the Scale Factor - which controls when the map is displayed - to be changed.

    NEW VERSION ALLOWS JNX PRODUCT ID TO SET

    JNX SCALE

    JNX2KMZ

    JNX2KMZ INFO

    JNX2KMZ converts a JNX file to as many KMZ files as there are levels in the JNX.

    JNX2KMZ

    JNXMERGE

    JNXMERGE allows multiple JNX's to be MERGED together

    JNXMERGE


    JNX PRODUCT ID

    JNX PRODUCT ID is a simple program to allow the PRODUCT ID - which controls how maps are grouped on the gps - to be changed.

    JNX PRODUCT ID

    JNX CUSTOMIZER

    New change, now the utility detect if the jnx is old, and apply the fix if necessary.

    Unifying the 3 utilites (JNX SCALE,JNX PRODUCT ID,JNX FIXER) in one, with the possibility
    to change the description group even if the jnx file is already fixed.

    JNX CUSTOMIZER V 1.0.24


    QLandkarte GT

    QLandkarte GT WEBSITE


    QLandkarte GT is the ultimate outdoor aficionado's tool. It supports GPS maps in GeoTiff format as well as Garmin's img vector map format and Garmin's JNX raster map format. Additionally, it is the PC-side front end to QLandkarte M, a moving map application for mobile devices.

    Of course, QLandkarte GT will also run fine on small computers, such as so-called «netbooks». Even with small screens you can actually use QLandkarte GT on a 1024x600 netbook screen. And if your netbook happen to have a GPRS or UMTS mobile broadband modem, then you may even check things while on the move. At least when you have signal, otherwise «game over».

    QLandkarte GT 1.1.1

    MAP2JNX

    MAP2JNX INFO

    MAP2JNX WEBSITE

    Converts georeferenced raster map, recognized by GDAL library (for example geotiff), to JNX map.
    GDAL should be installed. GDAL is part of FWTools, which are installed together with QLandkarte GT on Windows OS

    If map2jnx.exe is copied into QLandkarte GT directory, it is possible to use it from graphical environment of QLandkarte GT. It allows to export any rectangular area selection of loaded raster map in JNX format.


    MAP2JNX VER 0.2.4 LINUX

    MAP2JNX VER 0.2.4 WINDOWS

    OTTS2JNX

    Besides being portable, in C, with no external dependences and console based (all important to me), it doesn't recompress JPGs. Leaving it here in case anyone else finds it useful despite its rough edges

    OTTS2JNX

    OTTS2JNX STATIC

    THANKS TO ROGER47 FOR MAPC2MAPC, MOBAT2JNX AND JNX SCALE WHITER FOR JNX FIXER AND MAP2JNX WINDOWS AND KIOZEN FOR QLandkarte GT AND MAP2JNX LINUX JAGMAGANA for JNX CUSTOMIZER


    THIS PAGE IS RESERVED FOR ALL JNX TOOLS

    IF YOU HAVE ANY TOOLS YOU WISH TO BE ADDED PLEASE CONTACT ME
    Last edited by WHITEDRAG0N; 5th March 2012 at 05:42. Reason: PAGE NOW RESERVED FOR TOOLS LIST
    Slava, oscarra, hard69 and 5 others like this.

  3. The Following 2 Users Say Thank You to WHITEDRAG0N For This Useful Post:


  4. #3
    clutchy is offline Lance Corporal
    Join Date
    Nov 2010
    Posts
    14
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Re: Garmin jnx file format hacking

    Quote Originally Posted by WHITEDRAG0N View Post
    Starting with what ties you birdseye images to your garmin well if you download a birdseye image it will insert a lock down code this code can be found at 58hex to 7bhex.

    If you have some one elese birdseye just remove there code and insert your own. When you load you GPS there image will now be allowed on your device.

    .

    Are you sure this is correct? The "lockdown code" that you refer too isnt always in that position, nor do i believe that it is a lockdown code. Each birdseye set that you download has a unique code there even if they are all for the same gps, and the offset isnt always at the same place. This code is also the name of the .jnx file if you look where they are stored.... (in xp it is at C:\Documents and Settings\username\Application Data\GARMIN\BaseCamp\JnxFiles)

    For example in my JnxFiles folder I have a file called e92151b5-bb68-456d-a3d6-18eed12a1e98.jnx ........at hex offset 58 to 7b I have this same data in ascii e92151b5-bb68-456d-a3d6-18eed12a1e98

    I have a different file called 91409979-58e8-47e3-87ba-b5ca4466e03a.jnx and it has this same data but in a slightly different ofset from 4c to 6f


    I do like the research you are doing, but I respectfully criticize your findings.

  5. #4
    WHITEDRAG0N is offline Sergeant First Class
    Join Date
    Sep 2010
    Posts
    119
    Thanks
    1
    Thanked 61 Times in 3 Posts

    Re: Garmin jnx file format hacking

    Hi Clutchy,

    I have attched a jnx file that was generated from my machine but i have removed the lock downcode.

    Please can you generate a jnx file on you machine and copy the lock down code from you generated file to my jnx file.

    Please then upload this your garmin and see if you get any errors.

    please report any findings
    Attached Files Attached Files

  6. #5
    Join Date
    Nov 2010
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Re: Garmin jnx file format hacking

    Can you upload a larger attachment .jnx file for me to test with? Using your method of .jpg extraction, all I get is a 5 x 1 pixel band of various shades of green. Not sure that I'm doing it right.

  7. #6
    WHITEDRAG0N is offline Sergeant First Class
    Join Date
    Sep 2010
    Posts
    119
    Thanks
    1
    Thanked 61 Times in 3 Posts

    Re: Garmin jnx file format hacking

    Just taken a look at the file again and it appears that there are 3 images in the tryme.zip example.

    The first image is displayed upto 1.2mile the next image is displayed upto 800ft and the file image is dispalyed below 800ft.

    The image you have extracted is most likely the one displayed upto 1.2mile try extracting the other and see what you get.

    Please bear in mind the example is 1 map tile.

    i am struggling at the moment to work how each tile is georefernced within the jnx file

  8. #7
    WHITEDRAG0N is offline Sergeant First Class
    Join Date
    Sep 2010
    Posts
    119
    Thanks
    1
    Thanked 61 Times in 3 Posts

    Re: Garmin jnx file format hacking

    looks like some on in russia is carrying out the sam research.... I have translated the research from russian using google translate.

    JNX

    Briefly about the format
    Files in JNX used in Garmin maps to display maps service BirdsEye.
    The main pluses JNX compared with maps Custom Maps (KMZ):
    (Seemingly) unlimited number of fragments of maps;
    multiple levels of detail;
    high speed display device map.
    A significant drawback is its size JNX rigid adherence to the device.


    The purpose of picking
    Since BirdsEye services from satellite imagery in Russia can not tolerate any criticism, really want to somehow accommodate the tile format for displaying JNX genshtabovskih and other scanned maps on the new devices Garmin, not to be tied for the loss of the format KMZ.
    If it is possible to fully understand how to make your own JNX and make arbitrary garminovsky navigator (with support JNX, of course) to work with these JNX, it will be possible to make converter card format OziExplorer format JNX.


    Internal Structure
    The information below is still very imprecise and are the result of a preliminary study. It is likely that dropped from consideration any important files region JNX.
    File format JNX can be divided into 5 parts:
    title;
    table with a description of levels;
    Service information loader maps;
    table describing the tiles;
    a set of tiles.
    Now a closer look at each of these parts.
    Note 1: All two-and four-byte fields below, using "Intel's" byte order, ie the least significant byte first, and then the older ones.
    Note 2: In all tables below, except for the description of the title, the bias will be relative to the beginning of the file, unless otherwise stated.


    1. Title
    Offset from the beginning
    Header Field Type Description
    0x00 int32 Apparently, the signature. In all JNXah in this field is kept value 0x00000003.
    0x04 int32 ID device for which makes the card. In the demonstration maps, this field is zero.
    0x08 4 int32 coordinates, which draws a card. Description of the system of coordinates, see below.
    0x18 int32 Number of levels of detail.
    0x1S 5 int32 Apparently, there is stored binding code to the device. The format of the fields is not yet known.

    On the coordinates used in the files JNX.
    Coordinates are stored as a landmark 4-byte integers. Two pairs of numbers describe the coordinates of two corners of cards (the importance of the sequence of angles is not yet clear). The first value in the pair is the latitude, the second - longitude.
    To obtain the coordinates of these integers must be divided by 0x7fffffff, and then multiply by 180.
    Example. Assume the file contains the coordinates of 0x1FCD7932, 0x1ADEBDDA. After conversion, the coordinates of N 44 ° 43'20 .81 ", E 37 ° 47'9 .80".


    2. Table describing the levels
    Number of levels of detail in the header specifies the number of elements in this table.
    Structure elements: the Offset from the beginning
    Table Field Type Description
    0x00 int32 Number of tile per level.
    0x04 int32 offset to the description of the first tile at the level.
    0x08 int32 Apparently, the scale at which shows the level of the tiles.

    As used and that the mean value in the field scale, it is not clear.
    In the JNX, I have seen the value of the field scale were as follows: 0x12A95 (76,437) at the first level, 0x12A9 (4777) on the second, 0x4AA (1194) or 0x255 (597) in third.


    3. Service information loader card
    This file is part of the JNX, apparently, is not used for displaying maps. Then keeps a list of URLs from which it downloads the individual tiles, as well as specified GUID maps and copyrights.

    4. Table describing tile
    Offset from the beginning
    Table Field Type Description
    0x00 4 int32 Coordinates single tile.
    0x10 int16 width of the image.
    0x12 int16 height of the image.
    0x14 int32 image size in bytes.
    0x18 int32 offset to the image.



    5. A set of tiles
    Tiles are the usual images in JPG, of which vykusheny markers SOI (ie, the initial two bytes of 0xFF, 0xD8).
    Most of the images have a resolution of 256 by 256 pixels.



    Until all.
    If you have any comments or additions to the format JNX, please write to the author.
    Also, I would highly appreciate if send are small (less than 5 megabytes) do not examples of demonstration files JNX.

  9. #8
    Whiter's Avatar
    Whiter is offline Second Lieutenant
    Join Date
    Dec 2010
    Location
    Siberia
    Posts
    259
    Thanks
    0
    Thanked 18 Times in 5 Posts

    Re: Garmin jnx file format hacking

    Quote Originally Posted by WHITEDRAG0N View Post
    looks like some on in russia is carrying out the sam research....
    That's my page.
    The translation above is not perfect, yet it's rather close to the original. Google Translate rocks
    I can make an English version of the same page on the site, if you need.

    I hope we can cooperate to break the JNX

  10. #9
    WHITEDRAG0N is offline Sergeant First Class
    Join Date
    Sep 2010
    Posts
    119
    Thanks
    1
    Thanked 61 Times in 3 Posts

    Re: Garmin jnx file format hacking

    Yes and english page would be nice. What about a template so we can tackle the parts we are missing

  11. #10
    Bill_clark is offline Corporal
    Join Date
    Dec 2010
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Garmin jnx file format hacking

    Hey! It interests me! I always use custom maps and I'm frustrated by the limit of 100 tiles.

    I developp for my pleasure (I have already developped a software for converting mp map file to kml file - see ) so if I can help it will be a pleasure for me.... sounds like it could be a good project for this winter! ;-)

    I will do some tests based on your observations...

    Bill.
    cobaltblue likes this.

Page 1 of 161 1231151101 ... LastLast

LinkBacks (?)

  1. 24th May 2012, 12:10
  2. 18th May 2012, 19:17
  3. 17th May 2012, 09:57
  4. 8th May 2012, 08:12
  5. 6th May 2012, 18:05
  6. 4th May 2012, 14:29
  7. 2nd May 2012, 19:17
  8. 1st May 2012, 14:07
  9. 30th April 2012, 17:47
  10. 29th April 2012, 21:27
  11. 28th April 2012, 21:14
  12. 28th April 2012, 21:09
  13. 28th April 2012, 13:28
  14. 18th April 2012, 11:44
  15. 18th April 2012, 08:47
  16. 18th April 2012, 05:33
  17. 10th April 2012, 08:35
  18. 9th April 2012, 21:34
  19. 7th April 2012, 16:39
  20. 5th April 2012, 18:04
  21. 5th April 2012, 15:14
  22. 2nd April 2012, 09:27
  23. 2nd April 2012, 07:24
  24. 28th March 2012, 08:53
  25. 27th March 2012, 16:41
  26. 23rd March 2012, 03:42
  27. 21st March 2012, 11:06
  28. 21st March 2012, 11:06
  29. 20th March 2012, 12:44
  30. 12th March 2012, 09:02
  31. 9th March 2012, 23:44
  32. 5th March 2012, 19:35
  33. 2nd March 2012, 18:52
  34. 29th February 2012, 07:13
  35. 22nd February 2012, 12:47
  36. 19th February 2012, 20:26
  37. 9th February 2012, 07:53
  38. Clix
    Refback This thread
    3rd February 2012, 20:30
  39. 26th January 2012, 15:03
  40. 26th January 2012, 13:00
  41. 25th January 2012, 06:46
  42. 23rd January 2012, 17:22
  43. 15th January 2012, 13:06
  44. 9th January 2012, 19:22
  45. 4th January 2012, 18:17
  46. 22nd December 2011, 00:51
  47. 14th December 2011, 08:22
  48. 12th December 2011, 14:29
  49. 8th December 2011, 10:18
  50. 3rd December 2011, 03:14

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •