1.6.1 Meters And More AL API

This protocol consists of the serialization of the Meters And More AL (Application Layer) API primitives. The Microchip Meters And More Stack can provide the Application Programming Interface (Meters And More AL API) through a serial interface as an independent protocol of USI.
Figure 1-14. Meters And More API USI Frame Format
The following three fields are available within the general MESSAGE DATA field:
  • LENGTH Extended (1 bit): As the information contained in the message data can exceed the size reserved for MSG length (10 bits), a bit has been added to increase the message length size. In this field the most significant bit of the message length is coded.
  • AL API COMMAND (7 bits): This field refers to the primitive included in the message, using the same primitives described in the Meters And More AL API interface description. The values for those primitives are defined in enumerator AL_SERIAL_MSG_ID in the mm_al_api_host.h file.
  • Primitive function parameters: The serialization of each primitive directly concatenates the different parameters included in the primitive function.