ESP8266 Developer Zone The Official ESP8266 Forum 2023-02-09T15:15:22+08:00 https://bbs.espressif.com:443/feed.php?f=16 2023-02-09T15:15:22+08:00 2023-02-09T15:15:22+08:00 https://bbs.espressif.com:443/viewtopic.php?t=78100&p=108044#p108044 <![CDATA[AT+ Commands • ESP8266-01S: Strange behaviour]]>
I noticed a strange behaviour using the AT+CIPSTA_CUR command and I would like to ask if there is something known about it or
maybe I'm doing a mistake.

The problem is, if I use IP address like 192.168.1.41 everything works, but if I use 192.168.001.041, I can not connect to
my network . The command AT+CIPSTA_CUR however is accepted and the default IP is used instead.

With other words is there a problem with leading '0' within the IP string?

Thank you for an answer.

Statistics: Posted by Rob — Thu Feb 09, 2023 3:15 pm


]]>
2022-12-17T10:18:59+08:00 2022-12-17T10:18:59+08:00 https://bbs.espressif.com:443/viewtopic.php?t=77042&p=104947#p104947 <![CDATA[AT+ Commands • I keep getting Error message when trying to use AT+CIPSTART]]> I connected my setup and used Serial communication with AT commands to try and send data to a remote server through Wi-Fi
However, no matter what i do, I cannot get the TCP protocol to initiate reliably, it sometimes fails and gives an error message, and these happen to be completely random, i could not figure out a cause whatsoever.

05:10:24.242 -> AT
05:10:24.242 ->
05:10:24.242 -> OK
05:10:32.677 -> AT+CWMODE=3
05:10:32.677 ->
05:10:32.677 -> OK
05:10:40.028 -> AT+CWLAP
05:10:41.683 -> +CWLAP:(3,"FiBiM-MMB",-56,"a8:bf:3c:1f:d9:7c",1,32767,0,4,4,7,0)
05:10:41.729 -> +CWLAP:(4,"SUPERONLINE_WiFi_5354",-65,"64:6d:6c:a5:f8:af",5,13,0,5,3,7,1)
05:10:41.775 -> +CWLAP:(4,"FIBIM-GPON",-84,"e8:65:d4:01:8b:c9",1,10,0,4,4,7,0)
05:10:41.868 -> +CWLAP:(4,"KARAKARTAL",-72,"f8:d1:11:9a:77:d0",6,1,0,5,3,7,1)
05:10:41.915 -> +CWLAP:(3,"TP-LINK_2EB4",-85,"f4:f2:6d:55:2e:b4",10,21,0,4,4,7,1)
05:10:42.010 ->
05:10:42.010 -> OK
05:11:03.487 -> AT+CWJAP="FiBiM-MMB","mmb123000"
05:11:03.533 -> WIFI DISCONNECT
05:11:05.702 -> WIFI CONNECTED
05:11:07.254 -> WIFI GOT IP
05:11:07.487 ->
05:11:07.487 -> OK
05:11:23.029 -> AT+CWDHCP=1,1
05:11:23.029 ->
05:11:23.029 -> OK
05:11:46.638 -> AT+CIPSTART="TCP","www.google.com",80
05:11:49.799 ->
05:11:49.799 -> ERROR
05:11:49.799 -> CLOSED

05:11:52.469 -> AT+CIPSTART="TCP","www.google.com",80
05:11:52.516 -> CONNECT
05:11:52.516 ->
05:11:52.516 -> OK
05:12:03.060 -> AT+CIPCLOSE
05:12:03.060 -> CLOSED
05:12:03.060 ->
05:12:03.060 -> OK
05:12:06.141 -> AT+CIPSTART="TCP","www.google.com",80
05:12:06.188 -> CONNECT
05:12:06.188 ->
05:12:06.188 -> OK
05:12:08.719 -> AT+CIPCLOSE
05:12:08.719 -> CLOSED
05:12:08.719 ->
05:12:08.719 -> OK
05:12:10.261 -> AT+CIPSTART="TCP","www.google.com",80
05:12:13.497 ->
05:12:13.497 -> ERROR
05:12:13.497 -> CLOSED

05:12:14.722 -> AT+CIPSTART="TCP","www.google.com",80
05:12:14.769 -> CONNECT
05:12:14.769 ->
05:12:14.769 -> OK
05:12:16.276 -> AT+CIPCLOSE
05:12:16.276 -> CLOSED
05:12:16.276 ->
05:12:16.276 -> OK

AT version:1.7.4.0(May 11 2020 19:13:04)
SDK version:3.0.4(9532ceb)
compile time:May 27 2020 10:12:17
Bin version(Wroom 02):1.7.4


I need this to work, as my entire project depends on it functioning properly, I hope you can help me. thank you.

Statistics: Posted by mhh.2000 — Sat Dec 17, 2022 10:18 am


]]>
2022-11-30T11:29:48+08:00 2022-11-30T11:29:48+08:00 https://bbs.espressif.com:443/viewtopic.php?t=76497&p=103824#p103824 <![CDATA[AT+ Commands • about New AT firmware download]]> Firmware which is called "factory_WROOM-02.bin" has been downloaded to address-0x0 successfully.
However, it is no response when I send AT commands to the module after the module has been restarted.

