-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.h
59 lines (45 loc) · 2.24 KB
/
config.h
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
#ifndef __CONFIG_H__
#define __CONFIG_H__
// the active channel plan is the one that will be compiled
// options are :
// CP_US915
// CP_AU915
// CP_EU868
// CP_KR920
// CP_AS923
// CP_AS923_2
// CP_AS923_3
// CP_AS923_JAPAN
// CP_AS923_JAPAN1
// CP_AS923_JAPAN2
// CP_IN865
// CP_RU864
#if !defined(CHANNEL_PLAN)
#define CHANNEL_PLAN CP_US915
#endif
/*** LoRaWAN configuration ***/
// #define CONFIG_LORA_NETWORK_NAME "multitech"
// #define CONFIG_LORA_NETWORK_PASSPHRASE "multitech"
#define CONFIG_NETWORK_ID { 0x6C, 0x4E, 0xEF, 0x66, 0xF4, 0x79, 0x86, 0xA6 }
#define CONFIG_NETWORK_KEY { 0x1F, 0x33, 0xA1, 0x70, 0xA5, 0xF1, 0xFD, 0xA0, 0xAB, 0x69, 0x7A, 0xAE, 0x2B, 0x95, 0x91, 0x6B }
#define CONFIG_LORA_GEN_APP_KEY { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x0A, 0x0B, 0x0C, 0x0D, 0x0E, 0x0F }
#define CONFIG_LORA_FSB 1
#define CONFIG_LORA_NETWORK_TYPE lora::PUBLIC_LORAWAN
#define CONFIG_LORA_JOIN_DELAY 5
#define CONFIG_LORA_ACK 1
#define CONFIG_LORA_ADR true
/*** FOTA configuration ***/
// multitech.com
#define CONFIG_FOTA_VENDOR_ID { 0x66, 0x70, 0x1f, 0x8f, 0x4e, 0x29, 0x5a, 0xd2, 0xbf, 0x2f, 0xfd, 0x1b, 0xcc, 0xca, 0x42, 0xca }
#if defined(TARGET_MTS_MDOT_F411RE)
// MTDOT
#define CONFIG_FOTA_CLASS_ID { 0x7a, 0x4c, 0xc6, 0x21, 0x7a, 0x04, 0x32, 0x09, 0xb8, 0x3c, 0x8b, 0x91, 0x0f, 0x86, 0x6c, 0xa4 }
#elif defined(TARGET_XDOT_L151CC)
// XDOT
#define CONFIG_FOTA_CLASS_ID { 0xb2, 0xc3, 0x41, 0x35, 0x17, 0xbf, 0x37, 0xbd, 0xa4, 0x65, 0x2d, 0x71, 0x41, 0x89, 0x93, 0x0d }
#endif
#define CONFIG_FOTA_SIG_PUB_KEY { 0x04, 0x5f, 0x06, 0x46, 0xa2, 0x03, 0x1f, 0x3f, 0xb0, 0x5e, 0xca, 0x86, 0x9c, 0x78, 0x5c, 0xc3, 0xf9, 0x57, 0xf3, 0x4d, 0xef, 0x25, 0x5e, 0x2e, 0x33, 0x65, 0x07, 0xb9, 0x14, 0x02, 0xaf, 0xa1, 0x22, 0x1c, 0x7c, 0x48, 0xc0, 0x06, 0xf3, 0xe9, 0xe4, 0x1b, 0xad, 0xb9, 0xfc, 0xc7, 0xb9, 0xcd, 0x15, 0x00, 0xba, 0x39, 0x6d, 0x43, 0xdd, 0x18, 0x1f, 0x24, 0x25, 0x54, 0x18, 0x23, 0x4f, 0xe7, 0x74 }
/*** External storage device type ***/
#define CONFIG_EXT_FLASH_SPIF 0
#define CONFIG_EXT_FLASH_DATAFLASH 0
#endif /* __CONFIG_H__ */