MVI56E-LDM-MQTT ♦ MQ Telemetry Transport
Firmware
ControlLogix® Platform
Quick Start Guide
ProSoft Technology, Inc.
Page 52 of 55
11 Firmware
11.1 Firmware Contents
The sample application installed to the MVI56E-LDM contains files that are included in
the
MVI56E-LDM-MQTT zip
file. The contents of the zip file were copied to the Windows
10 PC’s
C:\Workspace
folder in Chapter 2.
Although they are installed on the module with the module webpage’s
Firmware
Download
process, the files can be FTP’d independently as well.
When the module is rebooted after the upgrade, the sample application starts via script:
/etc/init.d/S88-mqtt
.
If the module has other custom files and/or the firmware update is not desirable, then the
following files from
C:\Workspace
can be installed over FTP connection to the module:
#
File location on Windows 10 PC
FTP to folder on
MVI56E-LDM
Description
1
C:\Workspace\mqtt-ldm-sample-
app-mvi56e\firmware
mvi56e-
ldm.firmware_<version>_<date>
.firmware
/psft/sample/mqtt
MQTT-LDM sample application. After building a
custom application, copy the .firmware file to the
module.
2
C:\Workspace\mqtt-ldm-sample-
app-mvi56e\
config.json
/psft/sample/mqtt
Configuration file. Its structure is described in detail
in section
3
C:\Workspace\mqtt-ldm-sample-
app-mvi56e\
root_ca.cer
/psft/sample/mqtt
Root CA certificate of the server’s SSL certificate’s
chain.
4
C:\Workspace\mqtt-ldm-sample-
app-mvi56e\
S10-syslog
/etc/init.d
Optional,for logging. The service syslog should be
started in order to enable logging. The service can
be started automatically at system reboot by
copying of the script file S10-syslog to the folder
/etc/init.d
. Note that the script configures log file
location as
/www/html/log/messages.txt
, i.e.
under embedded web server’s content location.
This allows viewing of the log file’s content at:
http://192.168.0.250/log/messages.txt
(IP
address of the module).
5
C:\Workspace\mqtt-ldm-sample-
app-mvi56e\
S88-mqtt
/etc/init.d
This script starts the sample application on the
MVI56E-LDM after module reboot.
6
C:\Workspace\mqtt-ldm-sample-
app-mvi56e\test-generic
/psft/sample/mqtt
Configuration file and certificates, specific for the
Generic type of MQTT Brokers.
11.2 Run the Application
After the installation and configuration are complete, the application can be started either
automatically after device reboot (if the script
/etc/init.d/S88-mqtt
was installed), or it
can be started manually via telnet terminal by navigating to the folder
/spft/sample/mqtt
and running the command
./mqtt-ldm-sample-app-mvi56e
.