Inventek WiFi - AT - Command - Set Quick Reference 1
Inventek WiFi - AT - Command - Set Quick Reference 1
17
Status Commands
CMD /Field 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
A? SSID IP Addr Channel Sec Type Sec Key DHCP Lease Status
B? I/F SPI Mode DRDY PIN
C? SSID PSWD Sec Type DHCP IP Ver IP Addr Mask Gateway DNS1 DNS2 Retries Auto Conn Auth CC Status
F? Repeats Delay
G? GPIO0 GPIO1 GPIO2 GPIO3 GPIO4 ADC0 ADC1 ADC2 ADC3 ADC4 CFG1 CFG2 WAKEUP
I? PID FW Rev API Rev Stack Rev RTOS Rev CPU CLK Prd Name
P? Protocol Client IP Local Port Host IP Rem Port TCP Sever UDP Sever Backlogs Accept loop Read Mode TCP KA TCP KA TTI
R? NOB Timeout Rec Mode
S? NOB Timeout
T? Target IP Repeats Delay
U? Port baud Width Parity Stop Mode
Z? Config WPS Pin VID/PID MAC AP IP PS Mode Radio Cur Beacon Pre Beacon Prd Name
3/23/2018 Page 1
Subject to change without notice Inventek Systems DOC-esWiFi_AT_Command_20041.1.17
Release
Connect Commands
C0 Join network None ****** ✓ ✓
C1 Set SSID None ✓ ✓
C2 Set Passphrase None WEP: 64: Enter 5 characters or 10 Hex digits exactly ✓ ✓
128: Enter 13 characters or 26 Hex digits exactly (see CE command) ✓ ✓
63 Character: WPA/WPA2-AES/WPA2-Mixed ✓ ✓
64 Hex Characters: WPA-Mixed ✓ ✓
C3 Set Security Type 0-4 None 0=Open, 1=WEP, 2=WPA, 3=WPA2-AES, 4=WPA2 Mixed ✓ ✓
C4 Set DHCP TRUE/FALSE TRUE 0 = False, 1 = True ✓ ✓
C5 Set IP Version IPv4/IPv6 IPv4 0 = IPv4, 1=IPv6 IPv4 Only IPv4 Only
C6 Set IP Address XXX.XXX.XXX.XXX 192.168.1.1 ✓ ✓
C7 Set IP Mask XXX.XXX.XXX.XXX 255.255.255.0 ✓ ✓
C8 Set Gateway XXX.XXX.XXX.XXX 192.168.1.1 ✓ ✓
C9 SET DNS Server 1 XXX.XXX.XXX.XXX 255.255.255.255 ✓ ✓
CA SET DNS Server 2 XXX.XXX.XXX.XXX 255.255.255.255 ✓ ✓
CB Set Join Retries 1 - 10 * 1.3.5 - 5, 2.4.0 - 2 ✓ ✓
CC Auto Connect/Reconnect 0-3 Disable 0=Disabled, 1=Connect, 2=Reconnect, 3=Both (2 & 3 C2.5.0 and higher) ✓ ✓
Note: Network info must by save to flash pior to power off ('Z1' command)
CD Disconnect from Network None ****** ✓ ✓
CE Set Authorization Type 0/1 0 0=Open, 1=Shared Key ✓ ✓
CF Set/Clear Packet Filter XX 00 00=Off, 01=ARP, 02=SNMP, 40=IPv4, 80=Multicast ✓ ✓
CJ Join/Leave IGMP Group X,XXX.XXX.XXX.XXX None 0=Leave/1=Join,IP Address ✓ ✓
CM Add/Remove MAC to/from Mcast List 0/1,XX:XX:XX:XX:XX:XX ****** 0=Remove, 1=Add ✓ ✓
CN Set Country Code XX US See Country Code Table ✓ ✓
CR Get RSSI of attached AP None ****** 0=Not join to network, RSSI otherwise ✓ ✓
CS Get Connection Status None ****** 0=Not Connected, 1=Connected ✓ ✓
CT Set WPS Push Button GPIO #/!/? Or 0-9,0-1 ****** <#-Clear/!-Status/?-Info or pin(0-9), mode(0-Push,1-Set Status)> Set WPS PB pin ✓ ✓
3/23/2018 Page 2
Subject to change without notice Inventek Systems DOC-esWiFi_AT_Command_20041.1.17
CV Get Connected rate None ****** Note: This is not equivalent to throughput ✓
CW Connect using WPS Pin/PBC 0/1 ****** 0=Pin, 1=PBC(Push Button Configuration) ✓ ✓
C? Show Settings None ****** ✓ ✓
DNS Commands
D0 DNS Look up ****** <0-63> Alphanumeric Characters ✓ ✓
D1 Set mDNS state and name 0/1,Device Name(32 Chars) ****** ✓ ✓
D2 Set mDNS services 0/1,Instance,Service,Port,TTl ****** <0/1>,<Instance(32 chars)>,<Service(32 Chars),<Port>,<TTl> ✓ ✓
GPIO/ADC Commands
G2 Read GPIO/ADC Pin #,Type ****** Types: 2=Button, 3=Digital Input, 5 =ADC ✓ ✓
G3 Write GPIO Pin #,Type,Value ****** Types: 1=LED, 4=Digital Output ✓ ✓
G4 GPIO Setup Pin #,Type ****** Types: 1=LED, 2=Button, 3=Digital Input, 4=Digital Output, 5=ADC ✓ ✓
GT Get UTC Time None ****** internet access - UTC time (XXXXXXXXXX), otherwise ms since power up(XXXXX) ✓ ✓
G? Show Settings None ****** ✓ ✓
Help Commands
? Show Help None ****** ✓ ✓
Information Commands
IC Is Endpoint Configured Endpoint ****** 64 characters max, for use with CloudBourne App ✓
I? Show Revision Information None ****** ✓ ✓
Manufacturing Commands
M0 Complaince, Set Channel & Rate channel,rate ****** 2.4GHz: Channel(1-14), Rate(7(n),11(b),54(g)) MFG Ver. MFG Ver.
5GHz:
M1 Complaince, Start Test None ****** Start Complaince test using settings from M0 & M3 commands MFG Ver. MFG Ver.
M2 Complaince, Stop Test None ****** Stop complaince test MFG Ver. MFG Ver.
M3 Complaince, Set Maximum Power power ****** Power in 0.25dB steps, ex. 18dB, 0.25dB * 72 = 18dB MFG Ver. MFG Ver.
Message Commands
MF Test External Serial Flash None ****** Erase/Write/Read/Verify test ✓ ✓
MJ MFG Test (Join/RSSI/PING) SSID=ism_mfg_test, Security=Open, DHCP Enabled ✓
MR Message Read (SPI Only) None ****** Read asynchronous event messages ✓ ✓
MS Suppress Async Message - DHCP 0/1 0 0=Normal/1=Suppress ✓ ✓
MT Set Message Type 0/1 0 0=Normal/1=Simple (C2.5.0.x = 0, C3.5.2.x = 1) ✓ ✓
Protocol Commands
P0 Set Socket 0-3 0 Sets the communication socket (P1-P8 are stored for each socket) ✓ ✓
P1 Set Transport protocol 0-3(4) 0 0 - TCP, 1 - UDP, 2 - UDP LITE, 3 - TCP-SSL (2.4.0 and above), 4-MQTT(3.5.2.X and above) ✓ ✓
P2 Set Local Port 0-65536 None ✓ ✓
P3 Remote Host IP Address XXX.XXX.XXX.XXX None ✓ ✓
P4 Remote Port 0-65536 None ✓ ✓
P5 Stop/Start TCP Server 0-1 0 0 - stop, 1 - start, 10 - Close handle & get next request, 11 - Start Multi-Accept ✓ ✓
P6 Stop/Start TCP Client 0-1 0 0 - stop, 1 - start ✓ ✓
3/23/2018 Page 3
Subject to change without notice Inventek Systems DOC-esWiFi_AT_Command_20041.1.17
P7 Start/Stop Request TCP Accept 0-3 0 0 - stop, 1 - start Accept loop, 2 - close current socket, 3 - Next TCP Accept Request (Use P5 MA) ✓ ✓
P8 Listen backlog 0-17 8 ✓ ✓
P9 Certification Verification 0/1/2 0 0-None,1-Optional,2-Required ✓ ✓
PA Set Custom CA Name 0/1,Name Index(0/1),64 character Name ✓ ✓
PB Root CA Verfication Result 0-1 0 0-Terminate SLL conection, 1-Error message, No termination ✓ ✓
PC Security Certificates 0/1,R/W\r<Write Data> ****** Read/Write Security Certificates ✓ ✓
PD Security Keys 0/1,R/W\r<Write Data> ****** Read/Write Security Keys ✓ ✓
PE Get Certificate Set Availability None ****** Gets certificate set availability ✓
PF Set Active Certificate Set 0-1,0-2 TLS=0, AWS=2 0=TLS/1=AWS,Certificate Set 0-2 ✓
PG Program CA/Certificate/Key Cert Set,Type,Len\rdata bytes ****** Cert Set(0-2),Type(0=CA,1=Cert,2=Key),Length of Cert ✓
PK TCP Keep-alive 0/1,250-7200000 1-OFF 0(Enable)/1(Disable), 250-7200000 ms ✓ ✓
PM MQTT Attributes 0/1/2/3/4/5/6 0-Publish Topic, 1-Subcribe Topic, 2-Security, 3-User Name, 4-PSWD, 5-Client ID, 6=KA ✓
PX UART Streaming 0/1,0-9 ****** 0 = Server, 1 = Client,0-9 Exit Streaming gpio pin ✓ ✓
PY Set TCP API Message Timeout #/?/0-65535 10000 #-Restore Default, 0 - 65535, ?-Info ✓ ✓
P? Show Settings None ****** ✓ ✓
Ping Commands
T0 Ping None ✓ ✓
T1 Set Target Address XXX.XXX.XXX.XXX None ✓ ✓
T2 Set Repeat 0-65535 0 C2.5.0 (0 - 65534, 65535=Continuous(ctrl-c to exit)) ✓ ✓
T3 Set Delay 0-5000ms 0 ✓ ✓
T? Show Settings None ****** ✓ ✓
UART Commands
U0 Activate Change None ****** ✓ ✓
U2 Set BAUD Rate 1200 - 2073600 115200 1200,2400,4800,9600,19200,38400,57600,115200,230400,460800,921600, ✓ ✓
1152000,1382400,1612800,1843200,2073600 (M3G Only) ✓ ✓
U? Show Settings None ****** ✓ ✓
WLAN Commands
WL Set WLAN Link/Activity LEDs #/? Or 0-9,0-9,0/1 ****** #-Clear/?-Info or Link LED(0-9), Acitivity LED(0-9),Polarity(0=AL/1=AH) ✓ ✓
3/23/2018 Page 4
Subject to change without notice Inventek Systems DOC-esWiFi_AT_Command_20041.1.17
Note
FS Factory Switch feature
* Not Supported, but does not return an error.
3/23/2018 Page 5
Subject to change without notice Inventek Systems DOC-esWiFi_AT_Command_20041.1.17
3/23/2018 Page 6