zephyr/samples/net/wpanusb
Kumar Gala c1881b22fe samples: net: wpanusb: Fix build error due to missing USB device vid/pid
We removed the default values for:
* CONFIG_USB_DEVICE_VID
* CONFIG_USB_DEVICE_PID

So put some dummy values in the sample.yaml to get things building
again.

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
2017-10-25 11:52:50 +02:00
..
src samples/wpan: Use set_filter() instead of former API function 2017-10-13 13:48:32 +03:00
Makefile samples: remove obsolete KERNEL_TYPE 2016-12-20 01:12:43 +00:00
prj.conf arch: intel_quark: use DW device driver when USB is selected 2017-06-28 15:14:15 -04:00
README wpanusb: Export ieee802.14.5 over USB 2016-12-02 12:40:46 +02:00
sample.yaml samples: net: wpanusb: Fix build error due to missing USB device vid/pid 2017-10-25 11:52:50 +02:00
wpan-radio-spec.txt wpanusb: Update wpan protocol document 2016-12-02 12:41:05 +02:00

This application exports ieee802154 radio over USB to be used in other
Operation Systems like Linux. In this scenario Linux SoftMAC driver would
be used implementing ieee802154 stack inside Linux.

When connected to Linux it is recognized by Linux with wpanusb kernel
driver as:

...
T:  Bus=01 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  3 Spd=12  MxCh= 0
D:  Ver= 1.10 Cls=ff(vend.) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=8086 ProdID=ff03 Rev=01.00
C:  #Ifs= 1 Cfg#= 1 Atr=c0 MxPwr=100mA
I:  If#= 0 Alt= 0 #EPs= 1 Cls=ff(vend.) Sub=00 Prot=00 Driver=wpanusb
...

bring it up with:

#!/bin/sh

PHY=`iwpan phy | grep wpan_phy | cut -d' ' -f2`

echo 'Using phy' $PHY

iwpan dev wpan0 set pan_id 0xabcd
iwpan dev wpan0 set short_addr 0xbeef
iwpan phy $PHY set channel 0 26
ip link add link wpan0 name lowpan0 type lowpan
ip link set wpan0 up
ip link set lowpan0 up