Difference between revisions of "NRF52840 Thread NCP"

From HiveTool
Jump to: navigation, search
(Set up the border router on the Pi:)
(Set up the border router on the Pi:)
Line 30: Line 30:
 
  cd borderrouter
 
  cd borderrouter
 
  ./script/bootstrap
 
  ./script/bootstrap
  .configure --enable-debug
+
  .configure --enable-debug --enable-ncp --enable-ftd --enable-commissioner --enable-joiner --enable-border-agent --enable-border-router --enable-commissioner --enable-udp-forward
 
+
make
 +
sudo make install
  
  
Line 44: Line 45:
 
  git clone https://github.com/openthread/openthread
 
  git clone https://github.com/openthread/openthread
 
./configure --enable-ncp --enable-ftd --enable-commissioner --enable-joiner --enable-border-agent --enable-border-router --enable-commissioner --enable-udp-forward
 
./configure --enable-ncp --enable-ftd --enable-commissioner --enable-joiner --enable-border-agent --enable-border-router --enable-commissioner --enable-udp-forward
 +
 +
 +
Check wpan status
 +
sudo wpanctl status

Revision as of 16:55, 13 January 2019

Pi Border Router with nRF52840 thread NCP

https://electronut.in/nrf52840-thread/


https://groups.google.com/forum/#!topic/openthread-users/9TFIATWWrxw

https://www.nordicsemi.com/DocLib/Content/SDK_Doc/Thread_SDK/v2-0-0/index

Install Network Co Processor (NCP) code on nRF52

Download nRF Connect program.

./nrfconnect-2.6.1-x86_64.AppImage

Downloaded the nRF5 SDK for Thread and Zigbee 2.0.0

https://www.nordicsemi.com/Software-and-Tools/Software/nRF5-SDK-for-Thread-and-Zigbee/Download

Write the NCP hex file to the dongle.

Set up the border router on the Pi:

You need both border router and wpantund:

https://openthread.io/guides/border-router/build

git clone https://github.com/openthread/borderrouter
cd borderrouter
./script/bootstrap
.configure --enable-debug  --enable-ncp --enable-ftd --enable-commissioner --enable-joiner --enable-border-agent --enable-border-router --enable-commissioner --enable-udp-forward
make
sudo make install


git clone https://github.com/openthread/wpantund.git
cd wpantund
./bootstrap.sh
./configure --sysconfdir=/etc --enable-debug
make -j4  // -j4 (use 4 cores) may have locked it up
make
sudo make install
git clone https://github.com/openthread/openthread

./configure --enable-ncp --enable-ftd --enable-commissioner --enable-joiner --enable-border-agent --enable-border-router --enable-commissioner --enable-udp-forward


Check wpan status

sudo wpanctl status