zephyr/samples/network/test_15_4
Ravi kumar Veeramally 5e965ca8ca net: apps: Remove unused nanosems
Change-Id: I0c62ad9919d5915438a85adc4a2afcca8e23950a
Signed-off-by: Ravi kumar Veeramally <ravikumar.veeramally@linux.intel.com>
2016-02-05 20:24:39 -05:00
..
src net: apps: Remove unused nanosems 2016-02-05 20:24:39 -05:00
Makefile Change BSD-3 licenses to Apache 2 2016-02-05 20:24:29 -05:00
Makefile.15_4 Change BSD-3 licenses to Apache 2 2016-02-05 20:24:29 -05:00
README net: apps: Simplify 802.15.4 test application setup 2016-02-05 20:15:41 -05:00
prj.mdef net: 15.4: Add 802.15.4 driver and 802.15.4 loopback radio driver 2016-02-05 20:14:30 -05:00
prj_arm.conf arm: remove ENHANCED_SECURITY config from projects 2016-02-05 20:24:20 -05:00
prj_x86.conf x86: change the default for ENHANCED_SECURITY to no 2016-02-05 20:24:20 -05:00
testcase.ini net: apps: Add testcase.ini script for sanitychecks 2016-02-05 20:24:37 -05:00

README

802.15.4 test Application:

1) Loopback in single qemu:

    $ make qemu0

 This enables the dummy driver will feed sending 802.15.4 frames back to
 15_4 Rx FIFO. 15_4 Rx FIFO will asseble all frames and feed it to IP Rx FIFO.


2) Loopback between two qemus without monitoring support:

    $ make qemu1

 Then in second window start the other qemu

    $ make qemu2

 If you want to run test 3) then you need to remove the pipes before
 doing so.

    $ make remove_pipes

3) Loopback between two qemus with monitoring support:

    $ make qemu1monitor

 Then in second window start the monitor (found in net/ip/tools directory)
    $ ./monitor_15_4 sample.pcap

 Then in third window start the other qemu

    $ make qemu2monitor

 If you want to run test 2) then you need to remove the pipes before
 doing so.

    $ make remove_pipes



Expert and more detailed instructions:
--------------------------------------
You can execute the tests manually if needed. Just follow the instructions
below.

802.15.4 test Application:

 1) Loopback in single qemu:
 Enable CONFIG_NETWORKING_WITH_15_4_LOOPBACK config option in prj_x86/arm.conf
 to test 802.15.4. By enabling this option dummy driver will feed sending
 802.15.4 frames back to 15_4 Rx FIFO. 15_4 Rx FIFO will asseble all frames
 and feed it to IP Rx FIFO.

 2) Loopback between two qemus:
 Enable CONFIG_NETWORKING_WITH_15_4_LOOPBACK_UART config option in
 prj_x86/arm.conf to send 802.15.4 frames out through QEMU UART and receive
 frames through QEMU UART.

 Follow below simple steps to create fifos at host.

 $ mkfifo /tmp/ip-15-4-1.{in,out}
 $ ln /tmp/ip-15-4-1.in /tmp/ip-15-4-2.out
 $ ln /tmp/ip-15-4-1.out /tmp/ip-15-4-2.in

 Open two terminals and run two qemus with below options.
 $ make qemu QEMU_NUM=1 CONFIG_NETWORKING_WITH_15_4_LOOPBACK_UART=y
 $ make qemu QEMU_NUM=2 CONFIG_NETWORKING_WITH_15_4_LOOPBACK_UART=y

 3) Loopback between two qemus and pcap support:
 Enable CONFIG_NETWORKING_WITH_15_4_LOOPBACK_UART config option in
 prj_x86/arm.conf to send 802.15.4 frames out through QEMU UART and receive
 frames through QEMU UART.

 Follow below simple steps to create fifos at host.

 $ mkfifo /tmp/ip-15-4-1.{in,out}
 $ mkfifo /tmp/ip-15-4-2.{in,out}

 also read net/ip/contiki/tools/README and run monitor_15.4
 and then

 $ make qemu QEMU_NUM=1 CONFIG_NETWORKING_WITH_15_4_LOOPBACK_UART=y
 $ make qemu QEMU_NUM=2 CONFIG_NETWORKING_WITH_15_4_LOOPBACK_UART=y