-
@allObjects laptop works fine with another puck (fc05) with v199.
the only thing that I tried some time ago (2-3 months) was to make a serial connection. maybe I fried something then ?
as @Gordon said, maybe it is stuck randomly in Serial mode. wish the self-test would have more info/tests 😋
-
did a thorough cleaning with isopropyl alcohol (99.6%) and no luck:
WARNING: No result found for "process.env" - just got "" ERROR: [notify_error] Unable to retrieve board information. Connection Error? Device found {"portName":"Puck.js cb34"} [success] Connected to Web Bluetooth, Puck.js cb34 (No response from board)
-
-
-
I have nothing wired to any of the Pucks.
PuckJS FC05
- still slow first time today.
- hard reset -> speedy. works great for now. 😋
LATER EDIT - after 10 minutes, reconnect via webIDE, slow again. hard reset. speedy again.
PuckJS CB34
- drained a new battery to 2.26V
- put a new battery. hard reset. still no connection 🤯
- self-test - blink green.
- weird as the MDBT has some discolouration on the shield (battery leak?) - it was in the silicone case all the time
- still slow first time today.
-
-
discussion moved to puckjs, v199 - unable to connect and slow
-
@Gordon: following the discussion in "Massive Bluetooth speed improvement" thread:
laptop: MacBook Pro 2017, macOS 10.13.5, Chrome 67
PuckJS CB34
- firmware v199 cutting edge - got prompt, no communication (Settings | Console)
- firmware v199 release - "No Prompt found, got undefined"
PuckJS FC05
- firmware v199 cutting edge - webIDE connection ok, but slow in webIDE (39.19 sec UART example)
both PuckJS with new batteries, near the laptop
- firmware v199 cutting edge - got prompt, no communication (Settings | Console)
-
-
tried with a PuckJS, uploaded v199 and it fails on connecting via webIDE:
>>> BLE configured. Receiving data... Connected [object Object] Received a prompt after sending newline... good! >>> Sending... ---> "\u0010print(\"<\",\"<<\",JSON.stringify(process.env),\">>\",\">\")\n" >>> Sent WARNING: No result found for "process.env" - just got "" ERROR: [notify_error] Unable to retrieve board information. Connection Error? Device found {"portName":"Puck.js cb34"} [success] Connected to Web Bluetooth, Puck.js cb34 (No response from board) >>> Connected to Web Bluetooth, Puck.js cb34 (No response from board)
did a hard reset - still nothing :(
-
got a Thingy:52 and 2x Puck.JS. the Thingy is in a drawer getting dust and the with the Pucks I play daily (HID keyboard shortcuts - press and long press)
Thingy pros:
- wakes up from deep sleep on movement
- environment sensors (temp/humidy/air quality)
- accelerometer – want to use it for a VR like toy controller
cons:
- no easy to program (I should put Espruino on it)
- fugly – compared to Puck's silicone
- bulky
- mic/speaker 8kHz quality
can't wait for PixlJS to play with the display :)
- wakes up from deep sleep on movement
-
@Gordon I tried nRF Connect - the name is ok. no service UUID on both platforms. dont know why Espruino doesnt see that advertisment (maybe there are other flags not visible in nRF Connect)
-
I am trying to send an advertisment packet from a raspberry pi zero w using nodejs with bleno:
var bleno = require('bleno') var name = 'tbd-pager-pi'; console.log('bleno server start') bleno.on('stateChange', function(state) { console.log('on -> stateChange: ' + state); if (state === 'poweredOn') { bleno.startAdvertising(name, []); } else { bleno.stopAdvertising(); } });
tested with nRF Connect/iOS and the advertisment is visible and connectable with Complete Local name set correctly
on a Puck.JS I am using this code:
NRF.setScan(function(e){ if(e.name && e.name.indexOf('tbd-pager') > -1){ digitalPulse(LED3, 1, 100); } }); setWatch(function () { print("scan disabled"); digitalPulse(LED1,1,100); NRF.setScan(); }, BTN1, { repeat:true, debounce:true, edge:'rising' });
the problem is that there no found message and no LED3 blinking :(
same code that runs on Raspberry moved to OSX works perfectly
any idea why I cannot see the advertisment from Raspberry ?
-
http://tibbo.com/store/tps.html
it is a modular system that allows several modules on a mainboard and colorful case
would love something similar for the Espruino world - mix modules in a cute case with LCD
-
- copy frameworks inside the app – will make the app 35MB 😮
- duplicates - Bluetooth. saw same puck.js several times (3 times). then it disappears (after 5 seconds) and reappear again. maybe has to do with the scanning.
- USB devices - Bluetooth Incoming Port, not connected bluetooth speakers (incoming and outgoing)
- copy frameworks inside the app – will make the app 35MB 😮
-
LATER EDIT: quick fix to make it working on OSX.
steps:
- brew install qt
copy files from /usr/local/Cellar/qt/5.10.0/lib to
/Library/Frameworks/QtBluetooth.framework /Library/Frameworks/QtCore.framework /Library/Frameworks/QtGui.framework /Library/Frameworks/QtNetwork.framework /Library/Frameworks/QtSerialPort.framework /Library/Frameworks/QtWebSockets.framework /Library/Frameworks/QtWidgets.framework
quick feedback:
'Select a port' window:
– items jump around as Bluetooth devices appear/disappear making it hard to select
– duplicates for same device
– unable to read the whole id due small window
– lots of USB devices (outgoing and incoming) make it hard to browseconnecting to a puck.js and sending commands works 👍
- brew install qt
-
a good overview of Bluetooth Mesh – https://github.com/NordicPlayground/nRF51-ble-bcast-mesh/blob/master/docs/how_it_works.adoc
there are also a set of articles on bluetooth.com regarding Bluetooth Mesh, eg https://www.bluetooth.com/what-is-bluetooth-technology/how-it-works/le-mesh
I didn't see an implementation for Puck.JS yet, but I am interested too as I have two Puck.JS that I want to put them to work ;)
-
-
-
added @Gordon presentation about the badge and Espruino in the first post
-
BME680 is used in uRadMonitor https://www.uradmonitor.com/bosch-bme680/ a project made by a guy in my town which went global (800 units deployed)
I hope BME680 is more accurate than the sensors in my Nordic Thingy ;)
-
tried to flash Espruino on a ESP8266 (NodeMCU, doit.am version) and got:
Chip is ESP8266EX Uploading stub... A fatal error occurred: Failed to write to target RAM (result was 0107)
- esptool v2.2-dev
- tested with 5V, 3.3V (from breadboard power supply mb102) and USB power (from laptop)
- fails on any esptool command (erase_flash, write_flash, chip_id, ...)
- correct data cable (some power only cables made me loose some time)
- same problem on lower baudrates (eg 9600)
bootloader terminal ( 74880,8,N,1 ):
ets_main.c ets Jan 8 2013,rst cause:2, boot mode:(3,7)
- esptool v2.2-dev
-
-
for $5 range I compared with https://minew.en.alibaba.com/product/60606212990-802524400/Factory_Direct_Sale_Anti_losting_Tracker.html with nRF51822, buzzer, on/off button that is $3 at 1000 units (that was 2 years ago)
I like the http://www.m5stack.com/ form factor - small, 320x240 LCD, stackable, easy to prototype.
another cheap round design ESP32 solution – https://www.tindie.com/products/Sandeep_ee/hornbill-esp32-minima/
just brainstorming around
self-test: green (5 flashes, middle LED)
shorting
D29
toGND
- still got the <- Serial 1 in webIDEboth Pucks show -65dbm RSSI in Bluetooth Explorer (apple app)