Gadgetbridge #2062
Replies: 45 comments
-
Posted at 2019-12-04 by @gfwilliams There is, but it's not online yet. I'll let you know when I have something up :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-12-17 by Andrewmk I've managed to compile the new version (0.40) of Gadgetbridge using the instructions here https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Developer-Documentation#building-and-installing-the-gadgetbridge-apk then loaded the .apk to my phone. My query is what do I need turned on in the watch settings to make it work? Notifications only seem to come through on the watch if I have both BLE and Programmable set to On and leave the watch in 'Connectable' state. If I turn off Programmable then the notifications don't appear but after sending 5 or 6 of them to the watch I get an error message at the bottom of the screen about a buffer full error. It's like the messages are being sent to the watch but not read by anything. So do I need the watch to be 'Programmable'? That seems rather risky as there doesn't seem to be any security around the pairing process - no PINs displayed or requested. The docs here https://www.espruino.com/Gadgetbridge suggest that Bangle.js should interpret the incoming messages in a special way and it's only on other Espruino REPLs that the commands execute a 'GB(...)' function. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-12-18 by @fanoush
The documentaion does not mention it is in any way special so I am guessing you need it 'programmable' state as it is just a call of GB() method over ordinary javascript console. Feels a bit insecure but there can be some whitelist implemented in future, there were some examples here previously - basically you hook few lines of your code into 'on connect' event and disconnect when device is not on allowed list. So you could perhaps have some 'learning mode' when you would allow connections ad learn mac addresses of allowed devices and then switch in menu to restricted mode to allow only previously learned predefined list. Of course it could be also done over special service quite easily but that would need changes in gadgetbridge and other software too - the nordic uart service is already supported in some software out of box (like e.g. DroidScript or some Arduino android apps). |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-12-29 by Andrewmk Gadgetbridge have released the new version 0.40 with initial bangle.js support: https://f-droid.org/packages/nodomain.freeyourgadget.gadgetbridge/ Andrew |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-12-29 by Ryzokuken I installed the Gadgetbridge application from F-Droid (0.40.0) and the Gadgetbridge app for Bangle.js. I cannot manage to connect my phone with the Bangle.js, even though I went to the application on my watch and clicked "On" in the "Find Phone" menu multiple times. Am I missing something here? Could someone please help me out? I'd be glad to help out by writing a more comprehensive guide once I manage to figure it out myself. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-12-29 by Andrewmk Go to settings app on the watch, make connectable "no" then go back into make connectable and select "yes". Then try adding the watch again in the gadgetbridge app on the phone. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-12-29 by Ryzokuken @andrewmk Hi, that didn't work. Please check your DMs, I can give more specific info there, if you'd like to help me figure this one out... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-12-30 by Andrewmk Hi. I'm afraid that's the only suggestion I have - make it not connectable then connectable again. Also it seems that it has to have programmable 'on' as well. The connection is definitely flaky on my devices - whether it's the phone, the watch or both I don't know. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-12-31 by Ryzokuken @andrewmk what about inside the Bangle.js app? What did you do? Just go to "Find Phone" and click on "on" and proceed to the settings app? There was an update to the Gadgetbridge Android app today, but I still have the same issue. My phone cannot manage to find the Bangle.js, unfortunately. What's even more irritating that it found an MiBand, and I found an old MiBand in the drawer. But not the Bangle.js lol. I just cannot manage to make it show up and I have no clue what's wrong. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-12-31 by Andrewmk Find phone is nothing to do with it. That's supposed to make your phone ring when you've lost it (it doesn't). On the watch you need to go into settings and make sure programmable is on and go into make connectable and set to yes. In gadgetbridge on the phone you then click the big plus button to add a new device and hope the bangle watch shows up. If it doesn't my only fix has been to go into settings on the watch again and toggle make connectable to no, exit back to the watch face, then go into settings and make connectable 'yes'. I think we'll need to wait for @gfwilliams to get back to work to debug these connection issues. Mine is still very flaky. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-01-05 by user71255 I had the same issue trying to connect with Gadgetbridge. Ultimately, the fix was simple: I restarted my phone. Not sure why, but that's all I needed to do. Give that a try if you haven't yet. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-01-07 by @gfwilliams Did you have any luck connecting? To try and sum up though:
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-01-07 by Andrewmk I don't know what's changed but my connection between Gadgetbridge on the phone and the watch has now been up solidly for three days (at least it's up each time I look at it). I think I restarted my phone sometime in the last few days so maybe that did it as suggested by @user71255. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-01-07 by ConorONeill I had zero success with Gadgetbridge until today when I realised the version on the Play Store is 0.3x whilst I needed 0.4x :-) Working brilliantly now. Love it! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-01-08 by @gfwilliams Yeah, you have to use F-Droid rather than the Play Store. There's some explanation on Gadgetbridge's site but basically it's like an automatic build & publish tool for Android apps, so I can see the attraction from an Open Source project's standpoint :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-14 by Old_account I've only ever enabled HID once, first or second day of receiving the watch when testing stuff. Since then it's been off the whole time. I'll take a closer look at troubleshooting this later in the week, and I might even install a stock ROM to see if that makes any difference... I only have this device as my daily driver though, so I rarely have an opportunity to do too much crazy stuff with it. Searched a bit and it does seem like reason 8 is |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-16 by Old_account @gfwilliams I've been doing some reading to try to understand more about how BLE works. Not quite there, but I did find some info about what you mentioned about the clock accuracy and I have absolutely no idea if that is even relevant, but wanted to just air the idea and see if there may be something I could test in this regard. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-16 by @gfwilliams I'd already checked that before posting I'm afraid. Bangle.js is already using the 20ppm mode and I'm not sure we can get much higher... But if Bangle.js works on other devices then chances are it's not Bangle.js's clock that's out, but your phone's! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-16 by Old_account Yeah, I've been suspecting all along that it is my phone that's the culprit. I did dig up an old Google Nexus 6 I had laying around and got that up and running yesterday, but it has the same issue with randomly dropping the connection. I'm gonna test with my wife's phone next... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-17 by RogerDodger I had the same problem trying to find my bangle on Gadgetbridge, even though I could connect perfectly fine on chrome. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-17 by Purple-Tentacle The Play Store release is not the official one. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-04-17 by Old_account Quick update. As already expressed earlier in this thread, everything points to it being my phone that is causing this issue. As a test, I let the phone stay awake, with the screen on, for 2 hours, all the while having the watch connected and going about as usual (made sure to not get too far from the phone to avoid disconnecting caused by distance). After that I turned the phone screen off and let it stay like that for an additional 30 minutes. During the first 2 hours (screen on) there where 2 instances of the watch and phone losing connection (reason 8 both times), but it was quickly reestablished (within a few seconds). In the last 30 minutes (screen off) there where 25 connection state changes, of which only 9 where successful connection attempts and the rest failed (8 reason 8 and 1 reason 34 from an active connection, and 7 reason 133 when trying to reconnect). |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-09-23 by Gene I couldn't work out how to use Fdroid (all searches came back empty) for my Google Pixel, so I assumed I had the wrong type of OS and I downloaded via Google Play. Very excited about using Bangle.js btw |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-09-23 by parasquid Were you not able to get it from https://www.f-droid.org/ ? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-09-23 by @gfwilliams The issue is that the Google Play version is a non-official one. The hope is it's just done by someone that wants to make the process easier for everyone, but we don't actually know whether they added anything to it. It'll be older than the F-droid version too - It looks like it works fine with Bangle.js now, but originally it was old enough that there wasn't any Bangle.js support in it. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-09-24 by Raik The download link to the apk file for the latest version 0.47.1 is this one: https://f-droid.org/repo/nodomain.freeyourgadget.gadgetbridge_180.apk |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-09-24 by Gene Hello parasquid, I wasn't, but I tried again just now and installed everything with no problems. Thanks very much. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-09-24 by Gene Thank you :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-09-24 by Gene thanks Gordon |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-09-24 by parasquid You're welcome, glad I can help :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2019-12-04 by Andreas_Rozek
This. is. AWESOME!
Please, keep us informed about your progress with Gadgetbridge - implementing it for Bangle.js is an absolute killer feature and definitely raises Bangle.js to the level of far more expensive smart watches!
Is there already an API one could start investigating?
Thanks in advance for your effort!
Kind regards,
Andreas Rozek
Beta Was this translation helpful? Give feedback.
All reactions