Use Log To Debug - Mediatek Labs LinkIt Connect 7681 Developer's Manual

Table of Contents

Advertisement

Figure 25 The reset switch on the LinkIt Connect 7681 development board
6.3.

Use Log to debug

MT7681 provides features for outputting debug messages to a log on UART. To enable this
feature, set PRINT_FLAG in iot_custom.c to TRUE as follows:
bool PRINT_FLAG
6.3.1.
Using log to debug in Station mode
If MT7681 is in station mode with PRINT_FLAG=TRUE and is connected to a wireless AP defined by
Smart Connection, the following is a typical debug log:
==> Recovery Mode
<== Recovery Mode
(-)
SM=0, Sub=0
SM=1, Sub=0
[WTask]5001
SM=2, Sub=0
SM=3, Sub=0
Request*/
Auth with:ssid = RalinkAP, auth mode = 0, /* target AP's SSID and AuthMode
*/
SM=3, Sub=1
Response*/
SM=4, Sub=0
Request*/
SM=4, Sub=1
*/
[WTask]10005
SM=5, Sub=0
handshake*/
SM=6, Sub=0
[WTask]15006
Got IP:192.168.2.12/* Got IP from target AP*/
[WTask]20009
This document contains information that is proprietary to MediaTek Inc.
Unauthorized reproduction or disclosure of this information in whole or in part is strictly prohibited.
= TRUE;
/* start to running recovery/Calibration image*/
/* end to running recovery/Calibration image*/
/* start to running station image*/
/* Change to "WIFI_STATE_INIT" */
/* Change to "WIFI_STATE_SMTCNT" */
/*--output timer log period to notice system alive--*/
/* Change to "WIFI_STATE_SCAN" */
/* Change to "WIFI_STATE_AUTH", going to send Auth
/* Change to "WIFI_STATE_AUTH" waiting for Auth
/* Change to "WIFI_STATE_ASSOC", going to send Assoc
/* Change to "WIFI_STATE_ASSOC", waiting Assoc Response
/* Change to "WIFI_STATE_4WAY", start to 4 way
/* Change to "WIFI_STATE_CONNED", start to get IP*/
© 2015, 2016 MediaTek Inc.
MediaTek LinkIt™ Connect 7681 Developer's Guide
Page 52 of 65

Advertisement

Table of Contents
loading

Related Products for Mediatek Labs LinkIt Connect 7681

Table of Contents