Smart Connection Guide - Mediatek Labs LinkIt Connect 7681 Developer's Manual

Table of Contents

Advertisement

4.6.5.
TCP/IP Stack
MT7681 uses
uIP (micro
systems. It supports TCP, UDP, DNS, DHCP, and HTTP client.
The maximum number of TCP/UDP connection supported by MT7681 is 4. The maximum
TCP/UDP packet length is 600 Bytes. This configuration is best suited to MT7681's RAM.
These limits are defined in uip-conf.h, details are as below:
#define UIP_CONF_MAX_CONNECTIONS 4
#define UIP_CONF_UDP_CONNS
#define UIP_CONF_BUFFER_SIZE
4.7.

Smart Connection Guide

As devices containing an MT7681 have no user interface there is no mechanism for users to enter
IP configuration details and connect to an AP. To overcome this issue MediaTek Smart Connection
is provided. It provides a mechanism whereby a wireless network's information (SSID, password,
and AuthMode) is broadcast. When powered up the device containing an MT6781 listens to detect
the broadcast, and can consume it to obtain its wireless network settings. The transmissions are
also encrypted with a pre-defined key to ensure security.
The SDK provides the Smart Connection library for Android and iOS. There is also an example app
for both included in the SDK. This section describes the APIs in that library and how to use them.
4.7.1.
Smart Connection API for Android
4.7.1.1.
StartSmartConnection
This API packages SSID, Password, and AuthMode into the MediaTek Smart Connection format
and asks the Wi-Fi driver to broadcast to the air. If an MT7681 in Smart Connection mode is
listening, it can receive the information and connect to the defined network. The syntax of this API
are as follows:
int StartSmartConnection(const char *SSID, const char *Password, char
AuthMode);
The parameters used in this API are listed in Table 11.
Parameter
SSID
Password
AuthMode
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.
IP), which is an open source TCP/IP stack used in many embedded
4
600
Description
SSID of AP-router that the MT7681 should connect to
Password of AP-router that the MT7681 should connect to
Authentication mode. The value can be:
0: Open
4: WPA-PSK
7: WPA2-PSK
9: WPA/WPA2-PSK
Table 11 Parameters of StartSmartConnection API
© 2015, 2016 MediaTek Inc.
MediaTek LinkIt™ Connect 7681 Developer's Guide
Page 36 of 65

Advertisement

Table of Contents
loading

Related Products for Mediatek Labs LinkIt Connect 7681

Table of Contents