nina b302 (nrf52840)

Posted on
  • i am using the yhid routine for scan a ble device, but, after a while of use, the system stop...then i have to reset again...

    Did someone got some problem or this routine is weird ?

    NRF.setScan(function(d) {
        //NINA B302 ENDDEVICE COM AHT10
        //SE ACHOU, MANDA PARA O WEB SERVER - NINA W106
        //if(d.id.includes("f2:52:f4:64:fd:9b"))­
        {
          on = !on;
          //escreve no D13
          D13.write(on); //GPIO 1
          Serial1.print(d.id.substring(0,17)+ " "+d.data[9]+"."+d.data[10]);  //temperatura
          if(d.data[10]<10)
            Serial1.print(0); //temperatura (preencha 0)
          Serial1.print(" "+d.data[11]);    //botao  
          on = !on;
          D13.write(on); //GPIO 1
        }
    }, { filters: [{ manufacturerData:{0x0591:{}} }] });
    }
    

    thank you

  • Does it completely stop, or are you able to call NRF.setScan again to start it off? And how long does it take to break?

    Also, what firmware version are you running?

  • Hi Gordon
    2v12
    break randonly
    looks completly because i put a blink led and then stop too

    //GPIO2
    setInterval(function() {
    D14.write(on_state);
    on_state = !on_state;
    }, 1000);

    i will make more tests for you soon
    At moment i "solved" this problem making a Hardware RESET, until solve the problem!

  • Was there ever a resolution to this ? We are seeing a similar on the nrf52840 based RAK5010.

    It is a hard crash of some kind, no errors shown and takes a reset to fix.

    Currently it is happening on a RAK5010 in one location and not another, so we are trying to establish if it is related to certain BLE advertisements

  • What firmware are you on?

    I don't really know what the issue would be I'm afraid - it's the same basic firmware as Bangle.js 2 which hasn't got any crashes I'm aware of. If you had a way to reproduce it I can try and debug and fix it here, but RAK5010 isn't a board I'm actively supporting at the moment.

    Just to add: you could use an nRF52DK as a sniffer and record all BLE advertising received, which I guess may help in tracking that down

    Also: worst case you can just add a watchdog to ensure it automatically restarts if this does happen

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

nina b302 (nrf52840)

Posted by Avatar for user95229 @user95229

Actions