Statistics: Posted by xjxlui — Wed Nov 30, 2022 11:29 am


]]>
2022-11-15T21:10:44+08:00 2022-11-15T21:10:44+08:00 https://bbs.espressif.com:443/viewtopic.php?t=76220&p=103271#p103271 <![CDATA[AT+ Commands • AT+CWJAP:3 FAIL]]> We have a design working properly with an ESP-01S, its current mission is to capture the current date and time.
We intend to replace the ESP-01S with an ESP-12F for future features, however, in testing with a pair of ESP-12Fs, we get this:

ATE0
0K
AT
OK
AT+CWMODE=1
OK
AT+CWQAP
OK
WIFI DISCONNECT
AT+CWJAP="ssid","password"
FAIL
+CWJAP:3

The expected response should be:
WIFI CONNECTED
WIFI GOT IP


The version of both ESP-12F is:

AT version:1.3.0.0(Jul 14 2016 18:54:01)
SDK version:2.0.0(5a875ba)
v1.0.0.3
Tue 13 2018 09:37:06

Please, any suggestions?

Statistics: Posted by Breixo — Tue Nov 15, 2022 9:10 pm


]]>
2022-07-01T15:36:53+08:00 2022-07-01T15:36:53+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75562&p=101891#p101891 <![CDATA[AT+ Commands • ESP12-F怎么把温湿度上传到天气预报网站?]]> ESP-12F
espc3.png

C3
esp12-f.png

ESP12F固件
8266固件.png

Statistics: Posted by 315002181huang — Fri Jul 01, 2022 3:36 pm


]]>
2022-07-01T15:31:20+08:00 2022-07-01T15:31:20+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75561&p=101890#p101890 <![CDATA[AT+ Commands • ESP12-F怎么把温湿度上传到天气预报网站?]]>
esp12-f.png


c3:
espc3.png


esp-12f固件:
8266固件.png

Statistics: Posted by 315002181huang — Fri Jul 01, 2022 3:31 pm


]]>
2022-07-01T15:16:22+08:00 2022-07-01T15:16:22+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75560&p=101889#p101889 <![CDATA[AT+ Commands • ESP12-F怎么把温湿度上传到天气预报网站?]]> ESP-12F
esp12-f.png


C3:
espc3.png
espc3.png

esp12-f.png

Statistics: Posted by 315002181huang — Fri Jul 01, 2022 3:16 pm


]]>
2022-05-20T18:03:19+08:00 2022-05-20T18:03:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3381&p=101268#p101268 <![CDATA[AT+ Commands • Re: AT+CIPSTART closes on some websites when using SSL]]>
I think I understand what is going wrong, but don't know how to solve it.

I found out that ESP8266 sends an initial Random during Client Hello with UNIX Timestamp 00000000 (=Jan 1, 1970 01:00:00.000000000). This is outside the web server certificate's time frame and may be a reason for the web server to reject the connection.

I am using an ESP8266 containing:

AT version:1.7.5.0(Oct 9 2021 09:26:04)
SDK version:3.0.5(b29dcd3)
compile time:Oct 15 2021 18:05:38
Bin version(Wroom 02):1.7.5


Before sending AT+CIPSTART="SSL","servername",443 I did configure SNTP using AT+CIPSNTPCFG=1,1,"pool.ntp.org" and issued a successful SNTP request with AT+CIPSNTPTIME?. But still the time info in the Random remains 0. See wireshark extract below:

Handshake Protocol: Client Hello
Handshake Type: Client Hello (1)
Length: 47
Version: TLS 1.1 (0x0302)
Random: 000000006606ced024c458f0afad29b242403955b02a121fd48d0fc83c452f44
GMT Unix Time: (0)Jan 1, 1970 01:00:00.000000000
Random Bytes: 6606ced024c458f0afad29b242403955b02a121fd48d0fc83c452f44
Session ID Length: 0
Cipher Suites Length: 8
Cipher Suites (4 suites)
Cipher Suite: TLS_RSA_WITH_AES_128_CBC_SHA (0x002f)
Cipher Suite: TLS_RSA_WITH_AES_256_CBC_SHA (0x0035)
Cipher Suite: TLS_RSA_WITH_RC4_128_SHA (0x0005)
Cipher Suite: TLS_RSA_WITH_RC4_128_MD5 (0x0004)


The (Apache) webserver is allowing TLSv1.1, but responds with:

Transport Layer Security
TLSv1.1 Record Layer: Alert (Level: Fatal, Description: Handshake Failure)
Content Type: Alert (21)
Version: TLS 1.1 (0x0302)
Length: 2
Alert Message
Level: Fatal (2)
Description: Handshake Failure (40)


To test what happens if the Apache server does NOT accept TLSv1.1 I temporarily modified the server's SSL configuration. Then it responds as follows:

Transport Layer Security
TLSv1.1 Record Layer: Alert (Level: Fatal, Description: Protocol Version)
Content Type: Alert (21)
Version: TLS 1.1 (0x0302)
Length: 2
Alert Message
Level: Fatal (2)
Description: Protocol Version (70)


So it indicates reject because of the used TLS protocol version.

The server also accepts ciphers TLS_RSA_WITH_AES_128_CBC_SHA and TLS_RSA_WITH_AES_256_CBC_SHA, so this is probably not the reason for handshake failure.


So I have the strong impression that the wrong time stamp is the reason for the failed SSL connections. Any idea how this can be solved?

Thanks!

Statistics: Posted by ESP_Frank — Fri May 20, 2022 6:03 pm


]]>
2022-04-13T10:46:15+08:00 2022-04-13T10:46:15+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75325&p=100895#p100895 <![CDATA[AT+ Commands • More than 10 ESP-01 modile couldn't work in AT mode]]> Statistics: Posted by MianQi — Wed Apr 13, 2022 10:46 am


]]>
2021-09-10T11:06:32+08:00 2021-09-10T11:06:32+08:00 https://bbs.espressif.com:443/viewtopic.php?t=10084&p=100195#p100195 <![CDATA[AT+ Commands • Re: Manage SSL connection using AT commands]]> https://docs.espressif.com/projects/esp ... connection

Statistics: Posted by Her Mary — Fri Sep 10, 2021 11:06 am


]]>
2021-09-09T05:08:59+08:00 2021-09-09T05:08:59+08:00 https://bbs.espressif.com:443/viewtopic.php?t=10084&p=100190#p100190 <![CDATA[AT+ Commands • Re: Manage SSL connection using AT commands]]>
Have you been successful in your project with SSL implementation (certificates and keys)?

If yes, please help me, as I have the same problem, I tried several times to include the certificates in ESP8266 but I was unsuccessful.

Thanks,

Att

Statistics: Posted by prgvitor — Thu Sep 09, 2021 5:08 am


]]>
2021-08-19T15:55:41+08:00 2021-08-19T15:55:41+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75195&p=100138#p100138 <![CDATA[AT+ Commands • Re: AT+CIPSEND fails to send complete string]]> https://docs.espressif.com/projects/esp ... mands.html

Statistics: Posted by Her Mary — Thu Aug 19, 2021 3:55 pm


]]>
2021-08-19T11:37:52+08:00 2021-08-19T11:37:52+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75161&p=100137#p100137 <![CDATA[AT+ Commands • Re: UDP socket connection problem]]> https://docs.espressif.com/projects/esp ... index.html

Statistics: Posted by Her Mary — Thu Aug 19, 2021 11:37 am


]]>
2021-08-09T06:52:27+08:00 2021-08-09T06:52:27+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75195&p=100117#p100117 <![CDATA[AT+ Commands • AT+CIPSEND fails to send complete string]]>
Here is the function that is in question.

void sendStringWUnderground(float windSpeedMPH, float gustWindSpeedMPH){
String cmd1 = "AT+CIPSTART=\"TCP\",\"";
cmd1 += "rtupdate.wunderground.com"; // wunderground
cmd1 += "\",80";
Serial.println(cmd1);
esp8266Module.println(cmd1);

if (esp8266Module.find("Error")) {
Serial.println("AT+CIPSTART error");
return;
}
String cmd = "GET /weatherstation/updateweatherstation.php?;
cmd += ID;
cmd += "&PASSWORD=";
cmd += PASSWORD;
cmd += "&dateutc=now";
cmd += "&winddir=";
cmd += getCalulatedDirection();
cmd += "&windspeedmph=";
cmd += windSpeedMPH;
cmd += "&windgustmph=";
cmd += gustWindSpeedMPH;
cmd += "&tempf=";
cmd += getTemperatureValue();
cmd += "&dewptf=";
cmd += getDewPointValue();
cmd += "&humidity=";
cmd += getHumidityValue();
cmd += "&softwaretype=Arduino-ESP8266&action=updateraw&realtime=1&rtfreq=30"; // &softwaretype=Arduino%20UNO%20version1
cmd += "/ HTTP/1.1\r\nHost: rtupdate.wunderground.com:80\r\nConnection: close\r\n\r\n";

cmd1 = "AT+CIPSEND=";
cmd1 += String(cmd.length());
Serial.println(cmd1);
esp8266Module.println(cmd1);
if (esp8266Module.find(">")) {
Serial.println(cmd);
esp8266Module.print(cmd);
Serial.println("Data send OK");
}
else {
esp8266Module.println("AT+CIPCLOSE");
Serial.println("Connection closed");
Serial.println(" ");
}
}

Statistics: Posted by miklstel — Mon Aug 09, 2021 6:52 am


]]>
2021-07-13T11:57:13+08:00 2021-07-13T11:57:13+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75160&p=100054#p100054 <![CDATA[AT+ Commands • Re: AT commands return ERROR.]]> https://github.com/espressif/esp-at

Statistics: Posted by Her Mary — Tue Jul 13, 2021 11:57 am


]]>
2021-06-29T19:25:49+08:00 2021-06-29T19:25:49+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75161&p=100028#p100028 <![CDATA[AT+ Commands • UDP socket connection problem]]>
ESP-01 module got - 172.16.1.153, PC got -172.16.1.128.

PC to ESP-01 - ping OK.
ESP-01 to PC - ping OK.

Code:

AT+PING="172.16.1.128"
+119
OK


From PC side in Hercules open UDP - Module IP - 172.16.1.153, Port 1112, Local Port 8000 - Listen - UDP socket created.

ESP-01 module

AT+CIPSTART="UDP", "172.16.1.128", 8000, 1112, 2

IP ERROR

Why do I get an error?

Statistics: Posted by jenya7 — Tue Jun 29, 2021 7:25 pm


]]>
2021-06-29T14:28:08+08:00 2021-06-29T14:28:08+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75160&p=100027#p100027 <![CDATA[AT+ Commands • AT commands return ERROR.]]>
ATE0
OK

AT+GMR
AT version:0.21.0.0
SDK version:0.9.5
OK

But most of the commands return ERROR. For example

AT+CWMODE_CUR=?
ERROR

What can be a problem?


It seems like I have an old version (AT version:0.21.0.0). Where I can download the newest version?

Statistics: Posted by jenya7 — Tue Jun 29, 2021 2:28 pm


]]>
2021-06-18T15:49:18+08:00 2021-06-18T15:49:18+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75136&p=99997#p99997 <![CDATA[AT+ Commands • Re: What conditions are cause of "CLOSED" with AT+CIPSEND?]]> Statistics: Posted by Her Mary — Fri Jun 18, 2021 3:49 pm


]]>
2021-06-04T17:53:04+08:00 2021-06-04T17:53:04+08:00 https://bbs.espressif.com:443/viewtopic.php?t=75136&p=99960#p99960 <![CDATA[AT+ Commands • What conditions are cause of "CLOSED" with AT+CIPSEND?]]>
Occasionally, when I send data with "AT+CIPSEND" for "AT+CIPSENDBUF", I received below return.

Recv xx bytes
CLOSED

After sending data, it takes 7 sec until receive "CLOSED" return.
I wonder my codes have some timing issues or other problems.
So, I want to check conditions why ESP returns "CLOSED" and avoid these conditions.
Would you share why ESP returns "CLOSED" or how I can check problem conditions?

If I need to check "error code" in this condition, please let me know how I can check it.
I try to input "AT+SYSLOG=1" or "AT+SYSLOG?", ESP only returns "ERROR".

Thanks.

p.s. I used ESP-WROOM-02D and please refer below firmware information.

AT+GMR
AT version:1.7.3.0(Mar 19 2020 18:15:04)
SDK version:3.0.3(8427744)
compile time:Mar 24 2020 16:16:12
Bin version(Wroom 02):3.0.3
OK

Statistics: Posted by Good Day — Fri Jun 04, 2021 5:53 pm


]]>
2021-04-22T19:48:47+08:00 2021-04-22T19:48:47+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74872&p=99691#p99691 <![CDATA[AT+ Commands • Re: REUSEPORT FAIL / LINGER FAIL errors, while connecting to tcp server]]> https://github.com/espressif/esp-at/com ... 53488ffb2d .

Statistics: Posted by Her Mary — Thu Apr 22, 2021 7:48 pm


]]>
2021-04-22T06:18:56+08:00 2021-04-22T06:18:56+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2574&p=99682#p99682 <![CDATA[AT+ Commands • Re: Cannot connect to ESP8266 after a while]]>

Statistics: Posted by mainul — Thu Apr 22, 2021 6:18 am


]]>
2021-04-13T08:39:10+08:00 2021-04-13T08:39:10+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74791&p=99621#p99621 <![CDATA[AT+ Commands • Re: Connect site with SSL]]>
Thanks for your reply.
Would you check below comments?

* I don't change firmware and I used it original one.

1. I used same AT commands except for TCP and SSL in "AT+CIPSTART" for different URLs and "AT+CIPSSLSIZE=4096" for only SSL.
I wonder there need additional or different AT commands or not.

2. Would you explain how I can "capture Wi-Fi packets to make sure of it"?

3. You said "some SSL server may need certificates to connect to it, but google.com is not one of them".
"https://www.arduino.cc/" is public domain.
Would you share example to access "https://www.arduino.cc/" by using AT commands?

Thanks.

Statistics: Posted by Good Day — Tue Apr 13, 2021 8:39 am


]]>
2021-04-12T11:34:56+08:00 2021-04-12T11:34:56+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74791&p=99614#p99614 <![CDATA[AT+ Commands • Re: Connect site with SSL]]>

Code:

AT+CIPSTART="SSL",xxxx then it should be SSL connection. Or maybe you can try to capture Wi-Fi packets to make sure of it.
And some SSL server may need certificates to connect to it, but google.com is not one of them.

Statistics: Posted by Her Mary — Mon Apr 12, 2021 11:34 am


]]>
2021-04-09T18:23:22+08:00 2021-04-09T18:23:22+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74791&p=99607#p99607 <![CDATA[AT+ Commands • Re: Connect site with SSL]]>
"GET /index.html HTTP/1.1 Host: google.com"

And I can see below message.

"HTTP/1.1 301 Moved Permanently
Location: https://www.google.com/
Content-Type: text/html; charset=UTF-8"

