-
The best option is just to go to the App Loader, About, then Install Default Apps - it'll wipe storage and return everything to standard.
It seems that did the trick - at least now I see the full available space again.
I never updated the firmware, it came shipped with 2v08 already. When I wiped my memory (still don't know how I ended up doing that...), I did not erase everything, I just re-installed the different apps manually. There must've been something left on the storage that caused the problem...I think there was a mysterious file named "q0" on the storage that I was not sure if it was supposed to be there or not, so I left it untouched, and it is now gone.
Thanks!
-
Everything's in the title...how long may compacting storage on the Bangle take as a maximum?
I have it running for close to 30 minutes now and it does not seem to finish.
The thing is, a while back when I starting coding on it, I had some memory leak that apparently wiped all my apps, I had to re-install everything, and since then the "About" app only shows me about half of the 4096K of flash free, with only a couple of apps installed.
What options are there to reset everything to a clean state? I've already tried powering off and on again, resetting it, and resetting it without loading any code.
-
I similarly noted that the Active Pedometer seems to miss a lot of steps with the standard settings. I noted that once it is active though, the detection seems to be quite accurate, so I suspected it to be mostly due to the "Step threshold" and "Active Reset" settings.
I reduced those to 15/15000 (i.e. 15 steps in 15 seconds instead of the default 30 steps in 30 seconds) and it seems to be more reliable. Maybe reducing it further improves it even more, but at some point I guess it would become too sensitive to non-step motions.
-
-
Hello all,
I have been experimenting with using the Bangle as an HID keyboard, based on the Bluetooth / Binary Bluetooth Keyboard apps, but I find it to be extremely unstable to the point of being unusable.
In the best case it works for a minute or so, with some lag between pushing buttons, but more often than not it will either not register buttons at all, or only after a few seconds, sometimes repeating them several times. Also sooner or later I get disconnects when using HID keys. First I thought it was a spotty Bluetooth driver implementation on Linux, but it behaves the same on my Windows work PC.
I am using a Plugable Bluetooth adapter with BCM chipset on a Linux 18.04 machine with BlueZ 5.48. I am sitting right next to the dongle when testing, and when programming the Bangle it seems to be quite stable usually.
So what are your experiences with HID over Bluetooth? Is this behaviour common?
-
More specifically, you probably want this
-
You are using HID to send the key sequence I suppose? You could post the code you have so far so we can better see what you're working with.
I don't own a Puck, but if it's the same or similar functions than on the Bangle, you can add a "modifier" key to the HID report that is sent, i.e. instead of just sending "m" you can send "LCtrl+LShift+m" for example. See for some details here. The values for the modifiers are actually bits that you can add up, so to use LCtrl+LShift you would use 3 in the modifier field. Don't forget to send another report with all 0's to release the keys again.
For the LED you would simply want to create a variable that tracks the LED's state, i.e. switch it to 1 when you switch the LED on and vice versa.
Hope that helps.
-
-
Hi,
I was playing around with the accelerometer data trying to code a tachometer app that computes the inertial speed by integrating acceleration data. But I can't get it to produce a "fluent" value yet.
Is my understanding correct that the accelerometer works at a fixed 80ms interval? What happens if I change the polling interval with
Bangle.setPollInterval()
from the default 80ms to say 40ms? How often will theBangle.on('accel',...)
event be triggered and what data will it deliver?Also, my impression is that the
g.drawString()
andg.drawLine()
commands take a lot of time and thus may interfere with my velocity calculation. Could that be true?Are there any more specs on the accelero that is used, like zero-level drift and stuff like that?
Thanks.
-
Interesting, I didn't think there were actually only two zones hardware-wise.
In fact the watch was sitting on the desk when I tried the wake-on-touch. I just tested it when wearing the watch, but what I think what happens is just that you need to press the display sufficiently long and firmly for it to react. If you just flick it with the tip of your finger briefly it won't trigger, and that happens more easily when the watch is not worn.
-
I don't know really, but I have noticed the touch buttons seem a little unreliable at times - that is, when I try to wake up the display by touch, sometimes I have to press two or three times. Haven't really understood why.
Maybe in your case it double-triggers? Or it's just a logical error in your code.
-
Because there are only two touch-sensitive zones, which are the left and right half of the display, and you can only detect a swipe from one side to the other with that.
Probably the screen is just too small to reliably provide more than that. Although I wonder if the screen itself doesn't detect touch position more precisely than that, and that information would somehow be accessible?
-
-
-
So, just received my Bangle, but need some help getting it up and running.
I am using Ubuntu Linux 18.04 with a Plugable USB Bluetooth dongle which seems to work fine. I have BlueZ 5.48 installed. The Bangle is connectable. All I'm describing below is the same with or without superuser rights.
The espruino command line tool from here shows me a port for the Bangle with
espruino --list
. So far, so good.However, in the Espruino Web IDE stand-alone version from here I only get "No ports found" when I try to connect. The console spits out this when I try to connect:
Noble: module couldn't be loaded, no node.js Bluetooth Low Energy Error: Cannot find module 'ms' Require stack: - /usr/local/lib/node_modules/espruino-web-ide/node_modules/debug/src/common.js - /usr/local/lib/node_modules/espruino-web-ide/node_modules/debug/src/browser.js - /usr/local/lib/node_modules/espruino-web-ide/node_modules/debug/src/index.js - /usr/local/lib/node_modules/espruino-web-ide/node_modules/@abandonware/noble/lib/noble.js - /usr/local/lib/node_modules/espruino-web-ide/node_modules/@abandonware/noble/index.js - /usr/local/lib/node_modules/espruino-web-ide/main.html
No navigator.bluetooth - Web Bluetooth not enabled
No navigator.serial - Web Serial not enabledTried to install the package ms via
npm install -g ms
but then just the same error for another package pops up. Is the IDE just missing a bunch of dependencies?The documentation here suggests there is an Espruino IDE version other than the Web IDE? But I can't find a version for Linux for the life of me. Everything just leads me back to the Web IDE version.
So what can I do to make that one work? I really don't want to upload everything from the command line.
Thanks.
-
-
So, while waiting for my Bangle to arrive, I am wondering how it actually keeps track of the time.
I don't see an RTC in the specs. Does the micro have sufficiently precise oscillators to keep an accurate time without too much drift? Or does it actually need to get a GPS fix every couple of hours to get its time from space? Or is using a smartwatch to show the time just too crazy an idea? :D
-
-
-
Hi, thanks for the feedback.
Yes, I suspected what Gordon called "JS firmware" is what I would call the apps. I understand that it wouldn't be a problem to flash those from different platforms. I use Linux by the way.
I'm not sure where you found where it says it only works with USB devices though.
In the Web IDE when you go to Settings -> Flasher, it says it only works with boards with the Espruino USB bootloader.
In the command line version, I assumed it is the -f argument I need to use to upload a firmware, and this one explicitly says as well that it has to be a USB Espruino and Bluetooth is not supported.
All that taken together makes me think that it does not work with a Bangle. So are you saying you actually did update the Espruino firmware that way, although it says it doesn't work? Did you use the Flasher tool in the Web IDE for that?
-
So which is the one I find here ? I wasn't aware there are two different types of firmware. But I assume at one point I will want to update the firmware for whatever reason.
The firmware flashing part on the Web IDE clearly says it does only work with USB devices, so does the command line version here. So to me that sounds like a no-go, at least I wouldn't take the off-chance that it works although it says it doesn't.
-
Sure, but I can't guarantee it will happen again. It was a coding mistake on my part which lead to that, and when I managed to stop the code, half of the files in storage were gone. I could still delete the remaining ones via Bluetooth though. I don't remember exactly what I did anymore, but I'm pretty sure I did not write anything to storage, that's why I found it odd. So there is not necessarily a bug in espruino.