Mac_802_15_4_Coordinator Application Description

How to use MAC 802.15.4 Association and Data exchange.

Keywords

MAC, 802.15.4, association, data, STM32WBA, Coordinator, ED scan, diassociate

Directory contents

Mac_802_15_4/Mac_802_15_4_FFD/

Hardware and Software environment

How to use it?

This application requires two STM32WBA52xx-Nucleo boards. One device will act as 802.15.4 coordinator ensuring association response and network establishment. The other device will act as a MAC 802.15.4 Node. The Node request association on startup and send data to the coordinator.

Below example implements the CoordinatorDevices.

Minimum requirements for the demo:

In order to make the program work, you must do the following:

To get the traces in real time, you can connect an HyperTerminal to the LPUART CN3-32.

The Serial interface must be configured as follows:

You can also use an MAC 802.15.4 over the air sniffer on channel write on HyperTerminal to spy MAC 802.15.4 frames exchanged between the devices.

START DEMO

By default, after a reset, both board starts. Coordinator must be started firstly to be able to answer to the node association request.

This MAC 802.15.4 example is to demonstrate Point-to-Point communication using MAC components between a FFD (ie.: the COORDINATOR) and an RFD (ie.: the NODE).

Upon COORDINATOR start, the device initializes the MAC 802.15.4 and associates resources in non-beaconned enable mode.

MAC PIB is then configured as follow :

Once MAC PIB is initialized, Coordinator is started on least noisy channel with ED scan as an association capable coordinator. At this stage the Coordinator is waiting for an association request. Blue LED (ID 1) is switch on once the coordinator is started.

On Node side, the MAC layer is initialized on startup. In this state, blue LED (ID 1) is switch on.

The Node device can recognize the coordinator device with the beacon payload define in app_conf.h on both devices.

Node issues an association request to the Coodinator to retrieve its short address. On in coming association request Coordinator’s green LED (ID 2) blinks.

Once the association between two devices is completed, Node’s green LED (ID 2) is switch on to indicate the node is associated to the coordinator.

The Node sends data to the coordinator that issues a Data Indication. On both devices side, on data transmission red led (ID 3) blinked.

User can issue display all associated devices, by pressing the button 1 (SW1).

User can issue check if device is not associated, by pressing the button 2 (SW2). Data transmission with ACK, if the node associated don’t response, then the device is remove of associated device table, can be then observe using OTA sniffer, UART logs and LED status.

If you want to restart the demo, simply reset the NODE.