-
-
Notifications
You must be signed in to change notification settings - Fork 892
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
CTS is not working (for me) #21
Comments
I've also noticed that CTS does not work as reliably as I would like, and I'll have to investigate this (i'm a newbie in BLE programming). |
I can't find or identify pinetime device to pair either in nRF Connect or phone's BT settings. It looks like watch didn't advertises itself? However I can see "BLE" in top left of display. |
I tried using nRF Connect on Android (old 4.4 unfortunatelly), is synced but it's not correct e.g. ~now
|
Well, it's certainly a but in the software, and thank you for reporting it. I have to admin that I did not put a lot of effort in implementing and debugging BLE, and I (we?) will have to fix that in the future :) Here's something you can try: in main.cpp, in function SystemTask(), you can set the variable erase_bonds to true, and run the code. Then, set it back to false and try to connect and bond. |
I've managed to reproduce the sync'ed time that is not correct. Here are the logs:
Time coming from CTS:
Once it's converted in timepoint:
|
It’s great, because since your previous message I tried sync several times with either iOS or Android device and I was unable to leave 1970 :) |
I've just merged a lot of changes and this bug should be fixed. |
Sorry for late response, I gave a try, but I'm still stuck on not syncing anyway, and then I was on holiday... I'll try to try again :-D |
I tried 0.4.0 and today 0.5.0 but still I can't make CTS work. Pair/unpair works good with iPhone, Android phone and Debian notebook. But when I advertise CTS service from the phone, time is not synced to pinetime. |
I believe this is the problem, @darnel, and not JF's firmware. I can also not sync current time using nRF Connect on iOS and I haven't seen anyone who can. It works on Android though, and in GNU/Linux using this Python script. @JF002, syncing works fine for me. I think you can close this issue. |
I've made a lot of improvements on the BLE connectivity, and connection and communication looks far better now than in 0.4.x or 0.5.x. Hopefuly this issue has been fixed. Please reopen this issue or open a new one if you still have issues with BLE. |
I flashed application version 0.2.1 (dff0d74) and
nRF5_SDK_15.3.0_59ac345/components/softdevice/s132/hex/s132_nrf52_6.1.1_softdevice.hex
, but I can't make current time set on PineTime. I'm using nRF Connect on iPhone to advertise CTS.Even previous versions, manual flash or flash by
make
didn't change situation.Another project - RIOT - works. Did I miss something obvious? Thanks.
The text was updated successfully, but these errors were encountered: