Installation

Installing BSB-LAN requires three steps:

  1. Installing the Arduino IDE in order to flash the BSB-LAN software onto the microcontroller
  2. Assembling the hardware parts
  3. Connecting BSB-LAN to the heating system

Installing the Arduino IDE and flashing BSB-LAN

  1. Download and unpack the current BSB-LAN version from the master repository or use git to clone the repository.
  2. Navigate to the BSB_LAN folder and rename the following files:
    1. BSB_LAN_custom_defs.h.default to BSB_LAN_custom_defs.h
    2. BSB_LAN_config.h.default to BSB_LAN_config.h.
  3. Download and install the Arduino IDE for your system.
  4. Connect your microcontroller (ESP32 or Arduino Due) to your computer and start the Arduino IDE.
  5. Go to Tools/Board/Board Manager and make sure that the framework for your board is installed ("esp32 by Espressif Systems" for ESP32 microcontroller, "Arduino SAM Boards (32-bits ARM Cortex-M3) by Arduino" for Arduino Due microcontroller)
  6. Again, go to Tools/Board and select your microcontroller:
    1. ESP32 Dev Module for the Joy-It ESP32 NodeMCU.
    2. Olimex ESP32-EVB for the ESP32-based Olimex EVB .
    3. Olimex ESP32-POE-ISO for the ESP32-based Olimex POE ISO
    4. Arduino Due (Programming Port) for the Arduino Due. Do not use the Native USB Port here!
  7. Again, go to Tools/Board and select the proper upload speed (460800 for ESP32, 115200 for Arduino Due).
  8. For ESP32-based microcontrollers, again, go to Tools/Board and select "Minimal SPIFFS (Large APPS with OTA)" for partition scheme (do not confuse this with the similar "Minimal" partition scheme which is different and not working in our case). If you don't set the correct parition scheme, the firmware will not fit into the ESP32!
  9. Go to File/Open and navigate to the BSB_LAN folder and double-click on BSB_LAN.ino. The project will open.
  10. You may now proceed to configure BSB-LAN.
  11. When you are done configuring, go to Sketch/Upload and upload the BSB-LAN software to the microcontroller.

Subsequent updates on ESP32-based microcontrollers "over the air" (OTA)

If you are running BSB-LAN on an ESP32-based microcontroller and have enabled Over-the-Air Updates in the settings, you can perform future updates of BSB-LAN using your browser. To do that, instead of using Sketch/Upload, you need to select Sketch/Export Compiled Binary. This will create a build folder in your BSB-LAN folder in which you will find among others the file BSB_LAN.ino.bin. Now open http://bsb-lan.local:8080 and select and upload that file. Do not interrupt the upload process. You may try to access BSB-LAN from a different browser window to see if the process is completed.
Please take note that this only applies to ESP32-based microcontrollers. Arduinos do not support this functionality.


Assembling the BSB-LAN adapter

You can either get a fully assembled adapter from Frederik (bsb(ät)code-it.de) or build one on your own (see the folder schematics for the schematics). Once you have the BSB-LAN adapter ready, you just need to plug it into the microcontroller. If you are using an Olimex microcontroller, double-check that the adapter really sits in the center of the connector, because it still fits even if it is moved by one pin row to the left or right.


Connecting BSB-LAN to the heating system

Once the microcontroller and the BSB-LAN adapter are ready, perform the following steps to connect BSB-LAN to the heating system:

  1. Unplug the microcontroller from your computer and turn off your heating system. Locate the BSB/LPB/PPS connectors. You may have to open your heating system for that. Have a look at the list of supported heating systems to get an idea where the pins are located.
    Do all this at your own risk!
    If you are not careful, you may damage your equipment!
    Especially take care to prevent electrostatic discharge (ESD) which can destroy both BSB-LAN and the heating controller!
  2. Now plug the BSB-LAN adapter onto the microcontroller and connect the + screw connector to the CL+ (BSB), DB (LPB) or A6 (PPS, different connector names are possible) connector, and the - screw connector to the CL- (BSB), MB (LPB) or M (PPS) connector. If there is no empty connector, there is no problem adding the wires for BSB-LAN to an already "used" connector, provided the wires are inserted carefully.
  3. Now you need to power on the microcontroller. Take note that the heating system does not power the microcontroller, even if the BSB-LAN adapter's LED turns on when you connect it to the heating system. You need to supply power to the microcontroller via its USB port (or via PoE on the Olimex POE-ISO). Make sure to use a stable power supply with at least 2 amperes. Once the microcontroller is powered on, turn on the heating system. The red LED of the BSB-LAN adapter should alight. It should flicker occasionally.
  4. Now open your webbrowser and open the IP address of BSB-LAN. If MDNS is enabled, you can directly go to http://bsb-lan.local. Otherwise, you can find the IP address of BSB-LAN either in your router, or you connect the microcontroller to your PC and open the Arduino IDE and go to Tools/Serial Monitor and set the serial monitor speed to 115200. Restart the microcontroller, and the IP address will be displayed upon connecting to the network.

Generating the device-specific parameter list

Once you access BSB-LAN for the first time, you will see that only very few parameters are shown on the device’s web interface. This is because each model of the Siemens controller built into your heating system supports a different set of parameters. Previously, I provided a list of parameters collected from all different kinds of heating systems, but it turned out that this list was ambiguous or even contained errors that we couldn’t fix reliably. This list is still available in release version 2.2.x of BSB-LAN and can be copied from there if needed.
However, it is not advisable to do so because the said ambiguities and errors pose too great a risk of misconfiguring the heating system. Instead, it is recommended to click on the "Device-specific parameter list" button in BSB-LAN's menu and send the generated list to Frederik (bsb(ät)code-it.de). From this file, a parameter list can be generated that fits exactly the controller of your heating system. Unfortunately, this process cannot be automated yet, but at least it has to be done just once. These raw data do not contain any settings or other kinds of personal data, just the parameter structure of the heating system.
It’s in my own interest to create and return these parameter lists without any delay, but I ask for your understanding if it takes a bit longer due to work or family matters.

Once you have received the parameter list (or taken the one from version 2.2.x), you have to replace the existing BSB_LAN_custom_defs.h file with the one sent to you, compile it and flash it again. Now you are ready to access all parameters.