Nanostack Border Router is a generic mbed border router implementation that provides the 6LoWPAN ND or Thread border router initialization logic.

Committer:
mbed_official
Date:
Tue Mar 19 15:02:40 2019 +0000
Revision:
95:930ccc91b349
Parent:
82:3d9e3b7b3dcf
Corrected Wi-SUN certificate length calculation

mbed TLS expects null terminator to be calculated to PEM length.

.
Commit copied from https://github.com/ARMmbed/nanostack-border-router

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbed_official 0:85f4174a8e29 1 {
mbed_official 0:85f4174a8e29 2 "config": {
mbed_official 0:85f4174a8e29 3 "heap-size": {
mbed_official 0:85f4174a8e29 4 "help": "The amount of static RAM to reserve for nsdynmemlib heap",
mbed_official 65:92e581c01e8c 5 "value": 40000
mbed_official 0:85f4174a8e29 6 },
mbed_official 0:85f4174a8e29 7 "radio-type":{
mbed_official 0:85f4174a8e29 8 "help": "options are ATMEL, MCR20, SPIRIT1",
mbed_official 0:85f4174a8e29 9 "value": "ATMEL"
mbed_official 0:85f4174a8e29 10 },
mbed_official 0:85f4174a8e29 11 "backhaul-driver": {
mbed_official 65:92e581c01e8c 12 "help": "options are ETH, SLIP, EMAC",
mbed_official 69:a8a0ac9f3f8a 13 "value": "EMAC"
mbed_official 0:85f4174a8e29 14 },
mbed_official 0:85f4174a8e29 15 "mesh-mode": {
mbed_official 0:85f4174a8e29 16 "help": "Mesh networking mode. Options are LOWPAN_ND and THREAD",
mbed_official 0:85f4174a8e29 17 "value": "LOWPAN_ND"
mbed_official 0:85f4174a8e29 18 },
mbed_official 0:85f4174a8e29 19 "backhaul-mac-src": {
mbed_official 0:85f4174a8e29 20 "help": "Where to get EUI48 address. Options are BOARD, CONFIG",
mbed_official 0:85f4174a8e29 21 "value": "BOARD"
mbed_official 0:85f4174a8e29 22 },
mbed_official 0:85f4174a8e29 23 "backhaul-mac": "{0x02, 0x00, 0x00, 0x00, 0x00, 0x01}",
mbed_official 0:85f4174a8e29 24 "slip_hw_flow_control": "false",
mbed_official 0:85f4174a8e29 25 "slip_serial_baud_rate": "921600",
mbed_official 0:85f4174a8e29 26 "debug-trace": "false",
mbed_official 0:85f4174a8e29 27 "defined-BR-config": "true",
mbed_official 0:85f4174a8e29 28 "security-mode": "NONE",
mbed_official 0:85f4174a8e29 29 "psk-key-id": 1,
mbed_official 0:85f4174a8e29 30 "psk-key": "{0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf}",
mbed_official 0:85f4174a8e29 31 "pana-mode": "",
mbed_official 0:85f4174a8e29 32 "tls-psk-key": "{0xcf, 0xce, 0xcd, 0xcc, 0xcb, 0xca, 0xc9, 0xc8, 0xc7, 0xc6, 0xc5, 0xc4, 0xc3, 0xc2, 0xc1, 0xc0}",
mbed_official 0:85f4174a8e29 33 "tls-psk-key-id": 1,
mbed_official 0:85f4174a8e29 34 "pan-id": "0x0691",
mbed_official 0:85f4174a8e29 35 "network-id": "network000000000",
mbed_official 0:85f4174a8e29 36 "beacon-protocol-id": 4,
mbed_official 0:85f4174a8e29 37 "prefix": "fd00:db8::",
mbed_official 0:85f4174a8e29 38 "prefix-from-backhaul": true,
mbed_official 0:85f4174a8e29 39 "rf-channel": 12,
mbed_official 0:85f4174a8e29 40 "rf-channel-page": 0,
mbed_official 0:85f4174a8e29 41 "rf-channel-mask": "0x07fff800",
mbed_official 0:85f4174a8e29 42 "short-mac-address": "0xface",
mbed_official 0:85f4174a8e29 43 "backhaul-dynamic-bootstrap": true,
mbed_official 0:85f4174a8e29 44 "backhaul-prefix": "fd00:db8:ff1::",
mbed_official 0:85f4174a8e29 45 "backhaul-default-route": "::/0",
mbed_official 0:85f4174a8e29 46 "backhaul-next-hop": "fe80::1",
mbed_official 0:85f4174a8e29 47 "ra-router-lifetime": 1024,
mbed_official 0:85f4174a8e29 48 "rpl-instance-id": 1,
mbed_official 0:85f4174a8e29 49 "rpl-idoublings": 9,
mbed_official 0:85f4174a8e29 50 "rpl-imin": 12,
mbed_official 0:85f4174a8e29 51 "rpl-k": 10,
mbed_official 0:85f4174a8e29 52 "rpl-max-rank-inc": 2048,
mbed_official 0:85f4174a8e29 53 "rpl-min-hop-rank-inc": 128,
mbed_official 0:85f4174a8e29 54 "rpl-default-lifetime": 64,
mbed_official 0:85f4174a8e29 55 "rpl-lifetime-unit": 60,
mbed_official 0:85f4174a8e29 56 "rpl-pcs": 1,
mbed_official 0:85f4174a8e29 57 "rpl-ocp": 1,
mbed_official 0:85f4174a8e29 58 "multicast-addr": "ff05::7",
mbed_official 0:85f4174a8e29 59 "LED": "NC",
mbed_official 0:85f4174a8e29 60 "SERIAL_TX": "NC",
mbed_official 0:85f4174a8e29 61 "SERIAL_RX": "NC",
mbed_official 0:85f4174a8e29 62 "SERIAL_CTS": "NC",
mbed_official 0:85f4174a8e29 63 "SERIAL_RTS": "NC"
mbed_official 0:85f4174a8e29 64 },
mbed_official 0:85f4174a8e29 65 "target_overrides": {
mbed_official 0:85f4174a8e29 66 "*": {
mbed_official 65:92e581c01e8c 67 "target.network-default-interface-type": "ETHERNET",
mbed_official 65:92e581c01e8c 68 "nsapi.default-stack": "NANOSTACK",
mbed_official 0:85f4174a8e29 69 "mbed-trace.enable": 1,
mbed_official 0:85f4174a8e29 70 "nanostack.configuration": "lowpan_border_router",
mbed_official 0:85f4174a8e29 71 "platform.stdio-convert-newlines": true,
mbed_official 82:3d9e3b7b3dcf 72 "platform.stdio-baud-rate": 115200,
mbed_official 82:3d9e3b7b3dcf 73 "mbed-mesh-api.use-malloc-for-heap": true
mbed_official 0:85f4174a8e29 74 },
mbed_official 0:85f4174a8e29 75 "K64F": {
mbed_official 0:85f4174a8e29 76 "LED": "LED_GREEN",
mbed_official 0:85f4174a8e29 77 "SERIAL_TX": "PTE0",
mbed_official 0:85f4174a8e29 78 "SERIAL_RX": "PTE1",
mbed_official 0:85f4174a8e29 79 "SERIAL_CTS": "PTE2",
mbed_official 69:a8a0ac9f3f8a 80 "SERIAL_RTS": "PTE3",
mbed_official 69:a8a0ac9f3f8a 81 "kinetis-emac.tx-ring-len":4,
mbed_official 69:a8a0ac9f3f8a 82 "kinetis-emac.rx-ring-len":4
mbed_official 2:1411fd11ccdd 83 },
mbed_official 2:1411fd11ccdd 84 "K66F": {
mbed_official 69:a8a0ac9f3f8a 85 "LED": "LED_GREEN",
mbed_official 69:a8a0ac9f3f8a 86 "kinetis-emac.tx-ring-len":4,
mbed_official 69:a8a0ac9f3f8a 87 "kinetis-emac.rx-ring-len":4
mbed_official 0:85f4174a8e29 88 }
mbed_official 0:85f4174a8e29 89 }
mbed_official 0:85f4174a8e29 90 }