|
@@ -0,0 +1,146 @@
|
|
|
+menu "Doorkeeper Configuration"
|
|
|
+
|
|
|
+ menu "Ultrasonic sensor"
|
|
|
+ config DK_ULTRASONIC_CALIB_SAMPLE_SIZE
|
|
|
+ int "Calibration sample size"
|
|
|
+ range 1 1000
|
|
|
+ default 32
|
|
|
+ help
|
|
|
+ Number of readings to take when calibrating.
|
|
|
+ config DK_ULTRASONIC_CALIB_SLEEP
|
|
|
+ int "Calibration reading interval (milliseconds)"
|
|
|
+ range 1 1000
|
|
|
+ default 100
|
|
|
+ help
|
|
|
+ Milliseconds to sleep between calibration readings.
|
|
|
+ config DK_ULTRASONIC_CLOSED_CONFIDENCE
|
|
|
+ int "Closed confidence"
|
|
|
+ range 1 1000
|
|
|
+ default 5
|
|
|
+ help
|
|
|
+ Number of consecutive readings required to determine the door state as closed.
|
|
|
+ config DK_ULTRASONIC_OPEN_CONFIDENCE
|
|
|
+ int "Open confidence"
|
|
|
+ range 1 1000
|
|
|
+ default 3
|
|
|
+ help
|
|
|
+ Number of consecutive readings required to determine the door state as open.
|
|
|
+ config DK_ULTRASONIC_READING_INTERVAL
|
|
|
+ int "Reading interval (milliseconds)"
|
|
|
+ range 10 10000
|
|
|
+ default 200
|
|
|
+ config DK_ULTRASONIC_TRIGGER
|
|
|
+ int "Trigger pin"
|
|
|
+ range 0 39
|
|
|
+ default 25
|
|
|
+ help
|
|
|
+ GPIO pin connected to the trigger pin of the ultrasonic sensor.
|
|
|
+ config DK_ULTRASONIC_ECHO
|
|
|
+ int "Echo pin"
|
|
|
+ range 0 39
|
|
|
+ default 32
|
|
|
+ help
|
|
|
+ GPIO pin connected to the echo pin of the ultrasonic sensor.
|
|
|
+ endmenu
|
|
|
+ menu "DisplayManager"
|
|
|
+ config DK_DEFAULT_MESSAGE_TIMEOUT
|
|
|
+ int "Default message timeout (milliseconds)"
|
|
|
+ range 100 60000
|
|
|
+ default 1000
|
|
|
+ help
|
|
|
+ Default timeout for temporary messages to show on the display.
|
|
|
+ config DK_LCD_RS
|
|
|
+ int "RS pin"
|
|
|
+ range 0 39
|
|
|
+ default 17
|
|
|
+ help
|
|
|
+ GPIO pin connected to the RS pin of the LCD module.
|
|
|
+ config DK_LCD_E
|
|
|
+ int "E (EN) pin"
|
|
|
+ range 0 39
|
|
|
+ default 16
|
|
|
+ help
|
|
|
+ GPIO pin connected to the E (or EN) pin of the LCD module.
|
|
|
+ config DK_LCD_D4
|
|
|
+ int "D4 pin"
|
|
|
+ range 0 39
|
|
|
+ default 18
|
|
|
+ help
|
|
|
+ GPIO pin connected to the D4 pin of the LCD module.
|
|
|
+ config DK_LCD_D5
|
|
|
+ int "D5 pin"
|
|
|
+ range 0 39
|
|
|
+ default 19
|
|
|
+ help
|
|
|
+ GPIO pin connected to the D5 pin of the LCD module.
|
|
|
+ config DK_LCD_D6
|
|
|
+ int "D6 pin"
|
|
|
+ range 0 39
|
|
|
+ default 21
|
|
|
+ help
|
|
|
+ GPIO pin connected to the D6 pin of the LCD module.
|
|
|
+ config DK_LCD_D7
|
|
|
+ int "D7 pin"
|
|
|
+ range 0 39
|
|
|
+ default 22
|
|
|
+ help
|
|
|
+ GPIO pin connected to the D7 pin of the LCD module.
|
|
|
+ endmenu
|
|
|
+ menu "Buttons"
|
|
|
+ config DK_BUTTON1
|
|
|
+ int "Button 1 pin"
|
|
|
+ range 0 39
|
|
|
+ default 13
|
|
|
+ help
|
|
|
+ GPIO pin connected to button 1.
|
|
|
+ config DK_BUTTON2
|
|
|
+ int "Button 2 pin"
|
|
|
+ range 0 39
|
|
|
+ default 27
|
|
|
+ help
|
|
|
+ GPIO pin connected to button 2.
|
|
|
+ endmenu
|
|
|
+ menu "Networking"
|
|
|
+ config DK_SERVER_API_URL
|
|
|
+ string "Server API URL"
|
|
|
+ default "http://dev.api.doorkeeper.kraxor.net"
|
|
|
+ config DK_HTTP_CLIENT_TIMEOUT
|
|
|
+ int "HTTP client request timeout (milliseconds)"
|
|
|
+ range 0 60000
|
|
|
+ default 3000
|
|
|
+ config DK_PAIRING_WIFI_TIMEOUT
|
|
|
+ int "Pairing WiFi connection timeout (milliseconds)"
|
|
|
+ range 1000 60000
|
|
|
+ default 10000
|
|
|
+ help
|
|
|
+ Milliseconds to wait for the device to connect to the user's home WiFi network.
|
|
|
+ config DK_PAIRING_WIFI_MAX_RETRY
|
|
|
+ int "Pairing WiFi max retry attempts"
|
|
|
+ range 0 10
|
|
|
+ default 2
|
|
|
+ help
|
|
|
+ Maximum number of attempts to connect to the user's home WiFi.
|
|
|
+ NOTE: sometimes the connection fails on first attempt, even if the WPA password is correct.
|
|
|
+ endmenu
|
|
|
+ menu "EventManager"
|
|
|
+ config DK_EVENT_HTTP_RETRY_INTERVAL
|
|
|
+ int "EventManager HTTP retry interval (milliseconds)"
|
|
|
+ range 0 10000
|
|
|
+ default 2000
|
|
|
+ help
|
|
|
+ Milliseconds to wait before retrying sending an event to the server.
|
|
|
+ config DK_DEFAULT_NOOP_INTERVAL
|
|
|
+ int "Default NOOP interval (milliseconds)"
|
|
|
+ range 1000 3600000
|
|
|
+ default 10000
|
|
|
+ help
|
|
|
+ Milliseconds to wait between sending NOOP events.
|
|
|
+ NOTE: this will be overridden with the server setting once the first response is received from the server.
|
|
|
+ config DK_EVENT_QUEUE_SIZE
|
|
|
+ int "Event queue size"
|
|
|
+ range 1 1000
|
|
|
+ default 10
|
|
|
+ help
|
|
|
+ Maximum number of events to store in case the server is unreachable.
|
|
|
+ endmenu
|
|
|
+endmenu
|