2.3 ADP & MAC Serialization

The ADP and MAC serialization is an application example that brings access to the ADP, MAC and Coordinator API through a serialized interface attached to a serial connection. This application is useful for users who want to make an intensive test of the stack or want to run the upper layers in another CPU.

The application interfaces with the G3-PLC stack at different levels. The user can make use of the ADP API (standard access) or access the MAC Wrapper API directly as a shortcut for some tests. Serialization is also available to the provided Coordinator module in case the user wants to control the Bootstrap phase on the Coordinator side.

The example provided offers the serial interface configured through a certain UART or USB (depending on the platform) at 230400 bps by default.

This example is located in the folder \thirdparty\g3\apps\adp_mac_serialized_app\ of the firmware package:

Table 2-3. Serial Ports
BoardDescriptionSerial PortBaudrate
SAMG55 Xplained ProADP & MAC serial interfaceTarget USB240300
ConsoleDebug USB115200
PL360G55Cx-EKADP & MAC serial interfaceUSB240300
Table 2-4. LEDs
DescriptionBoardLED
Reception of message RFATREB215-XPRO-ALED2
PLCPL360G55Cx-EKLED1
PL460-EK
Message transmittedRFATREB215-XPRO-ALED1
PLCPL360G55Cx-EKD104/D110
PL460-EKD4