zephyr/samples/net/wpan_serial
Jukka Rissanen bd3908b2a9 net: nbuf: Add timeout to net_buf getters
This commit changes the net_buf getter functions in nbuf.h
by adding a timeout parameter. These function prototypes
are changed to accept a timeout parameter.
	net_nbuf_get_rx()
	net_nbuf_get_tx()
	net_nbuf_get_data()
	net_nbuf_get_reserve_rx()
	net_nbuf_get_reserve_tx()
	net_nbuf_get_reserve_data()
	net_nbuf_copy()
	net_nbuf_copy_all()
	net_nbuf_push()
	net_nbuf_append()
	net_nbuf_write()
	net_nbuf_insert()

Following convinience functions have not been changed
	net_nbuf_append_u8
	net_nbuf_append_be16
	net_nbuf_append_be32
	net_nbuf_insert_u8
	net_nbuf_insert_be16
	net_nbuf_insert_be32
	net_nbuf_write_u8
	net_nbuf_write_be16
	net_nbuf_write_be32
so they call the base function using K_FOREVER. Use the
base function if you want to have a timeout when net_buf
is allocated.

Change-Id: I20bb602ffb73069e5a02668fce60575141586c0f
Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
2017-02-08 10:12:35 +02:00
..
src net: nbuf: Add timeout to net_buf getters 2017-02-08 10:12:35 +02:00
Makefile samples: remove obsolete KERNEL_TYPE 2016-12-20 01:12:43 +00:00
README wpan_serial: Update README 2016-12-02 12:41:03 +02:00
prj.conf drivers/net/ieee802154: Change configuration prefix 2017-02-08 10:12:35 +02:00
testcase.ini wpan_serial: Implement 802.15.4 serial radio protocol 2016-12-02 12:40:52 +02:00

README

Application implementing 802.15.4 "serial-radio" protocol.

How to use:

1. Build and flash Zephyr application to Quark board with 802.15.4 radio,
   at the moment CC2520 radio is supported.
2. Connect board to Linux PC, /dev/ttyACM[number] should appear
3. Run Contiki-based native border router (6lbr, native-router, etc)
     Example for Contiki:
     $ cd examples/ipv6/native-border-router
     $ make
     $ sudo ./border-router.native -v5 -s ttyACM0 fd01::1/64

Now you have Contiki native border router, simple web server should show some
802.15.4 devices. Web server address is printed in the border-router output
screen:
...
Server IPv6 addresses:
 0x62c5c0: =>fd01::212:4b00:531f:113a
...
Go to http://[fd01::212:4b00:531f:113a]/

It shall show you Neighbors and Routes.

PS: Make sure your disto ModemManager is disabled, otherwise it sends AT commands
to our device ;)

$ sudo systemctl disable ModemManager.service