-
Hi Gordan,
I have the latest firmware just performed an update yesterday:
>process.version ="1v94"
No the battery percentage changes nor more precicely it is bouncing aroung a 56 percent
The examples are not that useful, would you mind to give me a better one so that i can adjust it? For instant i didn´t understand how to perform the multi beacon variant (ibacon and eddison) it looks like we should require the modules within the function and that add some more configuraiton within the get() function but i didn´t found out how exactly the signature of this get function should look like.
Kind regards
Lyn
-
Hi,
i am playing around with the BLE Advertising. It seams to be a little bit unstable.
First: When connected to the Web IDE, Advertising don´t work at all for me. You need to disconnect to test it. Is this by design or a bug?
Second: Button Press is not catched precisely.
i use the following code:
var pressCount = 0; setWatch(function() { pressCount++; NRF.setAdvertising({ 0xFFFF : [pressCount] }); }, BTN, { edge:"rising", repeat:false, debounce:50 });
Setting repeat to true causes on some pucks to repeatingly advertise the counter, on others to only adverstise the counter when button is pressed.
Third: Different Intervals
I set two advertisements within an interval of 3 seconds but the information are advertised in different intervals:
setInterval(function() { NRF.setAdvertising({ 0x2a01 : [String(E.getTemperature())], 0x2a19 : [String(Puck.getBatteryPercentage())] }); }, 3000);
Temperature is advertised every 3s but BatteryPercentage every 1-5 seconds (this vary a bit).
Does anyone has some ideas?
Kind regards
solick
-
-
-
@Gordon, the power supply seems to have been the problem. Now it works!!
-
@Gordon sorry for my late reply was very busy during the last weeks. I need to check OS but it is from September last year I think. hub software updated for the last trial.
pi3 is connected via ethernet I need to check the power supply and will come back to you.
Thanks for hints and kind regards
Lyn
-
-
-
Hi,
i know that the name of a puck is the last 4 byte of the mac address and the prefix "Puckjs. " but is there a function to easily get this name on a puck e.g. to check if the name is equal to a delivered name?
Main idea is to broadcast some messages with destination address and every puck can check if he is meant.
Thanks and KR.
-
Hi still same problem like Eric has. This is very frustrating because node red support was one of the things i was aiming for to play around with
dmesg shows a lot of data length messages and some rxheader problems:
[171782.508708] Bluetooth: hci0 advertising data length corrected [171784.522087] Bluetooth: hci0 advertising data length corrected [171786.539132] Bluetooth: hci0 advertising data length corrected [911027.460713] brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: -110 [911027.460736] brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame, send NAK [1051371.603572] brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: -110 [1051371.603594] brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame, send NAK [1130993.959543] brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: -110 [1130993.959564] brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame, send NAK [1131053.958012] brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: -110 [1131053.958034] brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame, send NAK [1177615.342334] brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: -110 [1177615.342356] brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame, send NAK [1187395.621677] brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: -110 [1187395.621698] brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame, send NAK [1314059.310749] brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: -110 [1314059.310771] brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame, send NAK [1421822.479586] brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: -110 [1421822.479608] brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame, send NAK [1656549.341789] brcmfmac: brcmf_sdio_readframes: RXHEADER FAILED: -110 [1656549.341810] brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame, send NAK [1749638.660593] Bluetooth: hci0 link tx timeout [1749638.660618] Bluetooth: hci0 killing stalled connection cb:45:3f:d2:6f:4d [1749645.643130] Bluetooth: hci0 link tx timeout [1749645.643146] Bluetooth: hci0 killing stalled connection cb:45:3f:d2:6f:4d [1749649.941939] Bluetooth: hci0 link tx timeout [1749649.941964] Bluetooth: hci0 killing stalled connection cb:45:3f:d2:6f:4d [1749655.765749] Bluetooth: hci0 link tx timeout [1749655.765774] Bluetooth: hci0 killing stalled connection cb:45:3f:d2:6f:4d
-
-
@dklinkman @Gordon is there a special debug parameter to start the program? Than i would be able to debug on my system and see what happens...
-
-
-
Thanks, tried your version and now the programm don´t crash but the commands are still not excecuted an puck. Tried to switch LEDs on and off, nothing happend. :(
MQTT>/ble/write/cb:45:3f:d2:6f:4d/nus/nus_tx => "LED2.reset();\n" Service 6e400001b5a3f393e0a9e50e24dcca9e Characteristic 6e400002b5a3f393e0a9e50e24dcca9e <Connect> Connected. Getting Services... Scanning restarted... <Connect> Timed out getting services. Disconnecting. Sun Jan 01 2017 16:40:20 GMT+0100 (CET)
BTW maybe you should make a pull request to the original repo?
-
Hi, just started finally to play around with my puckjs.
Web IDE works fine.
Installed node-red and esprinoHub und a Raspi 3.
Getting RSSI values etc. works fine, but when sending code with inject button (LED set and reset) i got mostly the following error:
<Connect> Connected. Getting Services... <Connect> Timed out getting services. Disconnecting. BLE broken? No advertising packets in 10 seconds - restarting!
a few times it worked to set a led but reset allways crashed.
Just installed 1v90 on puck but problem remains.
Any idea on this?
Followed the instuctions to stop bluetoothd but still the problem remains.
Thanks and kind regards
solick
I changed now back to advertise without casting to string but than i only get integer temperature values...
advertises: