cmaion / polar

A set of command line tools written in Ruby to interact with Polar watches and decode raw data files
89 stars 22 forks source link

Adjust timeout? #16

Closed jluttine closed 4 years ago

jluttine commented 4 years ago

I was syncing my V800 and it was syncing fine but suddenly got the following error:

lib/ruby/gems/2.6.0/gems/libusb-0.6.4/lib/libusb/dev_handle.rb:549:in `submit_transfer': error TRANSFER_TIMED_OUT (LIBUSB::ERROR_TIMEOUT)

I guess there was just so much to sync that it took so long that libusb timed out. Can I somehow adjust this timeout period so that it wouldn't timeout so easily? Or is there something that this polar tool could do to tell libusb that everything is fine, it's downloading just many many files. Or what do you think?

jluttine commented 4 years ago

It's also possible that the USB connection just failed for some reason..

jluttine commented 4 years ago

Hmm.. Seems to be timing out consistently after some time.

cmaion commented 4 years ago

Hi, this is usually due to a bad USB connection/dirty contacts. My V800 does the same from time to time, the charging port/clamp mechanism is not to totally bullet proof in my experience (especially when it comes to data transfer, charging is less sensitive). Disconnect the watch, give the contacts a quick clean, clamp it again.

jluttine commented 4 years ago

Ok, thanks!