Software and firmware

Software

ATS MQTT Client - Mobile application for Android and iOS

It allows you to observe data from devices and send commands to them.

The list of changes for the application version is available on the store pages.

LKTools for Windows

Filename: LKTools_1.1.6_win.zip (10.1 MB)

Program for finding Lan Controllers in the local network and for flashing firmware. The discovery function works for HW 3.5 SW 1.26+, HW 2.5, HW 2.0, and flashing works for HW 2.x and HW 3.x.

For Windows 10, 8, 7, XP (64-bit and 32-bit)

LKTools for Linux

Filename: LKTools_1.1.6_linux.tar.gz (12.8 MB)

Program for finding Lan Controllers in the local network and for flashing firmware. The discovery function works for HW 3.5 SW 1.26+, HW 2.5, HW 2.0, and flashing works for HW 2.x and HW 3.x.

For Linux 64-bit (tested with Ubuntu 18.04)

Program do generowania WWW | Program for generating WWW

Filename: lk3_generator.zip (109.7 MB)

Home Assistant Integration

Filename: lk3homeassistant-v0.6.1.zip (16.5 KB)

Integration for Home Assistant.
Installation instructions in README.md.

Updated for Lan Controller SW 1.35

Firmware for HW 3.5, 3.6, 3.7, 3.8

Firmware and documents for HW 3.0 are availabe in archives now.

v1.42b (June 10, 2021)

Filename: lc35_v1_42b.bin (537.1 KB)

Added
  • Option 4800 for bitrate in custom Modbus module configuration.
Changed
  • The upgrade WWW function has been removed - in order to upload a WWW file, the command curl can be used.
  • Entering field names in a custom Modbus module configuration (limit of 15 charcters is also checked during editing form, not only on saving form).
Fixed
  • Saving a GSM form.
  • Setting field names (there was a chance that while entering value it would be replaced by the value refreshed from device).
  • Saving MQTT Client form with special characters in the username or password.
  • Preventing empty unit fields from being set in a custom Modbus module configuration (it resulted in corruption of entered data).
v1.40 (May 12, 2021)

Filename: lc35_v1_40.bin (538.1 KB)

NOTE: After uploading the firmware, it is necessary to set the Login and Password fields in the MQTT Client.

Added
  • Field for setting the APN for a GSM modem, format "apn","user","password", e.g. "internet","","".
  • GMQ125 ozone sensor support in Serial Port (not tested with sensor).
  • BME680 support (currently wrong pressure measurement and no IAQ measurement).
  • Possibility to enter multi-line texts of e-mails and SMSes.
  • Possibility to enter variable values in the text of e-mails and SMSs, similar to HTTP Client and OLED (%XXXA).
  • Display of user-defined names for Action in Events, for U in Power and Energy.
  • ENERGY1-4, m1-10 options for the Source field in Events.
  • RESET ENERGY1-4 options for the Action field in Events.
  • Option Delay between register reads for custom configuration of the Modbus module.
  • Sending DISCONNECT packet when closing MQTT connection as a result of expected action (device restart, change of MQTT client settings).
Changed
  • The maximum number of characters in the Login field has been increased to 99 and in the Password field to 199 in MQTT Client.
  • SSL_MAX_CONTENT_LEN has been increased to 4096 to support larger certificates in TLS.
Fixed
  • Support for SIM800L module.
  • Checking for new firmware - does not show information about new firmware if it is already on the device (v1.38b showed v1.38b as new).
  • The Docs Helper field on small screens has been reduced so that it does not cover side navigation.
  • TCP/IP stack (LWIP), internal fixes.
  • LK starts other services/connections (HTTP, Discovery, MQTT, etc.) only after setting the IP address (static, with DHCP or default if DHCP will not grant an address).
  • Remembering the state of PWM after restart.
v1.38b (March 24, 2021)

Filename: lc35_v1_38b.bin (530.9 KB)

NOTE: After uploading the firmware, it is necessary to set the Login and Password fields in the MQTT Client.

Changed
  • The maximum number of characters in the Login and Password fields in MQTT Client has been increased to 63.
Fixed
  • Display of user-defined names in selection lists.
v1.38a (March 17, 2021)

Filename: lc35_v1_38a.bin (530.8 KB)

Added
  • User (non-administrator) accounts only have access to outs.cgi queries (outputs control).
Fixed
  • Selecting readings for sending in the MQTT Client.
  • Sending readings from non-standard Modbus modules via MQTT taking into account the dividers.
v1.38 (March 15, 2021)

Filename: lc35_v1_38.bin (530.4 KB)

