Skip to content

wpan-ping with hwsim #23

@Forty-Bot

Description

@Forty-Bot

This is more of a question than an issue, but I didn't get any response on IRC. I'm trying to get wpan-ping to work with hwsim:

$ sudo modprobe mac802154_hwsim
$ sudo iwpan dev wpan0 set pan_id 0xbeef
$ sudo iwpan dev wpan1 set pan_id 0xbeef
$ sudo iwpan dev wpan0 set short_addr 0x1000
$ sudo iwpan dev wpan1 set short_addr 0x1001
$ sudo ip link set wpan0 up
$ sudo ip link set wpan1 up
$ wpan-ping -i wpan1 -da 0x1000 &
Server mode. Waiting for packets...
$ wpan-ping -i wpan0 -a 0x1001
PING 0x1001 (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
Hit 500 ms packet timeout
^C

I can see packets on both interfaces in wireshark, but I don't see anything on the server. One odd thing I noticed is that wpan-ping always binds to 0x1000, even when I specify using wpan1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions