net: remove obsolete 15.4 test case
Change-Id: Idc43b314accb690383bbddffe15ce36d846b1680 Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
47db990d44
commit
bf18ea2fe1
5 changed files with 0 additions and 135 deletions
|
@ -1,26 +0,0 @@
|
||||||
# Makefile - IP 15.4 test Makefile for nanokernel
|
|
||||||
|
|
||||||
#
|
|
||||||
# Copyright (c) 2011-2014, Wind River Systems, Inc.
|
|
||||||
#
|
|
||||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
# you may not use this file except in compliance with the License.
|
|
||||||
# You may obtain a copy of the License at
|
|
||||||
#
|
|
||||||
# http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
#
|
|
||||||
# Unless required by applicable law or agreed to in writing, software
|
|
||||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
# See the License for the specific language governing permissions and
|
|
||||||
# limitations under the License.
|
|
||||||
#
|
|
||||||
|
|
||||||
MDEF_FILE = prj.mdef
|
|
||||||
KERNEL_TYPE = micro
|
|
||||||
BOARD ?= qemu_x86
|
|
||||||
CONF_FILE = prj_$(ARCH).conf
|
|
||||||
SOURCE_DIR = $(ZEPHYR_BASE)/samples/net/test_15_4/src/
|
|
||||||
|
|
||||||
include $(ZEPHYR_BASE)/Makefile.inc
|
|
||||||
include $(ZEPHYR_BASE)/samples/net/test_15_4/Makefile.15_4
|
|
|
@ -1,84 +0,0 @@
|
||||||
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
|
|
|
@ -1,11 +0,0 @@
|
||||||
% Application : Network demo
|
|
||||||
|
|
||||||
% TASK NAME PRIO ENTRY STACK GROUPS
|
|
||||||
% ==================================
|
|
||||||
TASK TASKA 7 taskA 2048 [EXE]
|
|
||||||
TASK TASKB 7 taskB 2048 [EXE]
|
|
||||||
|
|
||||||
% SEMA NAME
|
|
||||||
% =============
|
|
||||||
SEMA TASKASEM
|
|
||||||
SEMA TASKBSEM
|
|
|
@ -1,6 +0,0 @@
|
||||||
CONFIG_NETWORKING=y
|
|
||||||
CONFIG_NETWORKING_WITH_LOGGING=y
|
|
||||||
CONFIG_NETWORKING_WITH_6LOWPAN=y
|
|
||||||
CONFIG_NETWORKING_WITH_15_4=y
|
|
||||||
CONFIG_NET_BUF_RX_SIZE=5
|
|
||||||
CONFIG_NET_BUF_TX_SIZE=3
|
|
|
@ -1,8 +0,0 @@
|
||||||
CONFIG_NETWORKING=y
|
|
||||||
CONFIG_NETWORKING_WITH_LOGGING=y
|
|
||||||
CONFIG_NETWORKING_WITH_6LOWPAN=y
|
|
||||||
CONFIG_NETWORKING_WITH_15_4=y
|
|
||||||
CONFIG_NET_BUF_RX_SIZE=5
|
|
||||||
CONFIG_NET_BUF_TX_SIZE=3
|
|
||||||
CONFIG_NET_15_4_LOOPBACK_NUM=1
|
|
||||||
CONFIG_NET_SANITY_TEST=y
|
|
Loading…
Add table
Add a link
Reference in a new issue