-
-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy pathsyscfg.yml
65 lines (61 loc) · 4.35 KB
/
syscfg.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# System Configuration Setting Definitions:
# Below are the settings defined by this app and their default values. To change the settings,
# edit the target config file at targets/bluepill_my_sensor/syscfg.yml.
# Strings must be enclosed by '"..."'
syscfg.defs:
DEVICE_TYPE:
description: 'Device type that will be prepended to the Device ID'
value: '""'
# CoAP Server Connection Settings: Collector Node and Standalone Node will send sensor data to this server
COAP_HOST:
description: 'CoAP host e.g. 104.199.85.211 (for coap.thethings.io)'
value: '"104.199.85.211"'
COAP_PORT:
description: 'CoAP UDP port, usually port 5683'
value: 5683
COAP_URI:
description: 'CoAP URI e.g. v2/things/IVRiBCcR6HPp_CcZIFfOZFxz_izni5xc_KO-kgSA2Y8'
value: '"v2/things/IVRiBCcR6HPp_CcZIFfOZFxz_izni5xc_KO-kgSA2Y8"'
# Hardware IDs (12 bytes) of the Collector Node and Sensor Nodes: We shall decide whether this node is a Collector or Sensor Node by matching these Hardware IDs.
COLLECTOR_NODE_HW_ID:
description: 'Hardware ID of Collector Node (ESP8266 + nRF24L01) e.g. 0x57, 0xff, 0x6a, 0x06, 0x78, 0x78, 0x54, 0x50, 0x49, 0x29, 0x24, 0x67'
value: 0x57, 0xff, 0x6a, 0x06, 0x78, 0x78, 0x54, 0x50, 0x49, 0x29, 0x24, 0x67
SENSOR_NODE_HW_ID_1:
description: 'Hardware ID of Sensor Node 1 (nRF24L01) e.g. 0x38, 0xff, 0x6d, 0x06, 0x4e, 0x57, 0x34, 0x36, 0x25, 0x58, 0x08, 0x43'
value: 0x38, 0xff, 0x6d, 0x06, 0x4e, 0x57, 0x34, 0x36, 0x25, 0x58, 0x08, 0x43
SENSOR_NODE_HW_ID_2:
description: 'Hardware ID of Sensor Node 2 (nRF24L01) e.g. 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x02'
value: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x02
SENSOR_NODE_HW_ID_3:
description: 'Hardware ID of Sensor Node 3 (nRF24L01) e.g. 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x03'
value: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x03
SENSOR_NODE_HW_ID_4:
description: 'Hardware ID of Sensor Node 4 (nRF24L01) e.g. 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x04'
value: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x04
SENSOR_NODE_HW_ID_5:
description: 'Hardware ID of Sensor Node 5 (nRF24L01) e.g. 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x05'
value: 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0a, 0x0b, 0x05
# nRF24L01 Addresses of the Collector Node and Sensor Nodes: Addresses shall be assigned to the nodes by matching the Hardware IDs above.
# These addresses don't need to be changed unless there is another nRF24L01 network using these addresses.
# Derived from the sample network here: https://www.sparkfun.com/datasheets/Components/nRF24L01_prelim_prod_spec_1_2.pdf
COLLECTOR_NODE_ADDRESS:
description: 'nRF24L01 Address (5 bytes) of the Collector Node e.g. 0x7878787878ull. May be different from the Sensor Node Addresses. "ull" is required because this is an unsigned long long number.'
value: 0x7878787878ull
SENSOR_NETWORK_ADDRESS:
description: 'nRF24L01 Address (first 4 bytes) of the Sensor Nodes e.g. 0xb3b4b5b6ull. All Sensor Node Addresses will be prefixed by these 4 bytes, like b3b4b5b6XX. "ull" is required because this is an unsigned long long number.'
value: 0xb3b4b5b6ull
SENSOR_NODE_OFFSET_1:
description: 'nRF24L01 Address (last byte) of Sensor Node 1 e.g. 0xf1. Sensor Node Address looks like b3b4b5b6f1'
value: 0xf1
SENSOR_NODE_OFFSET_2:
description: 'nRF24L01 Address (last byte) of Sensor Node 2 e.g. 0xcd. Sensor Node Address looks like b3b4b5b6cd'
value: 0xcd
SENSOR_NODE_OFFSET_3:
description: 'nRF24L01 Address (last byte) of Sensor Node 3 e.g. 0xa3. Sensor Node Address looks like b3b4b5b6a3'
value: 0xa3
SENSOR_NODE_OFFSET_4:
description: 'nRF24L01 Address (last byte) of Sensor Node 4 e.g. 0x0f. Sensor Node Address looks like b3b4b5b60f'
value: 0x0f
SENSOR_NODE_OFFSET_5:
description: 'nRF24L01 Address (last byte) of Sensor Node 5 e.g. 0x05. Sensor Node Address looks like b3b4b5b605'
value: 0x05