Skip to content

Commit

Permalink
Cosmetic changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fredlcore committed Jul 1, 2024
1 parent 636a962 commit ed5232d
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 9 deletions.
2 changes: 1 addition & 1 deletion BSB_LAN/BSB_LAN_config.h.default
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ byte subnet_addr[4] = {255,255,255,0}; // Subnet address. Please use commas ins

char wifi_ssid[32] = "YourWiFiNetwork"; // enter your WiFi network name (SSID) here
char wifi_pass[64] = "YourWiFiPassword";// enter your WiFi password here
uint8_t bssid[6] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; // enter specific BSSID address here to ensure connecting to a specific router. Leave all zeros in normal circumstances.
uint8_t bssid[6] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00}; // enter specific BSSID address here to ensure connecting to a specific access point. Set to all zeros under normal circumstances.

//#define WIFISPI // Activate this on the Arduino to enable WiFi via WiFiSpi. DO NOT enable this on an ESP32.
#define WIFI_SPI_SS_PIN 12 // defines SPI-SS pin for Arduino-ESP8266 connection
Expand Down
50 changes: 42 additions & 8 deletions docs/EN/configure.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Configuration
There are two ways to configure BSB-LAN:

1. Through the configuration file `BSB_LAN_config.h``
1. Through the configuration file `BSB_LAN_config.h`
1. Through the web-interface by calling [http://bsb-lan.local/C](http://bsb-lan.local/C) (or the corresponding IP address)

For the initial configuration, some settings have to be configured in the configuration file (such as language and network settings).
Expand All @@ -13,7 +13,7 @@ On an ESP32-based microcontroller, BSB-LAN will set up its own wireless access p
---
## Configuration through `BSB_LAN_config.h``

The configuration file consists of variables that are used in other parts of BSB-LAN. It is therefore important to only change the *contents* of the variables (i.e. the settings) and not the *type* of the variables. So if there is for example the setting
The configuration file consists of variables that are used in other parts of BSB-LAN. It is therefore important to **only change the contents** of the variables (i.e. the settings) and **not the type** of the variables. So if there is for example the setting
`byte ip_addr[4] = {192,168,178,88};`
you must not alter the `byte ip_addr[4] =` part, only the contents, in this case the comma-separated IP address.
---
Expand All @@ -25,29 +25,34 @@ Initially, only a selected number of configuration options are displayed in the
## Overview of configuration options
<style>
table th:first-of-type {
width: 0%;
width: 20%;
}
table th:nth-of-type(2) {
width: 0%;
width: 20%;
}
table th:nth-of-type(3) {
width: 80%;
width: 40%;
}
table th:nth-of-type(4) {
width: 20%;
}
</style>
### General Settings
|Web-Interface|Configuration File|Functionality|Possible settings|
|-------------|------------------|-------------|---------|
|-------------|------------------|-------------|-----------------|
|- |**`#define LANG`**|Set language |`DE`, `EN`, `FR` and other ISO country codes|
|- |`#define DEFAULT_FLAG`|Set read/write access to heating system. `FL_RONLY` sets all parameters to read-only. `FL_SW_CTL_RONLY` allows setting read/write access via web-interface configuration setting.<BR>`0` makes all parameters that could be written writeable. **Do not use this option unless instructed otherwise!**|**FL_RONLY**<BR>**FL_SW_CTL_RONLY**<BR>**0**|
|Display extended configuration|-|Show all configuration options|**On**<br>**Off**|
|Read config from EEPROM|`UseEEPROM`|Read configuration from EEPROM or file|**On** (`1`)<br>**Off** (`0`)|
|Write access (level)|- |If `DEFAULT_FLAG`is set to `FL_SW_CTL_RONLY`, you can set the level of write access here.|**Off** (read-only)<br>**On (Standard)**<br>**On (Complete)**
|Check for updates|`enable_version_check`|Query BSB-LAN server for new available version|**On** (`true`)|
|OTA Update|`enable_ota_update`|Enable over-the-air (OTA) update|**On** (`true`)|
|Energy saving|`esp32_save_energy`|Reduces speed, saves energy. Do not enable when using WiFi.|**On** (`true`)<br>**Off** (`false`)|
|Webserver file system|`webserver`|Enables serving files from SD card|**On** (`true`)<br>**Off** (`false`)|
|- |`#define DEFAULT_FLAG`|Set read/write access to heating system. `FL_RONLY` sets all parameters to read-only. `FL_SW_CTL_RONLY` allows setting read/write access via web-interface configuration setting.<BR>`0` makes all parameters that could be written writeable. **Do not use this option unless instructed otherwise!**|**FL_RONLY**<BR>**FL_SW_CTL_RONLY**<BR>**0**|