Added
  • Support for scales RHEWA 82comfort via Serial Port (reading available in HTTP Client and OLED).
  • DIFF3 and Modbus m1-m30 available via SNMP.
  • Cutter (B parameter) can be used for Date and Time in OLED.
  • Property Subject Alternative Name to built-in certificate for HTTPS. Fixes issue in Chrome on Linux, where it was difficult to access LK page over HTTPS.
  • Function Learn more to the webpage navbar, which links to various documentation pages, depending on currently displayed page.
Changed
  • Reverted change from SW 1.36 about setting outputs from reboot function. Now it sets the state of output to 0 (default off state).
  • Reverted change from SW 1.36 about operation of events with the same Action related to OUT, PWM, EVENT. Now each event is independent and in order to relate many events with each other, it must be done explicitly, e.g. by means of EVENT variables and an additional event on them.
  • Action AutoSwitch in events now remembers output state before enabling AutoSwitch function, and sets this state after the event is no longer active.
Fixed
  • HTTP POST requests with longer data no longer restart the LK.
v1.36 (Feb. 23, 2021)

Filename: lc35_v1_36.bin (527.2 KB)

NOTE: Due to significant changes, the settings in the Modbus, MQTT Client, HTTP Client, OLED, Power and Energy tabs, must be verified and corrected after updating.

Added
  • Mapping up to 30 Modbus readings for use in HTTP client, MQTT client, OLED, VOLED, and the first 4 mappings in power and energy settings. The mapping consists in assigning a selected reading from a given slot to the variable m1 -m30, under which it will be available in the mentioned functions.
  • Configuration of up to 3 custom Modbus devices. Configuration can be exported to a file and imported from a file. Sample files available in the online documentation.
  • Power selection Power1-4 as Input in PID.
  • Saving the state of the Event variables to backup.
  • Event4-8 variables can be selected as Action in the Scheduler.
  • HTTP vout command to set the state of Event variables (/outs.cgi?voutX=Y, where X=0-7, Y=0-1).
  • Possibility to select DIFF1-3 as a component of the DIFF operation excluding the operation itself, i.e. DIFF1 cannot be selected as a component in DIFF1, only DIFF2 and DIFF3.
Changed
  • Modbus function changed to support up to three independent devices on one Modbus bus.
  • References to Modbus/SDM, e.g. in power and energy settings, require the mapping setting in the Modbus tab.
  • Changed format for inserting values in HTTP Client and OLED to %XXXAB from %XXAB. The reading numbers were also changed above 67 inclusive.
  • The names of the MQTT topics on which the data is sent changed from sdm1 - sdm14 to m1 - m14 and the new m15 - m30.
  • Action of events with Action option related to OUT, PWM, EVENT. Active events with the same action, eg OUT1=0 are considered together at each change of their conditions with priority for the action of the event whose conditions are met. Previously, the action for event whose conditions have changed recently was applied.
  • The multiplier of analog inputs can be negative.
  • In the Watchdog function, setting Restart limit to 0 will result in the limit being lifted (restarts can be performed indefinitely).
  • Command reboot (sms with GSM overlay) and autoswitch instead of setting the state to 0, it does a negation.
  • The sdm.xml file contains the first 14 readings from 1 Modbus slot. Complete data in json files.
Fixed
  • PID function, works correctly with active Modbus (lower CPU load).
  • Sending e-mail notifications (in extreme cases they could burden LK to such an extent that the web server stopped responding).
  • Operation of the TCP stack.
  • Operation of Basic Authentication.
  • The speed of the web server (json/xml files are generated faster).
  • Renaming T1, H1, P1.
v1.32c (Nov. 25, 2020)

Filename: lc35_v1_32c.bin (507.8 KB)

Added
  • Support for Sofarsolar inverters in Modbus.
  • Possibility to select VCC in DIFF.
  • Operation of multiplication and division in DIFF.
Changed
  • The number of numbers for SMS notifications has been increased to 4. When entering, separate numbers with a colon :.
Fixed
  • Reading in Modbus.
  • Saving readings from sensors connected to the serial port. As a result, improved operation of the virtual OLED function.
  • Effect of changing the unit W <==> kW for SDM measurements (Power and Energy tab).
  • Reading the GSM module console on the website (GSM in Serial port).
  • Setting the IP address after resetting to default settings (with and without DHCP server).
v1.31 (Oct. 22, 2020)

Filename: lc35_v1_31.bin (497.3 KB)

Added
  • Support for Digest Authentication in HTTP client.
  • Virtual OLED in OLED tab (might not work when CO2 sensor is connected - it will be fixed in next version).
Fixed
  • Handling POST request when authentication is enabled in Access tab (Basic Authentication), for example saving scheduler list or list of users.
v1.30 (Oct. 13, 2020)

Filename: lc35_v1_30.bin (492.1 KB)

