Power management/ puck's button?/ getting started links #1803
Replies: 9 comments
-
Posted at 2016-12-14 by @gfwilliams Which links are broken? All the ones are the end of the Getting Started guide seem to work for me. You probably want:
I'd hoped to have a few more tutorials up by now, but it's amazing what spending 6 hours a day answering emails does for your productivity :) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-15 by paul_tanner Thx Gordon, Those are the refs I needed. I'll post back here when I have tested code. BTW. The broken links are in the version that's in github. The ones on the puck-js website are OK. In terms of time for emails, I feel your pain :( |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-15 by paul_tanner I think this is working OK. Is the advertising interval fixed at around 2 secs?
The button seems super-sensitive. I checked that the device is reassembled correctly. Picking it up appears to activate it. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-15 by @gfwilliams :) Ahh, gotcha - yes, the Espruino site is the one to use. Some of the links and keywords are automatically tweaked when it goes online |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-17 by MobiTech Can I use sleep and wake often or is that not recommended to disable and enable Bluetooth multiple times? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-19 by @gfwilliams Are you using the up to date firmware? There was some odd issue with the one that the devices came flashed with where occasionally using Advertising is ~700ms on 1v88 firmwares and ~350ms on 1v89 and later firmwares. BLE advertises on 3 separate frequency bands so if your phone/whatever is only listening on one it'd only pick a 1v88 firmware device up once every 2.1 seconds. @mobitech it should be fine to keep using sleep and wake - I don't see that causing any big problems. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-20 by paul_tanner Thx Gordon, Adding that pinMode line caused it to stop waking up altogether (ie ignoring the button). |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-20 by @gfwilliams Sorry - I'm an idiot. It should have been Firmware update info is here: http://www.espruino.com/Puck.js#firmware-updates |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-20 by paul_tanner figure this out: putting the line in and then taking it out again cleared the problem. No rush to explain that as I am up and running. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-12-14 by paul_tanner
I want to make a beacon that uses as little power (last as long) as possible.
Since puck has a button I thought I might get it to wake up on that and go into lowest power mode after a set period of advertising.
Looking at the links at the end of "Getting started". I was hoping to find some stuff about puck platform-specifics that would help me code up the above. As it is the links that looked useful are broken.
Beta Was this translation helpful? Give feedback.
All reactions