Skip to content

Latest commit

 

History

History
47 lines (35 loc) · 2.19 KB

README.md

File metadata and controls

47 lines (35 loc) · 2.19 KB

7681-ATcmd

This project is an extension for LinkIt Connect 7681 (SDK v1.7.1).

LinkIt Connect 7681 is an product of Mediatek Labs (http://labs.mediatek.com/site/global/developer_tools/mediatek_7681/whatis_7681/index.gsp)

It is basically a Wi-Fi module. But the SDK does not include enough AT command. This project try to add AT command so that it can be used by Arduino or other micro controller

AT command table

AT Command Description Syntax Result
AT+WSWM SWitch Mode between Station/AP mode AT+WSWM?
AT+WSWM=1 (switch to STA)
AT+WSWM=2 (switch to AP)
+WSWM:1 or 2
OK
OK
AT+WMAC query MAC address of 7681 AT+WMAC? +WMAC:<mac>
AT+WCAP (Station only) Connect to an AP AT+WCAP=<ssid>,<key>,<auth> OK ~
+WCAP=<ssid>,<key>,<auth>,<mac>
(Station only) disconnect from AP AT+WCAP= +WCAP=
AT+WQIP (Station only) Query IP AT+WQIP? +WQIP=<ip>,<gateway>,<dns>
AT+WAPC (AP only) AP Configuration AT+WAPC?
AT+WAPC=<ssid>,<key>,<auth>
+WAPC=<ssid>,<key>,<auth>
OK
AT+WDNL Domain Name Lookup AT+WDNL=<server name> OK ~
+WDNL:<server name>,<ip>
AT+WSO Socket Open, connect to remote server AT+WSO=<serverip>,<port>,<type> +WFO:<lport>
AT+WSL Socket Listen, listen port AT+WSL=<port>,<type> OK
AT+WSW Socket Write, send data AT+WSW=<lport>,<data> OK, ERROR, BUSY ~
+WSDS:<lport>
AT+GPI0~4 Control GPIO 0~4 AT+GPI0?
AT+GPI0=0 or 1
+GPI0:0 or 1
OK
AT+GPW0~4 Control PWM 0~4 AT+GPW0?
AT+GPW0=<dutycycle>,<resolution>
+GPW0:<dutycycle>,<resolution>
OK

Unsolicited AT notify table

Command Description Syntax
+WCAP Successfully connect to an AP +WCAP=<ssid>,<key>,<auth>,<mac>
+WSDR Socket Data Received +WSDR:<lport>,<len>,<data>
+WSS Socket State change +WSS:<lport>,<state>

Parameter Syntax table

Parameter Syntax Example
<mac> XX-XX-XX-XX-XX-XX 12-34-56-78-90-AB-EF
<auth> 0:Open
1:WEP
4:WPAPSK(Personal)
9:WPA+WPA2PSK (Personal)
0,1,4,9
<ip>,<gateway>,<dns> XXX.XXX.XXX.XXX 192.168.1.1
<port> XXXX 8888
<type> 0:TCP
1:UDP
0,1
<state> 0: port disconnected
1: port connected
0,1