ghtalpo / py_amazfit_tools

pack/unpack .bin for amazfit verge lite/gtr/gts
56 stars 53 forks source link

Help on GT2-mini #27

Open fedecarpi opened 3 years ago

fedecarpi commented 3 years ago

Hi @ghtalpo thank you so much for your contributions.

I was trying to extend this existing fork for GTS2 (https://github.com/Tnxec2/py_amazfit_tools/tree/GTS2) to GTS2-mini. But so far, I can't understand how to deals with bin and the HEX editors in order to know the internal structure of the binaries.

For the time being I'm using the provided Huami web tool to create some watchfaces but I really would like to contribute here.

Any suggestion will be appreciated! Thanks

PS: I was looking at this file: https://github.com/ghtalpo/py_amazfit_tools/blob/master/analysis.md but not sure how to start with the gts2-min bin files.

ghtalpo commented 3 years ago

Hi. @fedecarpi. I don't know about GTS2-mini's situation. Is there any working forks for GTS2-mini?

Anyway, here's suggestion.

  1. Unpacking - GTR2_Packer.exe is used for GTS2/GTR2 and respacker/resunpacker is for GTS/GTR. How about for GTS2-mini?
  2. Binary analysis - if you know the file structure of unpacked GTS2-mini's .bin file, it's quite easy, definitely. Unless, you need help from others or hacking firmware by yourself. If I were you, -if you can unpack them- I would compare lots of unpacked .bin files and try to find header structures first. that's all I can say now.

Good luck.

JulienMaille commented 3 years ago

@fedecarpi have you made any progress here? I'm new to this but I find quite surprising that we have unpacker for all GTR/GTS watches except for the GTS 2 mini. I'm willing to help too

JulienMaille commented 3 years ago

@fedecarpi Some initial support of GTS 2 Mini has been pushed here: https://github.com/JulienMaille/py_amazfit_tools/tree/GTS2 bin parsing works, so does image export, but now we need to complete the look up table of parameter descriptors.

JulienMaille commented 3 years ago

@Tnxec2 is there anything I can do to contribute? As said in PM, when looking at the network requests issued by the official editor, one can see some intermediate json, this may help speeding up the json mapping. image