The MCR20A Wireless UART application functions as an wireless UART bridge between two (one-to-one) or several (one to many) boards. The application can be used with both a TERM, or with software that is capable of opening a serial port and writing to or reading from it. The characters sent or received are not necessarily ASCII printable characters.

Dependencies:   fsl_phy_mcr20a fsl_smac mbed-rtos mbed

Fork of mcr20_wireless_uart by Freescale

By default, the application uses broadcast addresses for OTA communication. This way, the application can be directly downloaded and run without any user intervention. The following use case assumes no changes have been done to the project.

  • Two (or more) MCR20A platforms (plugged into the FRDM-K64F Freescale Freedom Development platform) have to be connected to the PC using the mini/micro-USB cables.
  • The code must be downloaded on the platforms via CMSIS-DAP (or other means).
  • After that, two or more TERM applications must be opened, and the serial ports must be configured with the same baud rate as the one in the project (default baud rate is 115200). Other necessary serial configurations are 8 bit, no parity, and 1 stop bit.
  • To start the setup, each platform must be reset, and one of the (user) push buttons found on the MCR20A platform must be pressed. The user can press any of the non-reset buttons on the FRDM-K64F Freescale Freedom Development platform as well. *This initiates the state machine of the application so user can start.

Documentation

SMAC Demo Applications User Guide

Committer:
FSL\B36402
Date:
Sun Mar 15 00:56:28 2015 -0500
Revision:
15:990a8b5664e1
Integrated PHY version from the official K64F+MCR20A package

Who changed what in which revision?

