1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 A B C Console Action Module Response Co...
9 downloads
19 Views
192KB Size
A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Console Action AT<0x0d><0x0a>
C
<0x0d><0x0a>OK<0x0d><0x0a> AT+RST<0x0d><0x0a> <0x0d><0x0a>OK<0x0d><0x0a> <0x0d><0x0a>Ready<0x0d><0x0a>
Information about the firmware
AT+GMR<0x0d><0x0a> 150900 <0x0d><0x0a>OK<0x0d><0x0a>
Firmware version
AT+CWMODE?<0x0d><0x0a> <0x0d><0x0a>+CWMODE:3 <0x0d><0x0a>OK<0x0d><0x0a> AT+CWMODE=1<0x0d><0x0a> <0x0d><0x0a>OK<0x0d><0x0a> AT+CWMODE=2<0x0d><0x0a> <0x0d><0x0a>OK<0x0d><0x0a> AT+CWMODE=3<0x0d><0x0a> <0x0d><0x0a>OK<0x0d><0x0a> AT+CWJAP="ssid","abcdefgh"<0x0d><0x0a> <0x0d><0x0a>OK<0x0d><0x0a> AT+CIFSR<0x0d><0x0a>
23 24 AT+CWLAP<0x0d><0x0a> 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
Module Response
B Copyright® 2014 EINFODEV, Inc. All rights reserved. Comment
<0x0d><0x0a>10.1.10.26<0x0d><0x0a>
This IP address is assigned by the router the module is connected. AT+CIPSERVER will operate on this IP address.
<0x0d><0x0a>+CWLAP:(0,"",0)<0x0d><0x0a>CWLAP(4,"ssid",76)<0x0d><0x0a>CWLAP:(3,"another",-80)<0x0d><0x0a> AT+CWQAP<0x0d><0x0a> <0x0d><0x0a>OK<0x0d><0x0a> AT+CWSAP?<0x0d><0x0a> <0x0d><0x0a>CWSAP:"ESP_9924B5","abcdefgh",1,0 <0x0d><0x0a>OK<0x0d><0x0a> AT+CWSAP="ESP_9945B5","abcdefgh",11,0<0x0d><0x0a> <0x0d><0x0a>OK<0x0d><0x0a> AT+CWLIF<0x0d><0x0a> 192.168.4.100 <0x0d><0x0a>OK<0x0d><0x0a> AT+CIPMUX=1<0x0d><0x0a> <0x0d><0x0a>OK<0x0d><0x0a> AT+CIPSERVER=1,23<0x0d><0x0a> <0x0d><0x0a>OK<0x0d><0x0a> Link<0x0d><0x0a>
Since security is set to 0 (open), the password is not being used.
If there is access point client and the IP was assigned randomly
This unsolicited response for new socket client connection.
A
B
41 42 43 AT+CIPSTO=28800<0x0d><0x0a> 44 45 AT+CIPSTATUS<0x0d><0x0a>
Unlink<0x0d><0x0a> Link<0x0d><0x0a>
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
STATUS:3<0x0d><0x0a>+CIPSTATUS:0,"TCP", "192.168.4.100", 1624,1 <0x0d><0x0a>OK<0x0d><0x0a>
C This unsolicited response for socket client conenction timeout and is being disconnected automatically. This unsolicited response for new socket client connection. Setting automatic socket client connection timeout to 28800 seconds.
<0x0d><0x0a>OK<0x0d><0x0a>
AT+CIPSEND=0,5 > H H E E L L L L O
61 62 63 AT+CIPSERVER=0<0x0d><0x0a> 64
O <0x0d><0x0a>SEND OK<0x0d><0x0a> <0x0d><0x0a>+IPD,0,1:A <0x0d><0x0a>OK<0x0d><0x0a> <0x0d><0x0a>we must restart<0x0d><0x0a>
Socket connection id 0 will receive HELLO from socket server. This unsolicited response for data received from socket client connection id 0.