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:
Board | Description | Serial Port | Baudrate |
---|---|---|---|
SAMG55 Xplained Pro | ADP & MAC serial interface | Target USB | 240300 |
Console | Debug USB | 115200 | |
PL360G55Cx-EK | ADP & MAC serial interface | USB | 240300 |
Description | Board | LED | |
---|---|---|---|
Reception of message | RF | ATREB215-XPRO-A | LED2 |
PLC | PL360G55Cx-EK | LED1 | |
PL460-EK | — | ||
Message transmitted | RF | ATREB215-XPRO-A | LED1 |
PLC | PL360G55Cx-EK | D104/D110 | |
PL460-EK | D4 |