Skip to content

Commit 7e23c22

Browse files
author
Seppo Takalo
committed
Add 6LoWPAN and Thread test configuration
1 parent 9836b9b commit 7e23c22

File tree

6 files changed

+113
-1
lines changed

6 files changed

+113
-1
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"config": {
3+
"echo-server-addr" : {
4+
"help" : "IP address of echo server",
5+
"value" : "\"echo.mbedcloudtesting.com\""
6+
},
7+
"echo-server-port" : {
8+
"help" : "Port of echo server",
9+
"value" : "7"
10+
}
11+
},
12+
"target_overrides": {
13+
"*": {
14+
"target.network-default-interface-type": "MESH",
15+
"nsapi.default-stack": "NANOSTACK",
16+
"nsapi.default-mesh-type": "LOWPAN",
17+
"nanostack.configuration": "lowpan_host",
18+
"mbed-mesh-api.heap-size": 14000,
19+
"mbed-mesh-api.6lowpan-nd-device-type": "NET_6LOWPAN_HOST",
20+
"mbed-mesh-api.6lowpan-nd-panid-filter": "0xffff",
21+
"mbed-mesh-api.6lowpan-nd-channel-page": 0,
22+
"mbed-mesh-api.6lowpan-nd-channel": 12,
23+
"mbed-mesh-api.6lowpan-nd-channel-mask": "(1<<12)",
24+
"mbed-trace.enable": false
25+
}
26+
}
27+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"config": {
3+
"echo-server-addr" : {
4+
"help" : "IP address of echo server",
5+
"value" : "\"echo.mbedcloudtesting.com\""
6+
},
7+
"echo-server-port" : {
8+
"help" : "Port of echo server",
9+
"value" : "7"
10+
}
11+
},
12+
"target_overrides": {
13+
"*": {
14+
"target.network-default-interface-type": "MESH",
15+
"nsapi.default-stack": "NANOSTACK",
16+
"nsapi.default-mesh-type": "LOWPAN",
17+
"nanostack.configuration": "lowpan_router",
18+
"mbed-mesh-api.heap-size": 14000,
19+
"mbed-mesh-api.6lowpan-nd-device-type": "NET_6LOWPAN_ROUTER",
20+
"mbed-mesh-api.6lowpan-nd-panid-filter": "0xffff",
21+
"mbed-mesh-api.6lowpan-nd-channel-page": 0,
22+
"mbed-mesh-api.6lowpan-nd-channel": 12,
23+
"mbed-mesh-api.6lowpan-nd-channel-mask": "(1<<12)",
24+
"mbed-trace.enable": false
25+
}
26+
}
27+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"config": {
3+
"echo-server-addr" : {
4+
"help" : "IP address of echo server",
5+
"value" : "\"echo.mbedcloudtesting.com\""
6+
},
7+
"echo-server-port" : {
8+
"help" : "Port of echo server",
9+
"value" : "7"
10+
}
11+
},
12+
"target_overrides": {
13+
"*": {
14+
"target.network-default-interface-type": "MESH",
15+
"nsapi.default-stack": "NANOSTACK",
16+
"nsapi.default-mesh-type": "THREAD",
17+
"nanostack.configuration": "thread_end_device",
18+
"mbed-mesh-api.thread-device-type": "MESH_DEVICE_TYPE_THREAD_MINIMAL_END_DEVICE",
19+
"mbed-mesh-api.thread-config-panid": "0x0700",
20+
"mbed-mesh-api.thread-master-key": "{0x10, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}",
21+
"mbed-mesh-api.thread-config-channel": 22,
22+
"mbed-trace.enable": false
23+
}
24+
}
25+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"config": {
3+
"echo-server-addr" : {
4+
"help" : "IP address of echo server",
5+
"value" : "\"echo.mbedcloudtesting.com\""
6+
},
7+
"echo-server-port" : {
8+
"help" : "Port of echo server",
9+
"value" : "7"
10+
}
11+
},
12+
"target_overrides": {
13+
"*": {
14+
"target.network-default-interface-type": "MESH",
15+
"nsapi.default-stack": "NANOSTACK",
16+
"nsapi.default-mesh-type": "THREAD",
17+
"nanostack.configuration": "thread_router",
18+
"mbed-mesh-api.thread-device-type": "MESH_DEVICE_TYPE_THREAD_ROUTER",
19+
"mbed-mesh-api.thread-config-panid": "0x0700",
20+
"mbed-mesh-api.thread-master-key": "{0x10, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff}",
21+
"mbed-mesh-api.thread-config-channel": 22,
22+
"mbed-trace.enable": false
23+
}
24+
}
25+
}

tools/test_configs/config_paths.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,9 @@
55
"HEAPBLOCKDEVICE_AND_WIFI": "HeapBlockDeviceAndWifiInterface.json",
66
"ESP8266_WIFI" : "ESP8266Interface.json",
77
"ISM43362_WIFI" : "ISM43362Interface.json",
8-
"IDW0XX1_WIFI" : "SpwfSAInterface.json"
8+
"IDW0XX1_WIFI" : "SpwfSAInterface.json",
9+
"6LOWPAN_HOST" : "6lowpanInterface_host.json",
10+
"6LOWPAN_ROUTER" : "6lowpanInterface_router.json",
11+
"THREAD_END_DEVICE" : "ThreadInterface_end_device.json",
12+
"THREAD_ROUTER" : "ThreadInterface_router.json"
913
}

tools/test_configs/target_configs.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,9 @@
4242
"NUCLEO_F401RE": {
4343
"default_test_configuration": "NONE",
4444
"test_configurations": ["IDW0XX1_WIFI"]
45+
},
46+
"NCS36510": {
47+
"default_test_configuration": "6LOWPAN_HOST",
48+
"test_configurations": ["6LOWPAN_HOST", "6LOWPAN_ROUTER", "THREAD_ROUTER", "THREAD_END_DEVICE"]
4549
}
4650
}

0 commit comments

Comments
 (0)