-
Notifications
You must be signed in to change notification settings - Fork 4
/
Extended.config.h
84 lines (68 loc) · 8.3 KB
/
Extended.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
// ---------------------------------------------------------------------------------------------------------------------------------
// Extended configuration for OnStep SmartWebServer infrequently used options
// *** Most users will not change anything in this file! ***
// ---------------------------------------------------------------------------------------------------------------------------------
// ADJUST THE FOLLOWING TO CONFIGURE YOUR CONTROLLER FEATURES ----------------------------------------------------------------------
// <-Req'd = always must set, <-Often = usually must set, Option = optional, Adjust = adjust as req'd, Infreq = infrequently changed
// DEBUG ------------------------------------------------------------ see https://onstep.groups.io/g/main/wiki/6-Configuration#DEBUG
// Enable additional debugging and/or status messages on the specified SERIAL_DEBUG port
// Note that the SERIAL_DEBUG port cannot be used for normal communication with OnStep
#define DEBUG OFF // OFF, Use ON for background error messages only, use VERBOSE for all Infreq
// error and status messages, use CONSOLE for VT100 debug console,
// or use PROFILER for VT100 task profiler.
#define DEBUG_SERVO OFF // OFF, n. Where n=1 to 9 as the designated axis for logging servo activity. Option
#define DEBUG_ECHO_COMMANDS OFF // OFF, Use ON to log command/responses to the debug serial port. Option
#define DEBUG_CONNECT_CHECK OFF // OFF, ON to enable debug code for connection checks. Infreq
#define DEBUG_SD OFF // OFF, ON to enable debug code for the SD card support, use VERBOSE for all. Infreq
#define DEBUG_WEBSERVER OFF // OFF, ON to enable debug code for the webserver. Infreq
#define DEBUG_CMDSERVER OFF // OFF, ON to enable debug code for the command server on port 9999. Infreq
#define SERIAL_DEBUG Serial // Serial, Use any h/w serial port. Serial1 or Serial2, etc. as supported. Option
#define SERIAL_DEBUG_BAUD 9600 // 9600, n. Where n=9600,19200,57600,115200 (common baud rates.) Option
// NON-VOLATILE STORAGE ------------------------------------------------------------------------------------------------------------
#define NV_WIPE OFF // OFF, Causes the defaults to be written back into NV (FLASH,EEPROM,etc.) Infreq
// *** IMPORTANT: ENABLE THIS OPTION THEN UPLOAD, WAIT A MINUTE ***
// Warning ---> // *** OR TWO THEN SET THIS OPTION TO OFF AND UPLOAD AGAIN. ***
// *** LEAVING THIS OPTION ENABLED CAN CAUSE EXCESSIVE NV ***
// *** WEAR AND DAMAGE THE MICROCONTROLLER NV SUBSYSTEM !!! ***
// SERIAL PORT COMMAND CHANNELS ------------------------------------ see https://onstep.groups.io/g/main/wiki/6-Configuration#SERIAL
#define SERIAL_A_BAUD_DEFAULT 9600 // 9600, n. Where n=9600,19200,57600,115200 (common baud rates.) Infreq
#define SERIAL_B_BAUD_DEFAULT OFF // OFF, n. Where n=9600,19200,57600,115200 (common baud rates.) Option
#define SERIAL_C_BAUD_DEFAULT OFF // OFF, n. Where n=9600,19200,57600,115200 (common baud rates.) Option
// NETWORK SETTINGS ----------------------------------------------------------------------------------------------------------------
#define CONNECT_RECHECK_TIME 60 // 60, n. Where n=1 to 60 seconds. Infreq
#define CONNECT_RESET_TRIES 5 // 5, n. Where n=1 to 60. Ethernet shield reset after connection attempts. Infreq
#define CONNECT_REBOOT_TRIES 10 // 10, n. Where n=CONNECT_RESET_TRIES to 60 before watchdog reboot is forced. Infreq
// IP ADDRESS SETTINGS -------------------------------------------------------------------------------------------------------------
// The unique (Ethernet) MAC address for your OCS
#define MAC {0xDE,0xAD,0xBE,0xEF,0xFE,0xEF}
// These settings are stored in NV (EEPROM) and will not revert to the defaults once first set from the values below unless
// NV is wiped, these settings (where applicable) can be changed at runtime however.
#define AP_ENABLED false // false, Wifi Access Point Enabled. Adjust
#define AP_SSID "OCS" // "OCS", Wifi Access Point SSID. Adjust
#define AP_PASSWORD "password" // "password", Wifi Access Point password. Adjust
#define AP_CHANNEL 7 // 7, Wifi Access Point channel. Adjust
#define AP_IP_ADDR {192,168,1,1} // ..,168,1,1}, Wifi Access Point IP Address. Adjust
#define AP_GW_ADDR {192,168,1,1} // ..,168,1,1}, Wifi Access Point GATEWAY Address. Adjust
#define AP_SN_MASK {255,255,255,0} // ..55,255,0}, Wifi Access Point SUBNET Mask. Adjust
#define STA_ENABLED true // true, Wifi Station Enabled. Adjust
#define STA_DHCP_ENABLED false // false, Ethernet/Wifi Station DHCP Enabled. Adjust
#define STA_SSID "Home" // "Home", Wifi Station SSID to connnect to. Adjust
#define STA_PASSWORD "password" // "password", Wifi Station mode password. Adjust
#define STA_IP_ADDR {192,168,1,50} // ..168,1,50}, Ethernet/Wifi Station IP Address. Adjust
#define STA_GW_ADDR {192,168,1,1} // ..,168,1,1}, Ethernet/Wifi Station GATEWAY Address. Adjust
#define STA_SN_MASK {255,255,255,0} // ..55,255,0}, Ethernet/Wifi Station SUBNET Mask. Adjust
// VISUAL --------------------------------------------------------------------------------------------------------------------------
#define REVERSE_WEATHER_CHART_X_AXIS OFF // OFF, ON reverses the weather charts x-axis so new data is to the left. Adjust
#define FAV_ICON OFF // OFF, ON and place favicon.ico file SD card root directory for website icon. Adjust
// WATCHDOG ------------------------------------------------------------------------------------------------------------------------
#define WATCHDOG_DURING_SD OFF // OFF, ON keeps the watchdog enabled at all times. Infreq
// ROOF/SHUTTER CONTROL PANEL ------------------------------------------------------------------------------------------------------
#define ROOF_TIME_LIMIT_SENSE_FAIL 6 // 6, n. Where n=1..60 (seconds) Time to limit switch disengage failure error. Infreq
#define ROOF_TIME_BUTTON_PRESS 1.0 // 1.0, n. Where n=1..10 (seconds) For garage door openers. Infreq
#define ROOF_TIME_PRE_MOTION 1.5 // 1.5, n. Where n=1..10 (seconds) For roof open interlock sense. Infreq
#define ROOF_TIME_POST_MOTION 2.0 // 2.0, n. Where n=1..10 (seconds) For roof close interlock sense. Infreq
// EXTERNAL GPIO SUPPORT -----------------------------------------------------------------------------------------------------------
#define GPIO_DEVICE OFF // OFF, MCP23008: for 8-ch I2C gpio. Option
// MCP23017, X9555, or X8575: for 16-ch I2C gpio.
// SSR74HC595: for up to 32-ch gpio (serial shift register, output only.)
// Works w/OCS sense and relays, channels assigned in order pin# 512 and up.