Added
  • Possibility to set the states of OUT and PWM outputs in Modbus TCP.
  • Option that allows to enter the character % without inserting variables in the HTTP client (with this option enabled, to insert a variable, enter %%).
  • Controlling the filling of the PWM signal depending on the set time. After switching on, the filling starts from 0 and after a certain time it reaches the set value.
  • Possibility to send MQTT data via GSM modem, with and without TLS.
  • Choose whether to remember (with supercap) the status of outputs after restart or not (Outputs tab).
  • Reset measured energy E1-E4 in Scheduler.
Changed
  • Increasing the amount of data in a GET query in the HTTP client from 255 to 511 characters (the number of characters is checked while typing).
Fixed
  • Reading registers in Modbus TCP.
  • Counting pulses on INPDx inputs.
  • Switching of the outputs after reset after the set time.
  • Energy counting by SDM meters.
v1.28d (Sept. 10, 2020)

Filename: lc35_v1_28d.bin (487.8 KB)

Added
  • Variable date in OLED and HTTP client in two formats:
    • yyyy-mm-dd for divisor = 0
    • yyyymmdd for divisor = 1
  • Variable time in OLED and HTTP client in two formats:
    • hh:mm:ss for divisor = 0
    • hhmmss for divisor = 1
Fixed
  • Change bitrate in SDM120 - Modbus.
  • Date and time display on OLED and HTTP client.
v1.28a (Aug. 3, 2020)

Filename: lc35_v1_28a.bin (487.1 KB)

Added
  • Partial support for Sofarsolar and GTIL inverters over Modbus.
  • Support for Danfos EKC202C temperature controller via Modbus. Reading data via MQTT (command modbusread on topic /cmd and response on /cmdr) or via HTTP (/json/modbus_ekc202c.json).
  • Support for Basic authentication in the HTTP client. An example of an entry: admin:pass@adres.ip:80/xxxxxxxxx.
  • Option to display on OLED and send by the HTTP client the date and time (reading code 84 and 83).
Fixed
  • The fields User, From, To, Subject in the Email section are extended to 64 characters.
  • Authentication to the device (Basic authentication).
  • Reading Epever Tracer via Modbus (bug from v1.28).
v1.24 (April 10, 2020)

Filename: lc35_v1_24.bin (478.7 KB)

Added
  • The option to skip the login page, available in the tab Settings -> Automatic sign in.
  • The mqtt command to restart LK.
  • New device (Epever tracer1210 - solar charger) for operation via Modbus.
  • 3 additional fields with phone numbers for sending sms. In the events sms1 -> message1 and number1, sms2 -> message2 and number2, etc.
Fixed
  • Energy setting.
v1.22c (March 10, 2020)

Filename: lc35_v1_22c.bin (476.4 KB)

Added
  • Choice of units for Power and energy: W, kW, l/min, m3/min.
  • Possibility of changing the I2C bus frequency for sensors and OLED. The lower frequency for the sensors allows the cables to be lengthened. Turning on OLED forces a minimum frequency of 50kHz. If the sensors are working properly, please do not change the frequency (experimental function).
Fixed
  • Reading values via DIFF and saving settings to DIFF3.
  • Read from ACS709.
  • Displaying EVENT status in Events.
v1.21 (Dec. 27, 2019)

Filename: lc35_v1_21.bin (461.0 KB)

Added
  • Email header, so that it sends Polish characters Content-Type: text/plain; charset=utf-8; format=flowed;Content-Transfer-Encoding: 8bit;Content-Language: pl (as suggested by user rpce).
  • Support for barcode and QR reader (e.g. YHDM300) via serial port. The read code is automatically sent by mqtt.
  • Support for the JSN-SR04T-2.0 ultrasonic distance sensor, working in Mode 2. Also added to Events.
  • Section Sent on change in the MQTT Client tab, containing INPT1, INPT2 and BARCODE. Mqtt data is sent when there is a change at these inputs.
  • Three additional email notifications in Events (eMail 1 - eMail 4). Each eMail x output has two text fields - the first sent when the event is activated, the second when deactivated (as in the SMS section). The text fields are in the Email tab.
  • Possibility to insert variables in the sent email text, just like in the OLED and HTTP Client tabs.
  • Saving the status of all outputs (OUT0-OUT5, PWM0-PWM3) after a power outage, if we have a backup battery connected to the two-pin connector located just behind the INPDx inputs.
Fixed
  • Sending Events status by mqtt in Events.
  • Setting the inputs in DIFF2 and DIFF3 after restart.
  • Setting the power in the Power and Energy tab (in version 1.19 multiplied by 1000).
  • Reconnection after disconnection from the mqtt server.
  • GSM support on the serial port.
v1.19 (Nov. 8, 2019)

