3 Running the Application

Once the code is uploaded to the evaluation board, use a terminal application and connect it to the board communication port.

When the console is started, the help message should be displayed:

Figure 3-1. Console Preview

The board will work even if no D4i gear is connected to it, but in that case it will print the error message, notifying of a DALI bus failure.

If motion reaction or ambient reaction is used, the light intensity will automatically be updated.

Figure 3-2. Control Based on Motion Detection Preview
Figure 3-3. Control Based on Ambient Light Preview

When lte_on is used, the LTE module will be enabled and it will try to connect to the LTE network. This may take some time, and debug messages are printed at each step to detect if any issue may appear:

Figure 3-4. LTE Enabled Preview

After the module connects to the LTE network, it will verify if it has internet connection and after that start configuring the MQTT:

Figure 3-5. LTE Connected and MQTT Configured

Once configured and subscribed to the command topic, it will periodically check the topic and publish data to a status topic.

The serial communication offers a fast and easy way to control a D4i gear, if the project is in the development stage. Later on, the LTE communication offers the possibility to remotely control a D4i gear.