Comments (8)
I've also tried with existing dataset in the settings flash:
- I flash ot-cli-ftd from 0247d02b9dbfb437a1b8e81040323937814e0aab
- I attach to the existing network
- I flash the new build from 5a92680
- Now
dataset active
reports the correct network details, including the correct mesh local prefix ipaddr
still shows the (wrong) `fdde:ad00:beef::/64" prefix- The node doesn't actually manage to connect to the existing network, it becomes a "leader" with no neighbors (and if I repeat the process with additional dongles, they, too become isolated leaders).
from ot-nrf528xx.
@TPolzer , can you provide the output of dataset active
for your existing Thread network? In particular, what is the Active Timestamp value? In order for the Attach to Existing Network steps to succeed, the Active Timestamp of the existing network must be non-zero.
from ot-nrf528xx.
With the old (working) version:
> version
OPENTHREAD/20191113-01630-g0247d02b9; NRF52840; Dec 27 2021 20:42:25
Done
> dataset active
Active Timestamp: 1
Channel: 26
Channel Mask: 0x07fff800
Ext PAN ID: c9c3d1247c9a448b
Mesh Local Prefix: fdbf:e492:40f3:de5a::/64
Master Key: ***secret***
Network Name: OpenThread-e217
PAN ID: 0xe217
PSKc: **secret?**
Security Policy: 0, onrcb
Done
> state
child
Done
> neighbor table
| Role | RLOC16 | Age | Avg RSSI | Last RSSI |R|D|N| Extended MAC |
+------+--------+-----+----------+-----------+-+-+-+------------------+
| R | 0x2400 | 0 | -73 | -75 |1|1|1| baaa5854cf8d3407 |
| R | 0x4400 | 10 | -80 | -79 |1|1|1| 5e1f05066d0b9892 |
| R | 0x7c00 | 11 | -73 | -73 |1|1|1| 4e049f5bee138a2b |
Done
> ipaddr
2a02:**secret**
fdbf:e492:40f3:de5a:0:ff:fe00:ac09
fdbf:e492:40f3:de5a:77ca:28f2:675f:dec4
fe80:0:0:0:d839:76a9:816f:6cdf
Done
> ping ff02::1
Done
> 16 bytes from fe80:0:0:0:ccd9:6984:18e9:3d2b: icmp_seq=1 hlim=64 time=12ms
> ping ff03::1
Done
> 16 bytes from fdbf:e492:40f3:de5a:cd49:ed25:8df8:553e: icmp_seq=2 hlim=64 time=11ms
16 bytes from fdbf:e492:40f3:de5a:8195:2838:718e:72ab: icmp_seq=2 hlim=64 time=376ms
16 bytes from fdbf:e492:40f3:de5a:f75f:990d:102e:b00d: icmp_seq=2 hlim=64 time=387ms
16 bytes from fdbf:e492:40f3:de5a:2fe4:3747:c157:377c: icmp_seq=2 hlim=64 time=393ms
16 bytes from fdbf:e492:40f3:de5a:8bfb:a3fa:d493:579b: icmp_seq=2 hlim=64 time=401ms
16 bytes from fdbf:e492:40f3:de5a:a5b2:d15a:3b7c:7b9: icmp_seq=2 hlim=63 time=406ms
Flashing the new version (without erasing settings):
> version
OPENTHREAD/thread-reference-20200818-1436-g442b7e82f; NRF52840; Jan 8 2022 12:33:45
Done
> dataset active
Active Timestamp: 1
Channel: 26
Channel Mask: 0x07fff800
Ext PAN ID: c9c3d1247c9a448b
Mesh Local Prefix: fdbf:e492:40f3:de5a::/64
Network Key: ***secret, correct key***
Network Name: OpenThread-e217
PAN ID: 0xe217
PSKc: ***secret, correct key***
Security Policy: 0 onrcb
Done
> state
leader
Done
> neighbor table
| Role | RLOC16 | Age | Avg RSSI | Last RSSI |R|D|N| Extended MAC |
+------+--------+-----+----------+-----------+-+-+-+------------------+
Done
> factoryreset
> dataset networkkey **secret**
Done
> dataset commit active
Done
> ifconfig up
Done
> thread start
Done
> state
child
Done
> neighbor table
| Role | RLOC16 | Age | Avg RSSI | Last RSSI |R|D|N| Extended MAC |
+------+--------+-----+----------+-----------+-+-+-+------------------+
| R | 0x0400 | 23 | -60 | -60 |1|1|1| a691d5d5fa1d1838 |
| R | 0x1400 | 24 | -84 | -83 |1|1|1| 9ea1180198677fef |
| R | 0x7c00 | 22 | -76 | -74 |1|1|1| 4e049f5bee138a2b |
Done
> dataset active
Network Key: **secret, correct key**
Done
> ipaddr
2a02:**secret, with correct public prefix**
fdde:ad00:beef:0:0:ff:fe00:ac0a
fdde:ad00:beef:0:503e:ccc4:3e81:7db6
fe80:0:0:0:24ac:78a8:b601:3c7f
Done
> ping ff02::1
16 bytes from fe80:0:0:0:ccd9:6984:18e9:3d2b: icmp_seq=1 hlim=64 time=11ms
1 packets transmitted, 1 packets received. Round-trip min/avg/max = 11/11.0/11 ms.
Done
> ping ff03::1
1 packets transmitted, 0 packets received.
Done
from ot-nrf528xx.
Flashing two dongles with the new openthread version and a fresh dataset (dataset init new
on one of them) works btw.
from ot-nrf528xx.
I'm wondering whether it has something to do with timesync being enabled in the existing network. Though
- my understanding is attaching as a child should still work
- I tried compiling the new openthread with
-DOT_TIME_SYNC=true
, the observed behavior (see #223 (comment)) is identical, time sync works:
> version
OPENTHREAD/thread-reference-20200818-1436-g442b7e82f; NRF52840; Jan 8 2022 12:33:45
Done
> networktime
Network Time: 1654448362us (synchronized)
Time Sync Period: 30s
XTAL Threshold: 300ppm
Done
> ping ff02::1
16 bytes from fe80:0:0:0:ccd9:6984:18e9:3d2b: icmp_seq=4 hlim=64 time=12ms
1 packets transmitted, 1 packets received. Round-trip min/avg/max = 12/12.0/12 ms.
Done
> ping ff03::1
1 packets transmitted, 0 packets received.
Done
from ot-nrf528xx.
This seems related to the issue reported in this openthread-users email.
I have submitted a proposed fix in openthread/openthread#7323. Let me know if this addresses your issue.
from ot-nrf528xx.
Works with the pull request. Thanks!
from ot-nrf528xx.
Works with the pull request. Thanks!
@TPolzer , thanks for testing and reporting back! openthread/openthread#7323 has been merged.
from ot-nrf528xx.
Related Issues (20)
- builds from 8bed800 have no radio connectivity HOT 6
- UART Abstraction hangs in otPlatUartFlush HOT 5
- Noob - Build options for OTBR RCP build HOT 6
- Nordic nRF52840DK - Unexpected RCP reset while running ot-daemon HOT 9
- [C] Platform------: HandleRcpTimeout() at radio_spinel_impl.hpp HOT 8
- NRF52840 dongle RCP via UART HOT 2
- RCP fails on Nordic nRF52840 DK HOT 4
- Problem with attaching devices HOT 5
- Problem with flashing OpenThread on Adafruit Feather nRF52840 Express HOT 1
- Adafruit Feather nRF52840 not shown as USB Device HOT 2
- [mdk] Request to update mdk to an up-to-date version HOT 2
- Nordic's nRF5340 DK support Request #8268 HOT 1
- E104-BT5040u USB Stick does not enter DFU mode after initial flashing HOT 4
- cant flash nrf52 dongle using nRFconnect for desktop. HOT 2
- nRF52840-Dongle with dual-bootloader setup HOT 1
- Missing content in CLI output of an OpenThread FTD running on nRF52840 DK HOT 15
- OT_ERROR_NOT_FOUND when canonical names received from otDnsClientResolveIp4Address() HOT 7
- RCP unexcpected reset after starting ot-daemon HOT 2
- /opt/nrfjprog/: No such file or directory HOT 15
- How to make ot-br-posix enable OT_BLE_TACT? HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ot-nrf528xx.