Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pebble-ios packet counter differences #92

Open
mpetruska opened this issue Feb 16, 2015 · 3 comments
Open

Pebble-ios packet counter differences #92

mpetruska opened this issue Feb 16, 2015 · 3 comments
Assignees

Comments

@mpetruska
Copy link
Contributor

After some time the packet counters seem to be misaligned in the pebble and ios app.

@mpetruska
Copy link
Contributor Author

The difference starts small, but grows with time linearly (in my approximation).
Setting the sampling frequency to 50Hz (from 100Hz) seems to reduce the effect to around half, so this seems to be directly affected by the number of data packets sent.

@mpetruska
Copy link
Contributor Author

It seems appMessagesReceiveUpdateHandler(...) sometimes gets data packets duplicated. Logging the hashValue of the received samples confirms this.

@mpetruska
Copy link
Contributor Author

After the quick patch (mpetruska@4912a59) , the counter seems to follow this formula exactly:

N(ios received) = N(pebble successful) + N(pebble timeout)
where N(x) means the number of packages for x.

It seems that in rare occasions pebble thinks a package is lost (does not receive ACK in time), but the iPhone app still receives the message successfully. However this occurs really rarely ( < 0.2% of packets in my observation).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant