-
Has the Long Range landscape for the Bagle.js 2 developed much since @gfwilliams got it working a couple years ago? I have an application in which the Bangle 2 would be perfect for if it does indeed support connections as a Central device. So far I haven't been able to get it to pick up any advertising packets from my (non-Bangle, non-Espruino) peripheral devices advertising on Coded PHY, let alone connect to them. The peripherals are advertising as connectable however, so I wonder if that's preventing the Bangle from picking it up. Tangentially related, if this is possible it would be really beneficial for a whole community of users of a product of mine. I'm looking for a clever way for my users to receive alerts on their wrist via a smartwatch from a about 150m away (line-of-sight). If this is possible, I would be sending an entire world-wide community to the Bangle shop :) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 37 replies
-
We've made a few small changes but there hasn't been a huge amount of feedback on it. I'd have thought that a Bangle could do 150m line of sight pretty well (especially if you're advertising from somewhere with a decent aerial). My understanding was where it was left we could transmit and receive advertisements on coded phy, and if a connection was made to a device found on the coded phy I think it would negotiate to use coded phy for that connection. I made an app that allows two (or more!) Bangles to communicate using Advertising, and you can check the source at https://github.com/espruino/BangleApps/blob/master/apps/shownearby/app.js It's possible that just requesting coded phy when you use
I'm happy to look into making changes to improve matters, but unless you're able to try things out yourself and suggest changes to how exactly we scan (eg at https://github.com/espruino/Espruino/blob/master/targets/nrf5x/bluetooth.c#L3021-L3023) then I'd probably need a device here to test with. |
Beta Was this translation helpful? Give feedback.
-
Oh, yes, had the same problem even for advertising. Updating SoftDevice to 6.1.x worked. This Bangle example app worked for some reason but I couldn't get (possibly longer?) advertising packets over coded phy from thermometer until I upgraded SoftDevice as per espruino/Espruino#2465 |
Beta Was this translation helpful? Give feedback.
-
Update on my side: I flashed @fanoush 's 2v25.409 build and successfully connected to the Nordic_HRS peripheral sample over coded phy as expected, thanks again for the persistence! Currently I'm still stuck at getting the Bangle to pick up any advertising packets from my custom board/service that's also over coded phy. I can pick up the Nordic_HRS sample packets just fine with this sketch:
But not getting anything from a custom service with near identical advertising parameters. I've been trialing different min and max scan intervals among other typical Bluetooth scan/adv troubleshooting with no luck. The only difference between the two applications (mine vs. Nordic_HRS) is the advertised service and the device name. Reason I haven't taken this to the Nordic forums is that my service does show up on my NRF toolbox app on my Samsung phone and I can confirm that it advertises exactly as the Coded HR sample does. I can connect to it successfully as well. So I was wondering if there was something specific with the Bangle firmware that I still needed to adjust? EDIT: Just to keep my beacon of purpose in the picture here: This custom service is for a product that could REAALLY use a standalone smartwatch integration; ergo the Bangle.js 2 I believe is the perfect match for this and I'd be delighted to write and maintain the software for it - and send all my customers to the espruino shop to purchase one. The only catch is that the application is over the 150m like I mentioned. |
Beta Was this translation helpful? Give feedback.
After an embarrassingly high number of attempts, I was successful in flashing the hex file with the newer revision of the 840 DK. The trick is NOT to tie the SWD-SEL (formerly VTG) to VDD-NRF as most of the discussions suggest, but to tie SWD-SEL to VDD-NRFHV, located a bit further down the P20 header. The GND Detect pin was not used and the successful attempt was while powering the Bangle from the 5V rail of the DK while flashing. Not sure if the 5V is needed but I think you'll forgive me for not re-bricking the watch to find out.
Sorry for the detour. After recovering the Bangle with 2v25.409 firmware I successfully flashed S140-6.1.1 again and finally was picking up advertising packets…