Re: about openthread and 6lowpan

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

On Wed, Sep 26, 2018 at 01:28:09PM +0000, Sujay G wrote:
> Alex,
> 
> I am referring to  the presentation you gave on  Netdev 2.1 IOT Without Things: Building virtual 6LoWPAN Mesh Networks
> I am trying to connect PHY0 and PHY1  as shown in the presentation but so far Iam unable to do so.
> I could get only following steps  from the video
> echo “add 1 2” > /sys/kernel/debug/fakelb/edges
> ip netns exec wpan0 sh ~/host lowpan0 0 &

this is old api. I wanted to replace debugfs with netlink which I did.
The feature what you are looking for is now upstream in a new driver
named "mac802154_hwsim" - you need a recent kernel...

Having two nodes connected to each other fakelb is enough. The new
driver allows you to run a individual mesh network with 1000 nodes
connected RIOT/Contiki/Linux/openthread/etc.... you need just enough
memory to run it. And I think with 1000 nodes it will run terrible slow,
because each userspace stack need to filter it _in_ userspace. But it's
possible...

> 
> Can you please provide the sequence of steps you used to connect PHY0 and PHY1 ?
> 

With mac802154_hwsim you need to have wpan_hwsim which I think are still
not part of wpan-tools upstream [0]. You need to apply these patches and
then run a recent kernel.

Then load mac802154_hwsim and using the tool which is more self
explained. Sorry I don't have any example currently how to set it up...
but you should try fakelb with 3 nodes, every phy is monitor.

Then on two monitors each running openthread. One monitor runs
wireshark/tshark, Then you should able too see the traffic between the
nodes.

- Alex

[0] https://www.spinics.net/lists/linux-wpan/msg05122.html



[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux