Welcome guest, is this your first visit? Click the "Create Account" button now to join.
Results 1 to 10 of 117

Hybrid View

  1. #1
    Important User Garmin TransAlpin 2012 Pro
    Join Date
    Aug 2011
    Location
    France
    Posts
    272
    Rep Power
    195

    Default

    The part number contains 12 characters (example 010-D1160-00).
    It is coded in binary with 9 Bytes.

    So when you have your 9 bytes ( example 10 D4 40 56 14 91 0D 14 41 or more precisely 41 14 0D 91 14 56 40 D4 10 because you have to reverse the bytes order) , this represents 8x9 bits i.e. 72 bits.
    Group your 72 bits by 6 : so you have now 12 groups of 6 bits.
    Each group of 6 bits give you an integer between 0 and 2^6 - 1 i.e 63 .
    Add 32 to these values : you have now 12 integer between 32 and 95 : each of these integers give you a character of the part number (using ASCI coding)

  2.    Advertissements


  3. #2
    Master

    Garmin TransAlpin 2012 ProGarmin TransAlpin 2012 Pro GPSFranz's Avatar
    Join Date
    Sep 2010
    Location
    Germany
    Age
    41
    Posts
    51
    Rep Power
    80

    Default

    Quote Originally Posted by sherco40 View Post
    The part number contains 12 characters (example 010-D1160-00).
    It is coded in binary with 9 Bytes.

    So when you have your 9 bytes ( example 10 D4 40 56 14 91 0D 14 41 or more precisely 41 14 0D 91 14 56 40 D4 10 because you have to reverse the bytes order) , this represents 8x9 bits i.e. 72 bits.
    Group your 72 bits by 6 : so you have now 12 groups of 6 bits.
    Each group of 6 bits give you an integer between 0 and 2^6 - 1 i.e 63 .
    Add 32 to these values : you have now 12 integer between 32 and 95 : each of these integers give you a character of the part number (using ASCI coding)
    So they saved 3 bytes (a 12-character part number coded in 9 bytes).
    This looks like a lot of effort to save 3 bytes (in files that usually measure in hundreds of megabytes).
    What was the reason for all this effort?
    Are there any technical reasons?
    Did they believe that their coding scheme would not be discovered?
    Or what?
    (Scratching my head...)
    Oregon 450 and Mobile XT 5.00.20w on WM 6.5

    Avatar: Yellow-bellied Marmot (Marmota flaviventris - 'Gelbbauch-Murmeltier' in German).

  4. #3
    syzygy
    Guest

    Default

    Quote Originally Posted by GPSFranz View Post
    So they saved 3 bytes (a 12-character part number coded in 9 bytes).
    This looks like a lot of effort to save 3 bytes (in files that usually measure in hundreds of megabytes).
    What was the reason for all this effort?
    Are there any technical reasons?
    Did they believe that their coding scheme would not be discovered?
    Or what?
    (Scratching my head...)
    From what I can see, the main reason is indeed to save space, a 25% saving. By design, Garmin reserved some areas in their img header for future use and expansion. As time goes, these reserved areas gradually become defined and used. The 9-byte part number at offset 48 is just one example. It is obvious that you want to minimize the use of reserved areas as much as possible so there are more rooms left for the future.

  5. #4
    Important User Garmin TransAlpin 2012 Pro
    Join Date
    Aug 2011
    Location
    France
    Posts
    272
    Rep Power
    195

    Default

    Quote Originally Posted by syzygy View Post
    From what I can see, the main reason is indeed to save space, a 25% saving. By design, Garmin reserved some areas in their img header for future use and expansion. As time goes, these reserved areas gradually become defined and used. The 9-byte part number at offset 48 is just one example. It is obvious that you want to minimize the use of reserved areas as much as possible so there are more rooms left for the future.
    I totally agree with this analyse: Garmin wants to save space, not in the whole img but in the header.

 

 

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
  •