UserRevisionLine numberNew contents of line
FSL\B36402 15:990a8b5664e1 1 /*!
FSL\B36402 15:990a8b5664e1 2 * Copyright (c) 2015, Freescale Semiconductor, Inc.
FSL\B36402 15:990a8b5664e1 3 * All rights reserved.
FSL\B36402 15:990a8b5664e1 4 *
FSL\B36402 15:990a8b5664e1 5 * \file PhyMessages.h
FSL\B36402 15:990a8b5664e1 6 *
FSL\B36402 15:990a8b5664e1 7 * Redistribution and use in source and binary forms, with or without modification,
FSL\B36402 15:990a8b5664e1 8 * are permitted provided that the following conditions are met:
FSL\B36402 15:990a8b5664e1 9 *
FSL\B36402 15:990a8b5664e1 10 * o Redistributions of source code must retain the above copyright notice, this list
FSL\B36402 15:990a8b5664e1 11 * of conditions and the following disclaimer.
FSL\B36402 15:990a8b5664e1 12 *
FSL\B36402 15:990a8b5664e1 13 * o Redistributions in binary form must reproduce the above copyright notice, this
FSL\B36402 15:990a8b5664e1 14 * list of conditions and the following disclaimer in the documentation and/or
FSL\B36402 15:990a8b5664e1 15 * other materials provided with the distribution.
FSL\B36402 15:990a8b5664e1 16 *
FSL\B36402 15:990a8b5664e1 17 * o Neither the name of Freescale Semiconductor, Inc. nor the names of its
FSL\B36402 15:990a8b5664e1 18 * contributors may be used to endorse or promote products derived from this
FSL\B36402 15:990a8b5664e1 19 * software without specific prior written permission.
FSL\B36402 15:990a8b5664e1 20 *
FSL\B36402 15:990a8b5664e1 21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
FSL\B36402 15:990a8b5664e1 22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
FSL\B36402 15:990a8b5664e1 23 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
FSL\B36402 15:990a8b5664e1 24 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
FSL\B36402 15:990a8b5664e1 25 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
FSL\B36402 15:990a8b5664e1 26 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
FSL\B36402 15:990a8b5664e1 27 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
FSL\B36402 15:990a8b5664e1 28 * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
FSL\B36402 15:990a8b5664e1 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
FSL\B36402 15:990a8b5664e1 30 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
FSL\B36402 15:990a8b5664e1 31 */
FSL\B36402 15:990a8b5664e1 32
FSL\B36402 15:990a8b5664e1 33 #ifndef _PHY_MESSAGES_H
FSL\B36402 15:990a8b5664e1 34 #define _PHY_MESSAGES_H
FSL\B36402 15:990a8b5664e1 35
FSL\B36402 15:990a8b5664e1 36
FSL\B36402 15:990a8b5664e1 37 /************************************************************************************
FSL\B36402 15:990a8b5664e1 38 *************************************************************************************
FSL\B36402 15:990a8b5664e1 39 * Include
FSL\B36402 15:990a8b5664e1 40 *************************************************************************************
FSL\B36402 15:990a8b5664e1 41 ************************************************************************************/
FSL\B36402 15:990a8b5664e1 42
FSL\B36402 15:990a8b5664e1 43 /************************************************************************************
FSL\B36402 15:990a8b5664e1 44 *************************************************************************************
FSL\B36402 15:990a8b5664e1 45 * Public macros
FSL\B36402 15:990a8b5664e1 46 *************************************************************************************
FSL\B36402 15:990a8b5664e1 47 ************************************************************************************/
FSL\B36402 15:990a8b5664e1 48
FSL\B36402 15:990a8b5664e1 49 /************************************************************************************
FSL\B36402 15:990a8b5664e1 50 *************************************************************************************
FSL\B36402 15:990a8b5664e1 51 * Public prototypes
FSL\B36402 15:990a8b5664e1 52 *************************************************************************************
FSL\B36402 15:990a8b5664e1 53 ************************************************************************************/
FSL\B36402 15:990a8b5664e1 54
FSL\B36402 15:990a8b5664e1 55 /************************************************************************************
FSL\B36402 15:990a8b5664e1 56 *************************************************************************************
FSL\B36402 15:990a8b5664e1 57 * Public type definitions
FSL\B36402 15:990a8b5664e1 58 *************************************************************************************
FSL\B36402 15:990a8b5664e1 59 ************************************************************************************/
FSL\B36402 15:990a8b5664e1 60
FSL\B36402 15:990a8b5664e1 61 /************************************************************************************
FSL\B36402 15:990a8b5664e1 62 *************************************************************************************
FSL\B36402 15:990a8b5664e1 63 * Public memory declarations
FSL\B36402 15:990a8b5664e1 64 *************************************************************************************
FSL\B36402 15:990a8b5664e1 65 ************************************************************************************/
FSL\B36402 15:990a8b5664e1 66
FSL\B36402 15:990a8b5664e1 67 /************************************************************************************
FSL\B36402 15:990a8b5664e1 68 *************************************************************************************
FSL\B36402 15:990a8b5664e1 69 * Public functions
FSL\B36402 15:990a8b5664e1 70 *************************************************************************************
FSL\B36402 15:990a8b5664e1 71 ************************************************************************************/
FSL\B36402 15:990a8b5664e1 72
FSL\B36402 15:990a8b5664e1 73 /* 802.15.4-2006 standard PHY PD and PLME API messages */
FSL\B36402 15:990a8b5664e1 74 gPdDataReq_c,
FSL\B36402 15:990a8b5664e1 75 gPdDataCnf_c,
FSL\B36402 15:990a8b5664e1 76 gPdDataInd_c,
FSL\B36402 15:990a8b5664e1 77
FSL\B36402 15:990a8b5664e1 78 gPdIndQueueInsertReq_c,
FSL\B36402 15:990a8b5664e1 79 gPdIndQueueInsertCnf_c,
FSL\B36402 15:990a8b5664e1 80 gPdIndQueueRemoveReq_c,
FSL\B36402 15:990a8b5664e1 81
FSL\B36402 15:990a8b5664e1 82 gPlmeCcaReq_c,
FSL\B36402 15:990a8b5664e1 83 gPlmeCcaCnf_c,
FSL\B36402 15:990a8b5664e1 84
FSL\B36402 15:990a8b5664e1 85 gPlmeEdReq_c,
FSL\B36402 15:990a8b5664e1 86 gPlmeEdCnf_c,
FSL\B36402 15:990a8b5664e1 87
FSL\B36402 15:990a8b5664e1 88 gPlmeSetTRxStateReq_c,
FSL\B36402 15:990a8b5664e1 89 gPlmeSetTRxStateCnf_c,
FSL\B36402 15:990a8b5664e1 90
FSL\B36402 15:990a8b5664e1 91 gPlmeSetReq_c,
FSL\B36402 15:990a8b5664e1 92 gPlmeSetCnf_c,
FSL\B36402 15:990a8b5664e1 93
FSL\B36402 15:990a8b5664e1 94 gPlmeGetReq_c,
FSL\B36402 15:990a8b5664e1 95 gPlmeGetCnf_c,
FSL\B36402 15:990a8b5664e1 96
FSL\B36402 15:990a8b5664e1 97 gPlmeTimeoutInd_c,
FSL\B36402 15:990a8b5664e1 98
FSL\B36402 15:990a8b5664e1 99 gPlme_StartEventInd_c,
FSL\B36402 15:990a8b5664e1 100 gPlme_SyncLossInd_c,
FSL\B36402 15:990a8b5664e1 101 gPlme_RxSfdDetectInd_c,
FSL\B36402 15:990a8b5664e1 102 gPlme_FilterFailInd_c,
FSL\B36402 15:990a8b5664e1 103 gPlme_UnexpectedRadioResetInd_c,
FSL\B36402 15:990a8b5664e1 104
FSL\B36402 15:990a8b5664e1 105
FSL\B36402 15:990a8b5664e1 106 #endif /* _PHY_MESSAGES_H */