Open spiderkeys opened 3 years ago
Test Configuration:
# Install Rust 1.55 or later (stable)
curl https://sh.rustup.rs -sSf | sh
cd bristlemouth git clone https://github.com/eclipse-zenoh/zenoh cd zenoh
cargo build -j3 --all-targets
- Next, use the IPv6:MeshLocalAddress value obtained from wpanctl status to start a zenohd listener in a terminal:
```bash
# Port 7474 chosen as an example; use whatever you like
./target/debug/zenohd -l udp/fd10:9b50:100e:0:60df:9983:d08a:c29f:7474
./target/debug/examples/zn_pub -e udp/fd10:9b50:100e:0:60df:9983:d08a:c29f:7474
# Specify the appropriate device here. Make sure not to accidentally use the USB dongle's device path
picocom -b /dev/ttyACM1
[00:00:00.254,455] <inf> ieee802154_nrf5: nRF5 802154 r*** Booting Zephyr OS build zephyr-v20600 ***
adio initialized
[00:00:00.274,139] <inf> fs_nvs: 8 Sectors of 4096 bytes
[00:00:00.274,169] <inf> fs_nvs: alloc wra: 4, c90
[00:00:00.274,169] <inf> fs_nvs: data wra: 4, 5e8
[00:00:00.300,018] <inf> net_l2_openthread: State changed! Flags: 0x101fc300 Current role: 0
[00:00:00.300,323] <inf> net_l2_openthread: OpenThread version: OPENTHREAD/; Zephyr; Oct 7 2021 23:47:53
[00:00:00.307,800] <inf> net_l2_openthread: Network name: Bristlenet
[00:00:00.325,958] <inf> net_l2_openthread: State changed! Flags: 0x0100103d Current role: 1
[00:00:00.331,207] <inf> net_config: Initializing network
[00:00:00.346,008] <inf> net_l2_openthread: State changed! Flags: 0x000010e4 Current role: 2
[00:00:00.359,954] <inf> net_l2_openthread: State changed! Flags: 0x00000200 Current role: 2
uart:~$ Connecting!
resolve: 0
ConnectedStarted read task
Awaiting data
>> [Subscription listener] Received (/demo/example/zenoh-rs-pub, [ 0] Pub from Rust!)
>> [Subscription listener] Received (/demo/example/zenoh-rs-pub, [ 1] Pub from Rust!)
>> [Subscription listener] Received (/demo/example/zenoh-rs-pub, [ 2] Pub from Rust!)
>> [Subscription listener] Received (/demo/example/zenoh-rs-pub, [ 3] Pub from Rust!)
Once this is working, switch the locators over to tcp on both sides to test that protocol (currently has issues receiving any new messages after the first 32 are received).
Clone repo
git clone https://github.com/openthread/wpantund cd wpantund
Build
./bootstrap.sh ./configure --sysconfdir=/etc make -j3
Install
sudo make install
In a terminal, run an instance of wpantund, specifying the appropriate serial device
sudo wpantund -o Config:NCP:SocketPath /dev/ttyACM0 \ -o Config:TUN:InterfaceName wpan0 \ -o Daemon:SyslogMask " -info"
Use wpanctl to configure the network parameters and form a network that will be used to communicate with the nrf52840_mdk board.
wpanctl -Iwpan0 leave form Bristlenet -c 24 -x 109B50100E620D10 -p 0xC5E9 -k 000102030405060708090A0B0C0D0E0F permit-join 999999
wpanctl:wpan0> status wpan1 => [ "NCP:State" => "associated" "Daemon:Enabled" => true "NCP:Version" => "OPENTHREAD/0.01.00; NRF52840; May 21 2019 21:43:12" "Daemon:Version" => "0.08.00d (0.07.01-363-ga8f3f76; Sep 28 2021 21:29:20)" "Config:NCP:DriverName" => "spinel" "NCP:HardwareAddress" => [51D3239956E0557C] "NCP:Channel" => 26 "Network:NodeType" => "leader" "Network:Name" => "Bristlenet" "Network:XPANID" => 0x109B50100E620D10 "Network:PANID" => 0xC5E9 "IPv6:LinkLocalAddress" => "fe80::780e:66d4:cd2:831f" "IPv6:MeshLocalAddress" => "fd10:9b50:100e:0:60df:9983:d08a:c29f" "IPv6:MeshLocalPrefix" => "fd10:9b50:100e::/64" "com.nestlabs.internal:Network:AllowingJoin" => false ]