• 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 {

    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:

      if(e.name && e.name.indexOf('tbd-pager') > -1){
        digitalPulse(LED3, 1, 100);
    setWatch(function () {
      print("scan disabled");
    }, 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 ?

  • Can you try using the nRF Connect app to debug it?

    On the Pi I know you may have to issue a few commands to wrestle that level of control off of the OS. See the steps here: https://github.com/espruino/EspruinoHub#­http-proxy

  • @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)

  • Try NRF.findDevices(print) just in case - it'll list all the devices that Puck.js has found

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview

NRF.setScan doesn't show advertisment packets sent from Raspberry Pi

Posted by Avatar for tbd @tbd