Code Monkey home page Code Monkey logo

Comments (7)

thcu-gp avatar thcu-gp commented on May 13, 2024

This is probably an issue for all prefixes served by the border router (on and off mesh).

from ot-br-posix.

LeZhang2016 avatar LeZhang2016 commented on May 13, 2024

I will check it.

from ot-br-posix.

tarunsmalviya avatar tarunsmalviya commented on May 13, 2024

I am also facing same issue.

from ot-br-posix.

sjlongland avatar sjlongland commented on May 13, 2024

I found a work-around… I set up this script to run at boot:

root@wsg-74fe481fe117:~# cat /usr/local/bin/recommission-ncp 
#!/bin/sh

ROUTER_CONFIG='{
        "networkKey":"aabbccddaabbccddaabbccddaabbccdd",
        "prefix":"fdaa:bbcc:ddee:ff00::",
        "defaultRoute":true,
        "extPanId":"0011223344556677",
        "panId":"0x0123",
        "passphrase":"0123012301",
        "channel":1,
        "networkName":"MyNetwork"
}'

wpanctl reset && sleep 10 && curl -d"${ROUTER_CONFIG}" \
        -H 'Content-Type: application/json;charset=utf-8' \
        http://localhost:8080/form_network

That JSON blob is found by using my browser's developer tools to snoop on the front-end to the border router. It's not pretty, but it gets me going. The wpanctl reset probably isn't needed in most cases, just in our case the NCP is "special" and doesn't seem to want to work first try.

from ot-br-posix.

sjlongland avatar sjlongland commented on May 13, 2024

One thing I observe now, is wpantund after commissioning, will then mysteriously "forget" the prefix. In some cases, mere minutes after assigning it. e.g.

Oct  8 10:31:23 wsg-74fe481fe117 wpantund[498]: wpantund[498]: Pushing a new SLAAC address 2001:db8:1234:5678:248a:784b:f413:756b/64 to NCP
Oct  8 10:31:23 wsg-74fe481fe117 wpantund[498]: wpantund[498]: Adding address "2001:db8:1234:5678:248a:784b:f413:756b/64" to NCP
Oct  8 10:31:23 wsg-74fe481fe117 otbr-agent[2317]: NCP property Daemon:ReadyForHostSleep changed.
Oct  8 10:31:23 wsg-74fe481fe117 otbr-agent[2317]: otbr-agent[2317]: NCP property Daemon:ReadyForHostSleep changed.
Oct  8 10:31:23 wsg-74fe481fe117 otbr-agent[2317]: NCP property Daemon:ReadyForHostSleep changed.
Oct  8 10:31:23 wsg-74fe481fe117 otbr-agent[2317]: otbr-agent[2317]: NCP property Daemon:ReadyForHostSleep changed.
Oct  8 10:33:52 wsg-74fe481fe117 wpantund[498]: Removing SLAAC address 2001:db8:1234:5678:248a:784b:f413:756b/64 from NCP
Oct  8 10:33:52 wsg-74fe481fe117 wpantund[498]: Removing address "2001:db8:1234:5678:248a:784b:f413:756b/64" from NCP
Oct  8 10:33:52 wsg-74fe481fe117 otbr-agent[2317]: NCP property Daemon:ReadyForHostSleep changed.
Oct  8 10:33:52 wsg-74fe481fe117 wpantund[498]: wpantund[498]: Removing SLAAC address 2001:db8:1234:5678:248a:784b:f413:756b/64 from NCP
Oct  8 10:33:52 wsg-74fe481fe117 wpantund[498]: wpantund[498]: Removing address "2001:db8:1234:5678:248a:784b:f413:756b/64" from NCP

from ot-br-posix.

tarunsmalviya avatar tarunsmalviya commented on May 13, 2024

I noticed one thing, that when we add on mesh prefix for the first time and after rebooting, the ncp persist the on mesh prefix which is labelled as origin:ncp. In this state, my coap message are not able to reach RPi and also I am not able to ping RPi.
screenshot 2018-10-29 at 10 46 23 pm

When I again add the on mesh prefix using Web GUI, new prefix is added into on mesh prefix list with label origin:user, and I am able to receive ping and coap messages in RPi.
Can anyone help me regarding this issue.
screenshot 2018-10-29 at 10 45 57 pm

from ot-br-posix.

jwhui avatar jwhui commented on May 13, 2024

Closing stale issue.

from ot-br-posix.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.