dimaryaz / jdmtool

A command-line tool for downloading Jeppesen databases and programming Garmin aviation data cards aiming to be compatible with Jeppesen Distribution Manager.
Apache License 2.0
12 stars 2 forks source link

Support orange data card #13

Closed bemowski closed 2 months ago

bemowski commented 2 months ago

Closes: https://github.com/dimaryaz/jdmtool/issues/11

Tried to create a dataclass to encapsulate attributes of various memory cards.

Detect works:

jdmtool detect
Found device: Bus 001 Device 008: ID 0e39:1250
Firmware version: 20140530
Card inserted:
  IID: 0x89007e00
  Type: 16mb IFRW (WAAS) Orange
  Unknown identifier: 0x3c009000=

I was also able to download and verify:

jdmtool -v read-database db.bin
INFO:main:Log level set to DEBUG
Found device: Bus 001 Device 008: ID 0e39:1250
DEBUG:main:Detected card: MemoryCard(name='16mb IFRW (WAAS) Orange', iid=2298510848, memory_layout=[0, 1, 2, 3, 4, 5, 6, 7])
Detected data card: MemoryCard(name='16mb IFRW (WAAS) Orange', iid=2298510848, memory_layout=[0, 1, 2, 3, 4, 5, 6, 7])
Reading the database:  51%|████████████████████████████████████████████████████▎                                                 | 8.60M/16.8M [01:34<01:29, 91.4kB/s]
Truncating the file...
Done

file db.bin 
db.bin: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "GARMIN10", sectors/cluster 8, FAT  1, root entries 512, sectors 32768 (volumes <=32 MB), sectors/FAT 16, sectors/track 63, heads 255, hidden sectors 63, serial number 0x1102, label: "GARMIN AT  ", FAT (16 bit)

And write:

jdmtool transfer 0
Found device: Bus 001 Device 008: ID 0e39:1250
Detected data card: iid: 0x89007e00, type: 16mb IFRW (WAAS) Orange

Selected service:
  Garmin GNS 400/500 Series WAAS - NavData                              2408    2024-08-08 - 2024-09-05

Transfer to the data card? (y/n) y
Erasing the database: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████| 8.72M/8.72M [02:26<00:00, 59.4kB/s]
Writing the database: 100%|██████████████████████████████████████████████████████████████████████████████████████████████████████| 8.65M/8.65M [05:09<00:00, 27.9kB/s]
Verifying the database: 100%|████████████████████████████████████████████████████████████████████████████████████████████████████| 8.65M/8.65M [01:34<00:00, 91.5kB/s]
Writing new metadata: {2408~42323550}
Done