Prepare for GitHub.
This commit is contained in:
16
README.md
16
README.md
@ -1,2 +1,14 @@
|
|||||||
http://www.gpspassion.com/forumsen/topic.asp?TOPIC_ID=115804&whichpage=1
|
GCD Parser
|
||||||
http://www.gpspassion.com/forumsen/topic.asp?TOPIC_ID=137838&whichpage=50
|
==========
|
||||||
|
|
||||||
|
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
|
||||||
|
2
gcd.py
2
gcd.py
@ -169,7 +169,7 @@ with open(FILE, "rb") as f:
|
|||||||
#print(hexlify(payload).decode("utf-8"))
|
#print(hexlify(payload).decode("utf-8"))
|
||||||
#print(" > " + repr(payloadshort))
|
#print(" > " + repr(payloadshort))
|
||||||
add_to_cksum(payload)
|
add_to_cksum(payload)
|
||||||
if ttype in [0x0505]:
|
if ttype in [0x0505, 0x02bd]:
|
||||||
with open("fw_{:04x}.bin".format(ttype), "ab") as of:
|
with open("fw_{:04x}.bin".format(ttype), "ab") as of:
|
||||||
of.write(payload)
|
of.write(payload)
|
||||||
i = i + 1
|
i = i + 1
|
||||||
|
Reference in New Issue
Block a user