I'm not sure, I connect google with HTTPs or not.

And there are descriptions for "+CIPSSLCCONF".
Am I set it with esp_ca_cert.bin and esp_cert_private_key.bin?

Thans in advance.

Statistics: Posted by Good Day — Fri Apr 09, 2021 6:23 pm


]]>
2021-04-06T17:33:29+08:00 2021-04-06T17:33:29+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74872&p=99602#p99602 <![CDATA[AT+ Commands • REUSEPORT FAIL / LINGER FAIL errors, while connecting to tcp server]]> I used ESP8285 in my design. From the datasheet I got that UART pins are GPIO1/3. But i didnt notice that AT-commands pins are GPIO13/15. Actualy there is no word in the datasheet about it. And we've already ordered 200 pcbs, but i pulled GPIO15 hard to the gnd under qfn package 8285.
I recompilled firmware. And as it is said here https://docs.espressif.com/projects/esp-at/en/latest/Compile_and_Develop/How_to_set_AT_port_pin.html I changed UART pins to GPIO3/1. And everything works fine. But when I connect to my Server, ESP throws this errors:

Code:

AT+CIPSTART="TCP","<ip>",23341
REUSEPORT FAIL

LINGER FAIL

CONNECT

OK


But everything works fine! Connecting/disconnecting, sending data..
Does anyone know what the errors are: REUSEPORT FAIL, LINGER FAIL? and why does esp work despite errors?
This is a commercial project, so, although it works, it is scary to send it to release with some errors ..

Start info from chip:

Code:

phy_version: 1163.0, 665d56c, Jun 24 2020, 10:00:08, RTOS new
module_name:WROOM-02

max tx power=78,ret=0

2.0.0

ready


Code:

AT+GMR
AT version:2.2.0.0-dev(875d40c - ESP8266 - Mar 31 2021 03:50:00)
SDK version:v3.4-rc
compile time(4920382):Apr  5 2021 18:02:09
Bin version:2.0.0(WROOM-02)

OK


Also, I downloaded my firmware to module WROOM-02 - the errors are the same and everything works the same.

Statistics: Posted by Alehandro — Tue Apr 06, 2021 5:33 pm


]]>
2021-04-01T15:34:14+08:00 2021-04-01T15:34:14+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74791&p=99518#p99518 <![CDATA[AT+ Commands • Connect site with SSL]]>
I know that SSL connection problem with AT command can be found in this BBS.

And I already refer "https://bbs.espressif.com/viewtopic.php?f=16&t=3381&p=73870&hilit=ssl#p73870" but it doesn't helpful.

I used ESP-WROOM-02D and please check below firmware information.

AT+GMR
AT version:1.7.3.0(Mar 19 2020 18:15:04)
SDK version:3.0.3(8427744)
compile time:Mar 24 2020 16:16:12
Bin version(Wroom 02):3.0.3
OK

In my board, with below AT command sequences,

> AT+CIPMUX=1
> AT+CIPSSLSIZE=4096
> AT+CIPSTART="SSL","site's URL",443

"www.google.com" can be connected but "arduino.cc" can not be connected.

How I can check and solve problem?
Do there need more AT commands?

I want to check my own web server, but I think "arduino.cc" has same problem.
So I asked about "arduino.cc" first.

Thanks.

Statistics: Posted by Good Day — Thu Apr 01, 2021 3:34 pm


]]>
2021-02-07T10:19:16+08:00 2021-02-07T10:19:16+08:00 https://bbs.espressif.com:443/viewtopic.php?t=4761&p=99300#p99300 <![CDATA[AT+ Commands • Re: I'm having an issue with TCP RST instead of FIN.]]> https://github.com/espressif/esp-at

Statistics: Posted by Her Mary — Sun Feb 07, 2021 10:19 am


]]>
2021-01-12T10:39:06+08:00 2021-01-12T10:39:06+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74462&p=99211#p99211 <![CDATA[AT+ Commands • Re: Receiving Multicast]]> https://github.com/espressif/esp-at

Statistics: Posted by Her Mary — Tue Jan 12, 2021 10:39 am


]]>
2021-01-03T03:38:33+08:00 2021-01-03T03:38:33+08:00 https://bbs.espressif.com:443/viewtopic.php?t=74462&p=99115#p99115 <![CDATA[AT+ Commands • Receiving Multicast]]>
I try to receive multicast with ESP8266 using At commands.
I am using this commands to initalize an UDP socket.

AT+MDNS=1,"sma","iot",9522
AT-CIPSTART=3,"UDP","239,12,255,254",9522,9522,2

There are protocols on port 9522 and multicast adress 239.12.255.254.
I can receive the protocols on my laptop (connected to the same AP) but there is nothing on my ESP8266

I found another code sequence (is from ESP32)

AT+MDNS=1,1,"sma","iot",9522 (-> here it is =1,1 ?? not working on ESP8266)
AT+MDNS=0,1 (-> here it is =0,1 ?? not working on ESP8266)
AT-CIPSTART=3,"UDP","239,12,255,254",9522,9522,2

