1.3 USI Modem App

The USI Modem App is an application example intended to be used when the Meters And More Stack is to be run in a separate device from the rest of the applications that run in another external device. This example includes a Serial Connection, so the Modem can be controlled from such external device.

The following table shows the available Host Interface Modem App projects:

Table 1-3. Host Interface Modem App projects
Bare-Metal / FreeRTOSPathBoards
Bare-Metalsmartenergy_metersandmore_apps\apps\modem_app\metersandmore_modem_usi\pic32cx_mtg_ek_pl460.XPIC32CXMTG-EK + PL460-EK
FreeRTOSsmartenergy_metersandmore_apps\apps\modem_app\metersandmore_modem_usi\pic32cx_mtg_ek_pl460_freertos.XPIC32CXMTG-EK + PL460-EK
Bare-Metalsmartenergy_metersandmore_apps\apps\modem_app\metersandmore_modem_usi\sam_d20_xpro_pl460.X SAMD20-XPRO+ PL460-EK
FreeRTOSsmartenergy_metersandmore_apps\apps\modem_app\metersandmore_modem_usi\sam_d20_xpro_pl460_freertos.X SAMD20-XPRO+ PL460-EK

The USI Modem application offers a Serial Interface providing the modem with the capability to send and receive commands.

The chosen Serial Interface protocol is the Unified Serial Interface (USI). This protocol definition can be found in its own component documentation: onlinedocs.microchip.com/v2/keyword-lookup?keyword=SE_srv_usi_how_the_library_works&redirect=true.

In the USI Modem Application, the Meters And More AL API is serialized through Serial Interface using the USI. Documentation of AL component can be found here: onlinedocs.microchip.com/v2/keyword-lookup?keyword=MM_AL_Description&redirect=true

Application Functionality

The USI Modem application functionality is very simple as all the duties are carried out by the Meters And More Stack Component. The AL serialization through USI is implemented in the al_serial.c file.