Tigge / openant

ANT and ANT-FS Python Library
MIT License
174 stars 80 forks source link

Change to make setting the Time work on vivofit #11

Closed balu- closed 9 years ago

coveralls commented 9 years ago

Coverage Status

Coverage increased (+1.4%) to 49.01% when pulling 3a4c3fa87d7f790d8b8ef51564fa44f85cb777a7 on balu-:time into 450076140e39dcf4741d5e8b6e63ac32cb463b8c on Tigge:master.

Tigge commented 9 years ago

(See discussion in Tigge/antfs-cli#130)

Tigge commented 9 years ago

The failed tests are my fault here, forgot that Python 2 treats 06 as octal values (which doesn't matter here really but should be fixed). Python 3 however uses the 0o06 notation and throws and error for values such as 06 (which is good).

Tigge commented 9 years ago

https://github.com/Tigge/openant/commit/911137406852c438c0fdfea35d3eab964f5d511a and https://github.com/Tigge/openant/commit/650696f1d1c8fbb26669b2318d1e36cefbdd89bf are now merged to openant. Thank you!

AndreasPapageorgiou commented 8 years ago

Hi Tigge,

Using ba4c276 on vivofit: even though the time appears to be set, with no issues

Authenticating with vívofit 
 - Passkey: OK
 - Set time: OK

the time does not change on the actual device. Any ideas? Thanks

psukys commented 8 years ago

I've noticed that the firmware for vivofit is constantly updating, thus I guess that might also be a problem in communication with vivofit?

Tigge commented 8 years ago

@psukys The standard shouldn't change so I don't think that is the problem. Unfortunately I don't have a Vívofit so I'm unable to test this. @balu- reported some success in https://github.com/Tigge/antfs-cli/issues/130#issuecomment-89877480, but it seems it is not working anymore?

If someone could supply a USB log, from a Windows machine (or VM with the same) where setting the time on a Vívofit work, that could help me track down what is going on.

psukys commented 8 years ago

@Tigge I've got a Win10 VM, although I'm not familiar with USB logs for Windows. Is there a ready log/program to receive the log/guide to receive the log?

Tigge commented 8 years ago

@psukys On a VM you could probably do the logging on the host (Linux) side. I haven't tried it but usbmon and Wireshark should work well: https://wiki.wireshark.org/CaptureSetup/USB.

On VMWare there are built in USB logging: http://esec-lab.sogeti.com/posts/2011/04/06/sniffing-usb-traffic-with-vmware.html. For VirtualBox I'm not sure, but the first method should work still.

psukys commented 8 years ago

Alright, I did logging with Wireshark on a simple sync. Attached the logs in wireshark format (and plaintext too) simple sync.txt simple sync.pcapng.gz