When using this code (with modified syntax for AT+MDNS) my conection to the AP seems to be gone (BSSID is 0 and IP is 0)

Has anyone an idea what I do wrong?
Is multicast working on ESP8266 at all?

Thank you for any help

Regards
Norbert

Statistics: Posted by n2iewerth — Sun Jan 03, 2021 3:38 am


]]>
2020-12-07T21:25:57+08:00 2020-12-07T21:25:57+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2784&p=95022#p95022 <![CDATA[AT+ Commands • Re: "\0" command SOMETIMES does not terminate AT+CIPSENDEX transmission]]>
first let me add some more details on my configuration:

I am using an ESP-01 and I am communicating with 19.200 Baud. I have done an Over-The-Air OTA Update a few months back. And the software release is:

Code:

AT+GMR
AT version:1.7.4.0(May 11 2020 19:13:04)
SDK version:3.0.4(9532ceb)
compile time:May 27 2020 10:12:20
Bin version(Wroom 02):1.7.4
OK


In the meantime, I did some more trials and found that missing the \0 as an termination marker depends on the length of the buffer. Specifically it always failed when the buffer length ends on 99 in decimal writing, e.g. for 99, 199, 299, and so on!
A simple example is shown in the following log:

Code:

AT+CIPSENDEX=2048

OK
> 123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789\0\0
Recv 101 bytes

SEND OK

+IPD,101:123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789\0


The receiving end of this link is configured to send back a verbatim copy of what it has received. So it can be seen that the first \0 is not recognized as termination but is included in the payload, which becomes now 99+2=101 bytes. (When I do not sent the second \0, the communication gets stuck.)

When sending massive amounts of messages with different length, I have found that sometimes also at length xx00 (100, 200, 300..) and very rarely also with lengths xx98 and xx01 the \0 can be missed as a termination.

WORKAROUND:
For now, I have implemented a byte counter and when at the end of the message the length is ending between xx97 and xx02 (inclusive), I am adding 0x00 (NUL) bytes until the message length reaches xx03 before sending the \0. In my application (an http server), the receivers can silently ignore the additionally received 0x00 bytes.
So far, I have not seen any more issues when using this workaround.

QUESTION:
Can anybody reproduce this problem? I doubt that it is directly related to the number of bytes, but at least for me (e.g. with my baud rate etc.) it shows this peculiar behavior.

Regards,
Stefan

Statistics: Posted by StefanS — Mon Dec 07, 2020 9:25 pm


]]>
2020-11-25T11:54:07+08:00 2020-11-25T11:54:07+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2784&p=92274#p92274 <![CDATA[AT+ Commands • Re: "\0" command SOMETIMES does not terminate AT+CIPSENDEX transmission]]> https://github.com/espressif/esp-at

Statistics: Posted by Her Mary — Wed Nov 25, 2020 11:54 am


]]>
2020-11-21T22:58:14+08:00 2020-11-21T22:58:14+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2784&p=91798#p91798 <![CDATA[AT+ Commands • Re: "\0" command SOMETIMES does not terminate AT+CIPSENDEX transmission]]>
this is an old post but I am wondering if the original problem has ever been resolved?

I seem to have the same or a very similar problem: I am using AT+CIPSENDEX with max 2048 Buflen but always terminate the transmission before by sending \0. Each \ in the transmission payload is escaped, i.e. send as \\.

This works very nice most of the times. But also for me sometimes the \0 is not recocnized as a termination and the ESP waits for further characters and my external processor waits for the send ok response from the ESP...

After finding this post, I have tried sending another \0 sequence under such conditions and that always started the transmission of all my payload characters but including the original \0. I have also checked with a logic-analyzer that the sequence was send correctly without gaps. In the failing cases no \ characters are in the payload and the final \0 sequence was always preceeded by a space.

Any suggestions?

Regards
Stefan

Statistics: Posted by StefanS — Sat Nov 21, 2020 10:58 pm


]]>
2020-07-19T13:19:32+08:00 2020-07-19T13:19:32+08:00 https://bbs.espressif.com:443/viewtopic.php?t=59376&p=81686#p81686 <![CDATA[AT+ Commands • Re: esp8266 AT commands]]> https://bbs.espressif.com/viewtopic.php?f=61&t=560

Statistics: Posted by Her Mary — Sun Jul 19, 2020 1:19 pm


]]>
2020-07-17T23:25:01+08:00 2020-07-17T23:25:01+08:00 https://bbs.espressif.com:443/viewtopic.php?t=59376&p=81608#p81608 <![CDATA[AT+ Commands • esp8266 AT commands]]> –>AT+CIPSTART=”TCP”,”innovations.thinkfinitylabs.com”,80\r\n
–>AT+CIPSEND=90\r\n
–>GET /test/comm/sens.php?key=f46fa009d3c6902ea2a805567c7ed4&val1=01&val2=02&val3=03&val4=04\r\n

Then after sending GET command it shows like this:


AT+CIPSTART=”TCP”,”innovations.thinkfinitylabs.com”,80

CONNECT

OK
AT+CIPSEND=90

OK
>

busy s…

Recv 90 bytes

SEND OK
CLOSED

