From c0681bc7576e64525eeae09f22ffad429730e359 Mon Sep 17 00:00:00 2001 From: Markus Birth Date: Sun, 14 Oct 2018 23:51:09 +0200 Subject: [PATCH] Prepare for GitHub. --- README.md | 16 ++++++++++++++-- gcd.py | 2 +- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7103d74..bfac4e1 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,14 @@ -http://www.gpspassion.com/forumsen/topic.asp?TOPIC_ID=115804&whichpage=1 -http://www.gpspassion.com/forumsen/topic.asp?TOPIC_ID=137838&whichpage=50 +GCD Parser +========== + +This is a parser for GCD files (firmware updates from a well-known manufacturer). + +It's in Python, so feel free to add cool new features and submit pull requests. + +Thanks to TurboCCC and kunix for your work. + +Most info from: + +* http://www.gpspassion.com/forumsen/topic.asp?TOPIC_ID=115804&whichpage=1 +* http://www.gpspassion.com/forumsen/topic.asp?TOPIC_ID=137838&whichpage=50 +* hours of looking at hex numbers diff --git a/gcd.py b/gcd.py index ed3f00c..9584e2e 100644 --- a/gcd.py +++ b/gcd.py @@ -169,7 +169,7 @@ with open(FILE, "rb") as f: #print(hexlify(payload).decode("utf-8")) #print(" > " + repr(payloadshort)) add_to_cksum(payload) - if ttype in [0x0505]: + if ttype in [0x0505, 0x02bd]: with open("fw_{:04x}.bin".format(ttype), "ab") as of: of.write(payload) i = i + 1