NXP / Mbed 2 deprecated mcr20_wireless_uart

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:
sam_grove
Date:
Thu Mar 05 16:37:54 2015 +0000
Revision:
3:a38ad504a18c
Parent:
2:3e7685cfb2a7
Delete multi use functions and update mbed library - exporters for IAR now working again

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sam_grove 2:3e7685cfb2a7 1 #ifndef NODE_CFG_H_
sam_grove 2:3e7685cfb2a7 2 #define NODE_CFG_H_
sam_grove 2:3e7685cfb2a7 3
sam_grove 2:3e7685cfb2a7 4 /************** NODE PROFILE SELECTION ***********************/
sam_grove 2:3e7685cfb2a7 5 #define NODE_CONTROLLER 1 // only for FRDM-K64F platform (running from battery)
sam_grove 2:3e7685cfb2a7 6
sam_grove 2:3e7685cfb2a7 7 /******** Optional Resources ***********/
sam_grove 2:3e7685cfb2a7 8 #define BATTERY 1
sam_grove 2:3e7685cfb2a7 9
sam_grove 2:3e7685cfb2a7 10
sam_grove 2:3e7685cfb2a7 11 /*************** NODE PROFILE CONFIGURATION *****************/
sam_grove 2:3e7685cfb2a7 12 #if NODE_CONTROLLER
sam_grove 2:3e7685cfb2a7 13 #define NODE_SHORT_ADDRESS 2
sam_grove 2:3e7685cfb2a7 14 #define NODE_MAC_ADDRESS {0,0,6,0x02,0x00,0x00,0x09,0x63}
sam_grove 2:3e7685cfb2a7 15 #define NODE_NAME "mbed-controller"
sam_grove 2:3e7685cfb2a7 16 #define REMOTE_NODE {0x20,0x02,0x0d,0xb4,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xff,0xfe,0x00,0x00,0x01}
sam_grove 2:3e7685cfb2a7 17 #endif
sam_grove 2:3e7685cfb2a7 18
sam_grove 2:3e7685cfb2a7 19 #define ENDPOINT_TYPE {"mbed-device"}
sam_grove 2:3e7685cfb2a7 20 #define LIFE_TIME {"600"} //seconds, extra char needed to avoid truncation
sam_grove 2:3e7685cfb2a7 21
sam_grove 2:3e7685cfb2a7 22 /************** REGISTRATION PARAMETERS ************************/
sam_grove 2:3e7685cfb2a7 23 #define RD_UPDATE_PERIOD 30000 // 30 seconds
sam_grove 2:3e7685cfb2a7 24 #define NSP_IP_ADDRESS {0x20, 0x02, 0x0d, 0xb4, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x02, 0x01, 0x00}
sam_grove 2:3e7685cfb2a7 25
sam_grove 2:3e7685cfb2a7 26 /************* ALARM APPLICATION PARAMETERS *********************/
sam_grove 2:3e7685cfb2a7 27 #define ALARM_IP_ADDRESS NSP_IP_ADDRESS
sam_grove 2:3e7685cfb2a7 28 #define ALARM_CTRL_UDP_PORT 1010
sam_grove 2:3e7685cfb2a7 29
sam_grove 2:3e7685cfb2a7 30 #endif // NODE_CFG_H_
sam_grove 2:3e7685cfb2a7 31