Modem LTE¶
The tab is available only when a modem is connected and detected by LK4.
In addition to this tab, new options will also become available:
- SMS action in Events
- sending via modem in HTTP Client (removed in SW 1.18a)
- sending via modem in MQTT Client (removed in SW 1.18a)
Since SW 1.18a, the method of determining interface priorities has been changed. Depending on the availability and status of the interface, the device automatically selects the default one to support network communication. This includes Ethernet, Wi-Fi, and LTE modem.
Therefore, the options mentioned above defining data sending via modem for individual functions are no longer available.
Configuration¶
On the page there is a configuration form to set parameters such as:
- APN
- authorization code (a form of access protection when receiving SMS commands - it must be at the beginning of the message)
- sending return SMS after SMS command (otherwise it only performs action but returns nothing)
- SMS messages with recipient numbers
Below the form there are buttons for saving settings, sending SMS test and re-initializing the modem.
Messages and recipient numbers define SMS1-4 actions in Events. For each item, you can configure two separate texts - the first sent when the condition begins to be met and the second when it stops to be met. It is worth noting that each notification can be sent to 4 different numbers, after entering them in the number field, separating the numbers with the :
character. Additionally, readings from the device can be included in the texts to be sent using reading codes, as in HTTP Client.
Console¶
On the Console tab you can see messages from the modem and send your own AT queries to the modem. A list of commands can be found in the documentation for your SIMCom modem, but please note that some commands will not be able to be entered.
SMS commands¶
You can send commands to LK in SMS messages.
The same commands are supported as in LK3 with GSM overlay:
reboot
- turns on the OUT output(s) for a given time, after which it turns it offon
- turns on the OUT output(s).off
- turns off the OUT output(s).
Examples:
1234:reboot 1 t10
- turns on the OUT1 output for the given 10 seconds (parametert
)1234:reboot 1
- turns on the OUT1 output for 5 seconds (default value of thet
parameter)1234:reboot 1,2,3
- turns on the OUT1, OUT2, OUT3 outputs for 5 seconds (default value of thet
parameter)1234:on 1
- turns on the OUT1 output1234:on 1,3
- turns on the OUT1, OUT3 outputs1234:off 1
- turns off the OUT1 output1234:off 1,3
- turns off the OUT1, OUT3 outputs
Additionally, LK4 supports commands available in the API, details are described in the Commands section.