Can anybody please tell why is it showing busy again and again?

Statistics: Posted by Kunal Gupta — Fri Jul 17, 2020 11:25 pm


]]>
2020-05-11T11:04:47+08:00 2020-05-11T11:04:47+08:00 https://bbs.espressif.com:443/viewtopic.php?t=57343&p=78389#p78389 <![CDATA[AT+ Commands • Re: https by SDK 3.0.3]]> https://github.com/espressif/esp-at or https://github.com/espressif/ESP8266_RT ... /protocols

Statistics: Posted by Her Mary — Mon May 11, 2020 11:04 am


]]>
2020-05-11T10:56:36+08:00 2020-05-11T10:56:36+08:00 https://bbs.espressif.com:443/viewtopic.php?t=57399&p=78388#p78388 <![CDATA[AT+ Commands • Re: New out of the box no AT response]]> Statistics: Posted by Her Mary — Mon May 11, 2020 10:56 am


]]>
2020-04-30T00:10:23+08:00 2020-04-30T00:10:23+08:00 https://bbs.espressif.com:443/viewtopic.php?t=57399&p=77614#p77614 <![CDATA[AT+ Commands • New out of the box no AT response]]> Roger

Statistics: Posted by rwlakin — Thu Apr 30, 2020 12:10 am


]]>
2020-04-27T14:49:22+08:00 2020-04-27T14:49:22+08:00 https://bbs.espressif.com:443/viewtopic.php?t=57343&p=77514#p77514 <![CDATA[AT+ Commands • https by SDK 3.0.3]]>

(1) esp_cert_private_key.bin 默认烧录到地址 0xFC000
(2) esp_ca_cert.bin 默认烧录到地址 0xFB000
(3) SNTP enable OK, and work fine.
(4) AT+CIPSTART="SSL","hostname",443 --> ERROR\r\nCLOSE
PS: Non-OS SDK version : 3.0.3

Statistics: Posted by joecheng56 — Mon Apr 27, 2020 2:49 pm


]]>
2020-03-27T19:53:59+08:00 2020-03-27T19:53:59+08:00 https://bbs.espressif.com:443/viewtopic.php?t=55101&p=74831#p74831 <![CDATA[AT+ Commands • Re: AT+CWHOSTNAME doesn't work]]> https://www.espressif.com/en/support/download/at

Statistics: Posted by Her Mary — Fri Mar 27, 2020 7:53 pm


]]>
2020-03-27T19:52:24+08:00 2020-03-27T19:52:24+08:00 https://bbs.espressif.com:443/viewtopic.php?t=55195&p=74830#p74830 <![CDATA[AT+ Commands • Re: AT+CIPSNTPTIME?不能获取正确时间]]> Statistics: Posted by Her Mary — Fri Mar 27, 2020 7:52 pm


]]>
2020-03-06T23:32:25+08:00 2020-03-06T23:32:25+08:00 https://bbs.espressif.com:443/viewtopic.php?t=6003&p=74088#p74088 <![CDATA[AT+ Commands • Re: SNTP not working in ESP8266]]>
ESP_Faye wrote:
Hi,

You need to set the time zone first.

Code:

AT+CIPSNTPCFG=1,8 //set time zone


If your problem is still unsolved, please feel free to let me know.
Sorry for the inconvenience.

1.6的固件(esp-01s),设置时区之后依然获取到的只是初始时间

Statistics: Posted by Guest — Fri Mar 06, 2020 11:32 pm


]]>
2020-03-06T23:15:51+08:00 2020-03-06T23:15:51+08:00 https://bbs.espressif.com:443/viewtopic.php?t=55195&p=74085#p74085 <![CDATA[AT+ Commands • AT+CIPSNTPTIME?不能获取正确时间]]> AT+CIPSNTPCFG=1,8,"cn.pool.ntp.org "

OK
AT+CIPSNTPTIME?
+CIPSNTPTIME:Thu Jan 01 00:00:00 1970

OK
AT+GMR
AT version:1.6.2.0(Apr 13 2018 11:10:59)
SDK version:2.2.1(6ab97e9)
compile time:Jun 7 2018 19:34:26
Bin version(Wroom 02):1.6.2
OK

Statistics: Posted by Guest — Fri Mar 06, 2020 11:15 pm


]]>
2020-03-02T19:54:52+08:00 2020-03-02T19:54:52+08:00 https://bbs.espressif.com:443/viewtopic.php?t=55101&p=73957#p73957 <![CDATA[AT+ Commands • AT+CWHOSTNAME doesn't work]]>
I want to change the hostname but at command AT+CWHOSTNAME doesn't work.
I've tried AT+CWMODE_CUR=1 or AT+CWMODE_CUR=3 but i have the same result.
Thanks for your answers.
Have a good day.


PS:
*********************************************************
**************** DEBUT DE L'INITIALISATION ********
**********************************************************
AT

OK
**********************************************************
AT+GMR

AT version:0.50.0.0(Sep 18 2015 20:55:38)
SDK version:1.4.0
compile time:Sep 18 2015 21:46:52
OK
**********************************************************
AT+CWMODE_CUR=3