Filename: lc35_v1_19.bin (457.4 KB)

NOTE: after upgrading controllers in HW 3.5 and 3.6, it may be necessary to reset to factory settings for proper operation if Serial Port was used before.

Added
  • TLS (formerly SSL) encryption for HTTPS, EMAIL (port 465), MQTTS (port 8883), SNMP v3. Turning on encryption on the Network tab will extend the initial page load to more than 1s. You must accept a certificate that does not come from a trusted CA. Depending on the browser, information about the encrypted connection (padlock) will be visible or not. The connection, however, is encrypted, which is also shown by the green padlock on the left side of the upper bar on the Lan Controller page.
  • VIN for choice for Power and Energy measurement.
  • Edition of 1-Wire sensors. Each time the Read ID ... button is pressed, the address of the next sensor will be shown.
  • Editing entries in Events.
  • Editing entries in the Scheduler.
  • MQTT CONNECTION as a source in Events. The main application is autonomous operation or control by the mqtt server.
  • MQTT as an output in Events. Sends mqtt data when the selected input generates an event. The main application is sensor alerts.
  • MQTT receives EVENT1-8 topics to remotely control a given virtual event, e.g. event1=1 or event1=0. Helpful with more advanced server remote control.
  • MQTT sends pulse time on topics inpt1 and inpt2 when the option Impulse time is selected in the options for INPD.
  • Ability to enter (at the pressure sensor) altitude above sea level to display normalized pressure. Setting 0 will result in displaying the absolute value like it was so far.
  • DIFF3, can be used to measure the voltage of individual batteries in a 48V battery.
  • The addition of SDM120M and SDM72 meter power indications in the measurement of power and energy, this allows tracking the balance and further control of the load during changes between energy import/export, especially in PV installations.
  • Power fields POWER1-4 as a new source in events, application as above.
  • Slave ID edition in Modbus RTU, allows you to connect several different sensors on the bus.
  • Separation of devices (SDM counters) Modbus RTU (RS485) to the Modbus panel. The RS485 converter in the HW3.7 can work on free IDC10-1 pins: GPIO1 (pin10) to Tx and GPIO2 (pin8) to Rx converter. In HW3.5 and 3.6 the converter can only work on UART Tx, Tx pins so far. Release of the serial port for Modbus allows simultaneous connection of e.g. energy meters and GSM module.
Fixed
  • DHCP wait extended from 2 to 4 seconds.
  • Saving OLED on I2C.
  • New MQTT library, that includes the LWT function.
  • Loading backup file.
  • Scheduler saving.
  • Automatic summer/winter time change.
v1.11 (Aug. 25, 2019)

Filename: lc35_v1_11.bin (364.3 KB)

Added
  • Modbus TCP server (test version). It allows reading all sensors and inputs/outputs of the Lan Controller through a Modbus controller, e.g. Siemens LOGO.
v1.10a (Aug. 25, 2019)

Filename: lc35_v1_10a.bin (358.1 KB)

Added
  • Support of the SDM72D-M energy meter - Modbus RTU communication.
  • Support of ZMPT101 (AC meter) for INPA5 and INPA6 inputs (power measurement for 3 phases possible).
v1.09b (July 31, 2019)

Filename: lc35_v1_09b.bin (357.8 KB)

Added
  • Time measurement at INPD1 and INPD3 inputs. To run the function, check the Impulse time box next to the listed inputs and connect INPD2 or INPD4, respectively, to the ground (after turning on the device). Each short (reset) on the INPD1 and INPD3 inputs will trigger the time measurement, shown in the window. Resolution 1s. This function can be used for measurements, e.g. machine and device work cycles.
v1.08b (July 11, 2019)

Filename: lc35_v1_08b.bin (357.4 KB)

Added
  • DS7 and DS8 to DIFF1 and DIFF2.
  • In addition to xml files with parameters/data, LK3 also returns files in json format.
Fixed
  • Page display.
  • Reading on 1-Wire.
  • Measurement on SCT, ZMPT sensors.
  • PT1000 measurement on INPA1 and INPA2.
v1.06b (June 10, 2019)

Filename: lc35_v1_06b.bin (337.3 KB)

Fixed
  • Symbol offset at the humidity sensor.
  • Operation of analog inputs when measuring DC and AC voltages.
v1.05b (May 13, 2019)

Filename: lc35_v1_05b.bin (336.9 KB)

Firmware with a new user interface!

Added
  • Support for new WCS1800 and HVSR25 sensors.
Changed
  • Completely new website design, with unified website appearance, improved scalability, updated translations.
Fixed
  • Login problems.
  • Energy reading after switching on.
  • SMS recording in the GSM tab.
  • MQTT checkboxes.