1.6.1 Application Example
The G3 Modem application implements the full G3 stack and allows
accessing the API through serial interface. The G3 API can be accessed at two levels:
- MAC layer (MAC wrapper). MAC serialization is implemented in stack\g3\mac\mac_wrapper\mac_wrapper.c file.
- ADP and LBP layers. ADP and LBP serialization is implemented in stack\g3\adaptation\adp_serial.c file.
The G3 Modem application interchanges data with the external device through a serial
port, whose settings are:
- Baud-rate depending on the platform, see 1.6.3 Hardware Configuration
- 8 data bits
- no parity
- 1 stop bit
In the example application, the app.c file contains:
- Extended Address (EUI64)
generation.
- For PIC32CXMT it is implemented using the UniqueID.
- Non-volatile data storage. The G3
stack needs to store in non-volatile memory some counters.
- For PIC32CXMT it is implemented using the User Signature, GPBR and SUPC power-down detection.