SparkFun Forums 

Where electronics enthusiasts find answers.

Have questions about a SparkFun product or board? This is the place to be.
By MyBuddy
#98795
In all the years that the Nike+ Ipod deal been out there, has anyone published an algorithm or method to decode the Hex data coming out of the Reciever? I'm talking about this data:

FF 55 1E 09 0D 0D 01 70 C5 07 30 A5 FD AE FA C4 BF 32 0C 52 86 08 AF C9 EA 1C 56 31 CA B8 02 33 32 79
FF 55 1E 09 0D 0D 01 70 C5 07 30 A6 45 59 1F 91 DC 8E C4 FB 66 37 DB 010 9E 75 69 6F 99 08 C4 0A 95 BE
FF 55 1E 09 0D 0D 01 70 C5 07 30 A7 1C 94 06 1A 84 A8 010 9A 22 E8 F8 8B F9 67 44 0E 6B AB BB E0 C2 53

The only information I have found is more than two years old and very limited.

FF 55 : Apple Accessory Protocol header
1E : length of packet data (from mode through data before checksum)
09 : mode for Nike+
0D 0D : command
01 : unknown (start of parameter)
70 C5 07 30 : my transmitter’s ID
A5 : appears to be a counter, always starts with A, counts from 0-F
next 21 bytes : unknown

I know it's been done because there are websites like johnnyjogger.com that give you the distance and time data. Well Johnny is not responding to emails, and Google is not relinquishing anyone secrets either.

Have any of you guru's worked on this?
By dmitrygr
#132159
Assuming 010 means just 10, here you go:

dmitrygr@DGVPC:/COOL$ cat data_third_party2.txt
0D0170C50730A5FDAEFAC4BF320C528608AFC9EA1C5631CAB802333279
0D0170C50730A645591F91DC8EC4FB6637DB109E75696F9908C40A95BE
0D0170C50730A71C94061A84A8109A22E8F88BF967440E6BABBBE0C253
dmitrygr@DGVPC:/COOL$ gcc test.c -o /tmp/test && /tmp/test < data_third_party2.txt

Packet 1:
->packet is from device '4H745976VSX'
->payload: 06 02 DA 00 1C 01 00 23 00 00 22 01 00 7C 00 00 A7 EC 02 23 11
->on hours: 2
->Tc: 218
->walking steps: 284
->running steps: 290
-> lifetime walking miles: 35
-> lifetime running miles: 124

Packet 2:
->packet is from device '4H745976VSX'
->payload: 06 02 DA 00 1C 01 00 23 00 00 22 01 00 7C 00 00 A7 EC 02 23 11
->on hours: 2
->Tc: 218
->walking steps: 284
->running steps: 290
-> lifetime walking miles: 35
-> lifetime running miles: 124

Packet 3:
->packet is from device '4H745976VSX'
->payload: 06 02 DA 00 1C 01 00 23 00 00 22 01 00 7C 00 00 A7 EC 02 23 11
->on hours: 2
->Tc: 218
->walking steps: 284
->running steps: 290
-> lifetime walking miles: 35
-> lifetime running miles: 124

dmitrygr@DGVPC:/COOL$




--
dmitry grinberg
http://dmitry.co/