RE: things not working - newbie questions

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

 



Hello,

> On Friday, April 9, 2021 10:28 AM, Alexander Aring <alex.aring@xxxxxxxxx> wrote:
> 
> please tell us all the steps which you are doing with mac802154_hwsim, the
> good part of that I can type it here as exactly what you do and then I can tell
> you why it's not working.

I ran these commands to setup the simulated devices:
-----
modprobe mac802154_hwsim

iwpan dev wpan0 set pan_id 0xbeef
iwpan dev wpan1 set pan_id 0xbeef

iwpan dev wpan0 set short_addr 0x0001
iwpan dev wpan1 set short_addr 0x0002

ip link add link wpan0 name lowpan0 type lowpan
ip link add link wpan1 name lowpan1 type lowpan

ip link set wpan0 up
ip link set wpan1 up

ip link set lowpan0 up
ip link set lowpan1 up
-----

Running ifconfig yielded:
-----
pi@raspberrypi:~ $ ifconfig
lowpan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1280
        inet6 fe80::bcef:ff:fe00:1  prefixlen 64  scopeid 0x20<link>
        inet6 fe80::8847:2953:b010:47c8  prefixlen 64  scopeid 0x20<link>
        unspec 8A-47-29-53-B0-10-47-C8-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 15  bytes 2222 (2.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 19  bytes 2558 (2.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lowpan1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1280
        inet6 fe80::308e:2e6b:58a7:1ae0  prefixlen 64  scopeid 0x20<link>
        inet6 fe80::bcef:ff:fe00:2  prefixlen 64  scopeid 0x20<link>
        unspec 32-8E-2E-6B-58-A7-1A-E0-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 15  bytes 2222 (2.1 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 19  bytes 2558 (2.4 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wpan0: flags=195<UP,BROADCAST,RUNNING,NOARP>  mtu 123
        unspec 8A-47-29-53-B0-10-47-C8-00-00-00-00-00-00-00-00  txqueuelen 300  (UNSPEC)
        RX packets 27  bytes 2086 (2.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 27  bytes 2383 (2.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wpan1: flags=195<UP,BROADCAST,RUNNING,NOARP>  mtu 123
        unspec 32-8E-2E-6B-58-A7-1A-E0-00-00-00-00-00-00-00-00  txqueuelen 300  (UNSPEC)
        RX packets 27  bytes 2086 (2.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 27  bytes 2383 (2.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
-----


Then I ran "wpan-ping -d"
-----
pi@raspberrypi:~/devicetree $ wpan-ping -d
Server mode. Waiting for packets...
-----

I then opened a 2nd window and ran "wpan-ping -a 0x0001 -c 5 -i wpan0
-----
pi@raspberrypi:~ $ wpan-ping -a 0x0001 -c 5 -i wpan0
PING 0x0001 (PAN ID 0xbeef) 5 data bytes
Hit 500 ms packet timeout
Hit 500 ms packet timeout
Hit 500 ms packet timeout
Hit 500 ms packet timeout
Hit 500 ms packet timeout

--- 0x0001 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss
rtt min/avg/max = 2147483.750/0.000/0.000 ms

pi@raspberrypi:~ $ ifconfig
lowpan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1280
        inet6 fe80::bcef:ff:fe00:1  prefixlen 64  scopeid 0x20<link>
        inet6 fe80::8847:2953:b010:47c8  prefixlen 64  scopeid 0x20<link>
        unspec 8A-47-29-53-B0-10-47-C8-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 31  bytes 3997 (3.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 36  bytes 4405 (4.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lowpan1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1280
        inet6 fe80::308e:2e6b:58a7:1ae0  prefixlen 64  scopeid 0x20<link>
        inet6 fe80::bcef:ff:fe00:2  prefixlen 64  scopeid 0x20<link>
        unspec 32-8E-2E-6B-58-A7-1A-E0-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 32  bytes 4069 (3.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 35  bytes 4333 (4.2 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wpan0: flags=195<UP,BROADCAST,RUNNING,NOARP>  mtu 123
        unspec 8A-47-29-53-B0-10-47-C8-00-00-00-00-00-00-00-00  txqueuelen 300  (UNSPEC)
        RX packets 47  bytes 3460 (3.3 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 53  bytes 4112 (4.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wpan1: flags=195<UP,BROADCAST,RUNNING,NOARP>  mtu 123
        unspec 32-8E-2E-6B-58-A7-1A-E0-00-00-00-00-00-00-00-00  txqueuelen 300  (UNSPEC)
        RX packets 53  bytes 3529 (3.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 47  bytes 3977 (3.8 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
-----

I tried it with wpan1 as well:
-----
pi@raspberrypi:~ $ wpan-ping -a 0x0001 -c 5 -i wpan1
PING 0x0001 (PAN ID 0xbeef) 5 data bytes
Hit 500 ms packet timeout
Hit 500 ms packet timeout
Hit 500 ms packet timeout
Hit 500 ms packet timeout
Hit 500 ms packet timeout

--- 0x0001 ping statistics ---
5 packets transmitted, 0 received, 100% packet loss
rtt min/avg/max = 2147483.750/0.000/0.000 ms

pi@raspberrypi:~ $ ifconfig
lowpan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1280
        inet6 fe80::bcef:ff:fe00:1  prefixlen 64  scopeid 0x20<link>
        inet6 fe80::8847:2953:b010:47c8  prefixlen 64  scopeid 0x20<link>
        unspec 8A-47-29-53-B0-10-47-C8-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 32  bytes 4069 (3.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 36  bytes 4405 (4.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lowpan1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1280
        inet6 fe80::308e:2e6b:58a7:1ae0  prefixlen 64  scopeid 0x20<link>
        inet6 fe80::bcef:ff:fe00:2  prefixlen 64  scopeid 0x20<link>
        unspec 32-8E-2E-6B-58-A7-1A-E0-00-00-00-00-00-00-00-00  txqueuelen 1000  (UNSPEC)
        RX packets 32  bytes 4069 (3.9 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 36  bytes 4405 (4.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wpan0: flags=195<UP,BROADCAST,RUNNING,NOARP>  mtu 123
        unspec 8A-47-29-53-B0-10-47-C8-00-00-00-00-00-00-00-00  txqueuelen 300  (UNSPEC)
        RX packets 48  bytes 3504 (3.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 58  bytes 4192 (4.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wpan1: flags=195<UP,BROADCAST,RUNNING,NOARP>  mtu 123
        unspec 32-8E-2E-6B-58-A7-1A-E0-00-00-00-00-00-00-00-00  txqueuelen 300  (UNSPEC)
        RX packets 58  bytes 3554 (3.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 48  bytes 4032 (3.9 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
-----

I feel I am missing some crucial detail.

Thanks,
Mark





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

  Powered by Linux