OK
**********************************************************
**********************************************************
AT+CWJAP_CUR="SFR-9318","V69KXMHXJFEV"

WIFI DISCONNECT
WIFI CONNECTED
WIFI GOT IP

OK
**********************************************************
AT+CIFSR

+CIFSR:APIP,"192.168.4.1"
+CIFSR:APMAC,"be:dd:c2:e8:bd:a9"
+CIFSR:STAIP,"192.168.0.15"
+CIFSR:STAMAC,"bc:dd:c2:e8:bd:a9"

OK
**********************************************************
AT+CIPMUX=1

OK
**********************************************************
AT+CIPSERVER=1,80
no change

OK
**********************************************************
AT+CWTHOSTNAME=test

ERROR
**********************************************************
***************** INITIALISATION TERMINEE ********
**********************************************************

Statistics: Posted by Guest — Mon Mar 02, 2020 7:54 pm


]]>
2020-02-28T10:39:11+08:00 2020-02-28T10:39:11+08:00 https://bbs.espressif.com:443/viewtopic.php?t=54933&p=73871#p73871 <![CDATA[AT+ Commands • Re: How do you change AT+CIPMODE flash memory?]]> Statistics: Posted by Her Mary — Fri Feb 28, 2020 10:39 am


]]>
2020-02-28T10:37:24+08:00 2020-02-28T10:37:24+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3381&p=73870#p73870 <![CDATA[AT+ Commands • Re: AT+CIPSTART closes on some websites when using SSL]]> Statistics: Posted by Her Mary — Fri Feb 28, 2020 10:37 am


]]>
2020-02-22T06:35:36+08:00 2020-02-22T06:35:36+08:00 https://bbs.espressif.com:443/viewtopic.php?t=54933&p=73681#p73681 <![CDATA[AT+ Commands • How do you change AT+CIPMODE flash memory?]]>
I have been working with an ESP-12E for the past few days and have encountered a few problems. I've fixed a few of them, but I haven't been able to figure out how to set the cipmode in flash. I don't want the ESP to be in passthrough mode, but every time I restart it, CIPMODE is always 1. I've been able to use AT+SAVETRANSLINK to change CIPMODE in the past, but now whenever I enter the SAVETRANSLINK command it just says error.

I'm connecting to the ESP through a teensy 4.0. Please let me know if there is a way, and how, I can permanently set the cipmode value to 0. Thank you!

Statistics: Posted by Guest — Sat Feb 22, 2020 6:35 am


]]>
2020-02-13T03:15:03+08:00 2020-02-13T03:15:03+08:00 https://bbs.espressif.com:443/viewtopic.php?t=3381&p=73409#p73409 <![CDATA[AT+ Commands • Re: AT+CIPSTART closes on some websites when using SSL]]> I have my own configured Virtual Server with SSL.
I am using ESP-01 module.
Instead of CONNECT, getting CLOSED without any response

AT+CIPSTART="SSL","demo.ambiconnect.com",443
CLOSED

OK

But it is working fine for other sites.
AT+CIPSTART="SSL","www.google.com",443

CONNECT

OK

Keep Alive Settings are also Good.
Any issue on the Server side related to configurations ?

Statistics: Posted by Guest — Thu Feb 13, 2020 3:15 am


]]>
2019-11-29T11:19:33+08:00 2019-11-29T11:19:33+08:00 https://bbs.espressif.com:443/viewtopic.php?t=52268&p=68499#p68499 <![CDATA[AT+ Commands • Re: AT+CIUPDATE OK but no update made]]> 1.7.x is the latest version of 2MB flash map.
Since the AT firmware supports more and more functions, 1MB flash is not large enough to store the new AT firmware.

Statistics: Posted by Her Mary — Fri Nov 29, 2019 11:19 am


]]>
2019-11-14T19:44:00+08:00 2019-11-14T19:44:00+08:00 https://bbs.espressif.com:443/viewtopic.php?t=52268&p=68037#p68037 <![CDATA[AT+ Commands • AT+CIUPDATE OK but no update made]]>
I have "old" ESP8266 with AT version 1.3.0, I use AT+CIUPDATE to update the AT version, a first update is made to AT version 1.6.2.
Normaly the curent version is 7.0.1 and if i try again AT+CIUPDATE i have this:
+CIPUPDATE:1
+CIPUPDATE:2
+CIPUPDATE:3
+CIPUPDATE:4

OK

But the version after update is alway 1.6.2 ...?

Is somebody as any idea ?
Thanks

Statistics: Posted by Guest — Thu Nov 14, 2019 7:44 pm


]]>
2019-11-10T12:49:14+08:00 2019-11-10T12:49:14+08:00 https://bbs.espressif.com:443/viewtopic.php?t=51974&p=67924#p67924 <![CDATA[AT+ Commands • Re: Sending POST and GET request with params and body]]>
This helped, but it was a GET request. My request will be a post and I have been unable to find any solid good explanations on how to prepare these properly. With my examples included in the question; I cannot get my server to respond to the ESP client in any situation. I have been blocked on this for more than a few weeks now :?

Statistics: Posted by Guest — Sun Nov 10, 2019 12:49 pm


]]>