### Bus settings
|Web-Interface|Configuration File|Functionality|Possible settings|
|-------------|------------------|-------------|-----------------|
|Bus type|`bus_type`|Bus type (BSB/LPB/PPS)|**BSB** (`0`)<br>**LPB** (`1`)<br>**PPS** (`2`)|
|PPS: mode|`pps_write`|BSB-LAN can act as a PPS room unit (only if no real room unit is connected) or just listen passively.|**passive** (`0`)<br>**as room unit** (`1`)|
|PPS: QAA model|`QAA_TYPE`|Room unit that should be simulated for PPS bus|**QAA70** (`0x53`), **QAA50** (`0x52`), **QAA95** (`0x37`), **QAW10** (`0x4D`), **QAW20** (`0x4E`), **MCBA/REA70/DC225** (`0x58`), **QAA10** (`0x5A`), **QAA20** (`0x5B`), **QAA12/13** (`0x5D`), **BMU** (`0x66`), **RVD130** (`0x43`)|
Expand All @@ -56,6 +61,10 @@ table th:nth-of-type(4) {
|Device family|`fixed_device_family`|Set the device family that BSB-LAN should emulate. Leave at `0` for auto-detection.|**0** (`0`)|
|Device variant|`fixed_device_variant`|Set the device variant that BSB-LAN should emulate. Leave at `0` for auto-detection|**0** (`0`)|
|RX pin number<br>TX pin number|`bus_pins`|Define the RX/TX pins to communicate with the BSB-LAN adapter. Leave at `0` for auto-detection.|**0** and **0** (`0, 0`)|

### Network settings
|Web-Interface|Configuration File|Functionality|Possible settings|
|-------------|------------------|-------------|-----------------|
|**Network device**|**`network_type`**|Choose between WLAN and LAN to connect BSB-LAN to the network.|**LAN** (`0`)<br>**WLAN** (`1`)|
|**WLAN SSID**|**`wifi_ssid`**|Set the WLAN network name when using WLAN.|**Your_WLAN_name** (`Your_WLAN_name`)|
|**WLAN password**|**`wifi_pass`**|Set the WLAN password when using WLAN.|**YourWLANpassword** (`YourWLANpassword`)|
Expand All @@ -71,26 +80,51 @@ table th:nth-of-type(4) {
|URL Passkey|`PASSKEY`|Passkey adds a user-defined sequence that needs to be added to the URL after the hostname.<BR>For example, a passkey of `1234` requires every URL to be written as `http://bsb-lan.local/1234/` instead of just `http://bsb-lan.local/1234/`. Leave empty for no passkey.|**1234** (`1234`)|
|Trusted IP address|`trusted_ip_addr`|Access to BSB-LAN is only possible from this IP address. Same notation as with IP address.|**192.168.178.89** (`192,168,178,89`)|
|Trusted IP address|`trusted_ip_addr2`|Access to BSB-LAN is only possible from this IP address. Same notation as with IP address.|**192.168.178.90** (`192,168,178,90`)|
|-|`bssid`|Enter a specific BSSID address here to ensure connecting to a specific access point. Set to all zeros under normal circumstances.|(`0x00, 0x00, 0x00, 0x00, 0x00, 0x00`)|
|-|`ntp_server`|Set an NTP server here to acquire exact time for BSB-LAN. Set to empty string if you don't want to use NTP. ESP32-based microcontrollers only.|(`pool.ntp.org`)|
|-|`local_timezone`|Timezone to use for NTP. See [here](https://github.com/nayarsystems/posix_tz_db/blob/master/zones.csv) for a complete list.|(`CET-1CEST,M3.5.0,M10.5.0/3`)|

### Logging

|Web-Interface|Configuration File|Functionality|Possible settings|
|-------------|------------------|-------------|-----------------|
|Storage device|`LogDestination`|Select the destination for logging activities. SD card is highly recommended, as using the internal flash will wear out the internal flash eventually.|**SD card** (`SDCARD`)<br>**Internal Flash Storage** (`FLASH`)|
|**Logging mode**|`LoggingMode`|Set the logging destinations/activities. Multiple selections are possible, for the configuration file, the values have to be added, for example, to send to MQTT broker and to UDP, set the value to `4 + 8 = 12`|**Write to SD card** (`1`)<br>**Calculate 24h averages** (`2`)<br>**Send to MQTT broker** (`4`)<br>**Send to UDP** (`8`)|
|**Logging Interval**|`log_interval`|Interval for logging activities (in seconds)|**60** (`60`)|
|**Log Parameters**|`log_parameters`|List of logging parameters. See addressing instructions below.|**8700, 8743!2, 8314!2** (`{8700, -1}, {8743, 2}, {8314, 2}`)|
|Log bus telegrams|`logTelegram`|Log raw bus telegrams, such as broadcast messages or unknown telegrams|**Off** (`LOGTELEGRAM_OFF`)<br>**Log all bus telegrams** (`LOGTELEGRAM_ON`)<br>**Log unknown bus telegrams only** (`LOGTELEGRAM_UNKNOWN_ONLY`)<br>**Log broadcast bus telegrams only** (`LOGTELEGRAM_BROADCAST_ONLY`)<br>**Log unknown broadcast bus telegrams only** (`LOGTELEGRAM_UNKNOWN_ONLY + LOGTELEGRAM_BROADCAST_ONLY`)|
|24h averages parameters|`avg_parameters`|List of parameters for generating 24 hour averages. See addressing instructions below.|**8700, 8743!2, 8314!2** (`{8700, -1}, {8743, 2}, {8314, 2}`)|
|-|`#define DEFAULT_DAYS_TO_PLOT`|Define default number of days to plot logging data|(`3`)|

### MQTT

|Web-Interface|Configuration File|Functionality|Possible settings|
|-------------|------------------|-------------|-----------------|
|**MQTT Broker server**|`mqtt_broker_addr`|Hostname/IP of the MQTT broker|**my-mqtt-broker.local** (`my-mqtt-broker.local`)|
|MQTT Username|`MQTTUsername`|Optional username for MQTT broker|**MyMQTTusername** (`MyMQTTusername`)|
|MQTT Password|`MQTTPassword`|Optional password for MQTT broker|**MyMQTTpassword** (`MyMQTTpassword`)|
|MQTT Device ID|`MQTTDeviceID`|Device identifier for MQTT|**BSB-LAN** (`BSB-LAN`)|
|MQTT Topic prefix|`MQTTTopicPrefix`|Topic prefix for MQTT|**BSB-LAN** (`BSB-LAN`)|
|MQTT Usage|`mqtt_mode`|Set the format for MQTT messages|**Plain text** (`1`) - Send parameter number and value in plain text format<br>**JSON** (`2`) - Send messages in JSON format (parameter number and value only)<br>**Rich JSON** (`3`) - Send parameter number/name/value/unit/error in JSON format.|

### Sensors and external devices

|Web-Interface|Configuration File|Functionality|Possible settings|
|-------------|------------------|-------------|-----------------|
|OneWire Pins|`One_Wire_Pin`|Set the OneWire pin (use `-1` in configuration file to disable)|**10** (`10`)|
|DHT Pins|`DHT_Pins`|Set the DHT22 sensor pins (use `-1` in configuration file to disable)|**11, 12, 13** (`11, 12, 13, -1, -1, -1, -1, -1, -1, -1`)
|BME280 sensors|`BME_Sensors`|Set number of BME280 sensors on the I2C bus. You need to have access to I2C pins. Fixed addresses `0x76` and `0x77` will be used. Use `0` to disable.|**1** (`1`)|
|MAX! Usage|`enable_max_cul`|Enable or disable connection to CUNO/CUNX/modified MAX!Cube|**On** (`true`)<br>**Off** (`false`)||
|IP address cube|`max_cul_ip_addr`|IP address of the CUNO/CUNX/MAX!Cube|**192.168.178.21** (`192,168,178,21`)|
|MAX! Devices|`max_device_list`|IDs of MAX! devices to be polled|**KEQ0502326, KEQ0505080, KHA0002948** (`"KEQ0502326", "KEQ0505080", "KHA0002948"`)|
|IPWE Usage|`enable_ipwe`|Enable IPWE extension (`/ipwe.cgi`)|**On** (`true`)<br>**Off** (`false`)|
|IPWE Parameters|`ipwe_parameters`|||
|IPWE Parameters|`ipwe_parameters`|List of parameters for display in IPWE extension. See addressing instructions below.|8700, 8743!2, 8314!2 ({8700, -1}, {8743, 2}, {8314, 2})|
|-|`#define CUSTOM_COMMANDS`|Enable custom functions||

### Debugging

|Web-Interface|Configuration File|Functionality|Possible settings|
|-------------|------------------|-------------|-----------------|
|Debugging Usage|`debug_mode`|Select debug output|**Off** (`0`)<br>**Serial** (`1`)<br>**Telnet** (`2`)|
|Verbosity mode|`verbose`|Enable or disable verbose debug messages (do not turn off unless advised)|**On** (`1`)<br>**Off** (`0`)|
|Monitor mode|`monitor`|Enable or disable monitor mode (do not turn on unless advised)|**On** (`1`)<br>**Off** (`0`)|
Expand Down

0 comments on commit ed5232d

Please sign in to comment.