My ESP8285 firmware is up-to-date, and I can't seem to use SSL with the latest firmware as the AT firmware crashes. Please see below:
>>> import network, machine, os
>>> wifi = network.wifi
>>> wifi.start(tx=7, rx=6, ssid="***REDACTED***", password="***REDACTED***", wait=True)
True
>>>
>>> wifi.ifconfig()
('192.168.1.48', '192.168.1.1', '255.255.255.0', '192.168.1.1', '208.67.222.222')
>>>
>>> wifi.debug(True)
True
>>>
>>> requests = network.requests
>>> requests.debug(True)
>>>
>>> res = requests.get('http://loboris.eu/K210/test.txt')
M (6217934) [ATCMD]: AT COMMAND: [AT+CIPSSLSIZE?\r\n] Expecting: [\r\nOK\r\n], [\r\nERROR\r\n]
M (6231488) [ATCMD]: AT RESPONSE: match condition 1 at position 34 (4 ms, 24 byte(s), buf_start=16)
M (6240285) [ATCMD]: AT COMMAND: [AT+CIPSSLSIZE=16384\r\n] Expecting: [\r\nOK\r\n], [\r\nERROR\r\n]
M (6253492) [ATCMD]: AT RESPONSE: match condition 1 at position 40 (2 ms, 0 byte(s), buf_start=40)
W (6262357) [WIFI_TASK]: no match, removed [.222.222\r\n^^^^^^+CIPSSLSIZE:40]
M (6269862) [ATCMD]: AT COMMAND: [AT+TCPSTART=0,"TCP","loboris.eu",80,3,0\r\n] Expecting: [0,CONNECT\r\n], [\r\nERROR\r\n], [\r\n+TCPSTART]
M (6325528) [ATCMD]: AT RESPONSE: match condition 1 at position 16 (39 ms, 0 byte(s), buf_start=16)
W (6334334) [WIFI_TASK]: no match, removed [96\r\n^^^^^^^^^^^^^]
M (6340883) [ATCMD]: AT COMMAND: [AT+TCPSEND=0,109\r\n] Expecting: [\r\n>], [\r\n+TCPSEND:Busy\r\n]
M (6353538) [ATCMD]: AT RESPONSE: match condition 1 at position 16 (2 ms, 0 byte(s), buf_start=16)
M (6362234) [ATCMD]: AT COMMAND: [Send data] Expecting: [\r\n+TCPSEND:Complete\r\n], [\r\nOK\r\n], [\r\nERROR\r\n], [FAIL]
W (6373777) [ATCMD]: data: [GET /K210/test.txt HTTP/1.1\x0D\x0AUser-Agent: MicroPython HTTP Client/1.0\x0D\x0AHost: lobo]
M (6432580) [ATCMD]: AT RESPONSE: match condition 1 at position 35 (38 ms, 37 byte(s), buf_start=19)
M (6441482) [WIFI_TASK]: +TCP data request found [+TCP,0,9,1331:]
M (6448038) [WIFI_TASK]: Data for link_id 0 (srv=9), len=1331 [+TCP,0]
M (6455073) [WIFI_TASK]: +TCP Requesting data
M (6575874) [WIFI_TASK]: received (127 ms); socket: len=1331, ovf=0, tail=1331, head=0
Y (6583518) [WIFI_TASK]: Wait for data processing
M (6589110) HTTP_CLIENT: http_on_headers_complete, status=200, offset=269, nread=269
Q (6696708) [WIFI_TASK]: Data processed in 108 ms
M (6701314) [WIFI_TASK]: +TCP Confirm receive
Q (6706711) [WIFI]: Close socket 0 (0)
M (6710617) [ATCMD]: AT COMMAND: [AT+TCPCLOSE=0\r\n] Expecting: [\r\nOK\r\n], [\r\nERROR\r\n]
M (6724698) [ATCMD]: AT RESPONSE: match condition 1 at position 0 (4 ms, 0 byte(s), buf_start=0)
Y (6733230) [WIFI_TASK]: connection for socket with link_id 0 closed, active=285 ms, time=135 ms
W (6742671) [WIFI_TASK]: closed, removed [0,CLOSED]
Q (6748053) [WIFI_TASK]: Processing delay
>>> res[0]
200
>>>
>>> res2 = requests.get('https://loboris.eu/K210/test.txt')
M (6769874) [ATCMD]: AT COMMAND: [AT+CIPSSLSIZE?\r\n] Expecting: [\r\nOK\r\n], [\r\nERROR\r\n]
M (6783728) [ATCMD]: AT RESPONSE: match condition 1 at position 35 (4 ms, 25 byte(s), buf_start=16)
M (6792677) [ATCMD]: AT COMMAND: [AT+TCPSTART=0,"SSL","loboris.eu",443,3,0\r\n] Expecting: [0,CONNECT\r\n], [\r\nERROR\r\n], [\r\n+TCPSTART]
M (7164929) [ATCMD]: AT RESPONSE: match condition 1 at position 41 (355 ms, 0 byte(s), buf_start=41)
Q (7173797) [WIFI_TASK]: Continue
W (7177805) [WIFI_TASK]: no match, removed [^^^^^^^^^^^^^^\r\n+CIPSSLSIZE:16384\r\n^^^^^^^]
Q (7186638) [WIFI_TASK]: more data, check again
M (7191924) [ATCMD]: AT COMMAND: [AT+TCPSEND=0,109\r\n] Expecting: [\r\n>], [\r\n+TCPSEND:Busy\r\n]
M (7205945) [ATCMD]: AT RESPONSE: match condition 1 at position 16 (3 ms, 0 byte(s), buf_start=16)
M (7214641) [ATCMD]: AT COMMAND: [Send data] Expecting: [\r\n+TCPSEND:Complete\r\n], [\r\nOK\r\n], [\r\nERROR\r\n], [FAIL]
W (7226184) [ATCMD]: data: [GET /K210/test.txt HTTP/1.1\x0D\x0AUser-Agent: MicroPython HTTP Client/1.0\x0D\x0AHost: lobo]
W (8249492) [ATCMD]: AT COMMAND: TIMEOUT (1000 ms, 506)
M (8254487) [ATCMD]: AT RESPONSE: no response (506) [\r\n+TCPSEND:109\r\n\r\n ets Jan 8 2013,rst cause:2, boot mode:(3,0)\r\n\r\nload 0x40108000, len 3056, room 16 \r\ntail 0\r\nchksum 0xd7\r\nload 0x3fffb000, len 992, room 8 \r\ntail 8\r\nchksum 0xd7\r\ncsum 0xd7~\r\n==============================\r\nLoBo ESP8266 Bootloader v1.2.0\r\n==============================\r\n Flash map: 2, 1MB (512+512)\r\n Flash mode: DOUT, [ESP8285]\r\nReset reason: EXCEPTION (28)\r\n\r\nLoading configured firmware (0)\r\n Address: 001000\r\nStarting firmware 0, map 2 from 001000...\r\n\r\n\r\nready\r\nWIFI CONNECTED\r\n]
W (8308719) [WIFI_TASK]: no match, removed [^^^^^^^^^^\r\nOK\r\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^]
E (8357942) [WIFI]: Send: error sending data
Q (8362688) [WIFI]: Status: [\r\n+TCPSEND:109\r\n\r\n ets Jan 8 2013,rst cause:2, boot mode:(3,0)\r\n\r\nload 0x40108000, len 3056, room 16 \r\ntail 0\r\nchksum 0xd7\r\nload 0x3fffb000, len 992, room 8 \r\ntail 8\r\nchksum 0xd7\r\ncsum 0xd7~\r\n==============================\r\nLoBo ESP8266 Bootloader v1.2.0\r\n==============================\r\n Flash map: 2, 1MB (512+512)\r\n Flash mode: DOUT, [ESP8285]\r\nReset reason: EXCEPTION (28)\r\n\r\nLoading configured firmware (0)\r\n Address: 001000\r\nStarting firmware 0, map 2 from 001000...\r\n\r\n\r\nready\r\nWIFI CONNECTED\r\n]
E (8414859) TRANS_SSL: Write error, errno=Network is unreachable
E (8421368) HTTP_CLIENT: Error write request
Q (8426147) [WIFI]: Close socket 0 (0)
M (8430584) [ATCMD]: AT COMMAND: [AT+TCPCLOSE=0\r\n] Expecting: [\r\nOK\r\n], [\r\nERROR\r\n]
M (8444570) [ATCMD]: AT RESPONSE: match condition 2 at position 31 (4 ms, 0 byte(s), buf_start=16)
W (8453289) [WIFI_TASK]: no match, removed [^^^^^^^^^^^^^^^^AT+TCPCL]
W (8514670) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (8575703) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (8587326) [WIFI_TASK]: no match, removed [O]
Q (8591499) [WIFI_TASK]: more data, check again
W (8596718) [WIFI_TASK]: no match, removed [SE=0\r\n^^^^^^]
W (8636708) [WIFI_TASK]: no match, removed [^^^WIFI GOT IP\r\nAT+TCPCL]
W (8697763) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (8758801) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (8819836) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (8880873) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (8941911) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (9002943) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (9063979) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (9125015) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (9186050) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (9247088) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (9308124) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (9369165) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (9430198) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (9491229) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (9552268) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (9613301) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (9674339) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (9735377) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (9796411) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (9857449) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (9918488) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (9979525) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (10040559) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (10101592) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (10162631) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (10223665) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (10284704) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (10345738) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
W (10406769) [WIFI_TASK]: no match, removed [OSE=0\r\n^^^^^^^^^AT+TCPCL]
E (10472823) [REQUESTS]: HTTP Request failed: 28675 []
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OSError: HTTP Request failed
>>> res2[0]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name not defined
>>>
==============================
LoBo ESP8266 Bootloader v1.2.0
==============================
Flash map: 2, 1MB (512+512)
Flash mode: DOUT, [ESP8285]
Reset reason: EXCEPTION (0)
Loading configured firmware (0)
Address: 001000
Starting firmware 0, map 2 from 001000...
ready
WIFI DISCONNECT
WIFI CONNECTED
WIFI GOT IP
AT
OK
AT
OK
ATE0
OK
+TCPCOMMANDS:1
OK
+CWMODE:1
OK
+CWJAP:"***REDACTED***","ac:84:***REDACTED***",11,-63,0
OK
OK
OK
+CIPRECVMODE:0
OK
OK
OK
+CIPSNTPCFG:0
OK
OK
+CIPSNTPCFG:1,0,"pool.ntp.org"
OK
+CIPSTA:ip:"192.168.1.48"
+CIPSTA:gateway:"192.168.1.1"
+CIPSTA:netmask:"255.255.255.0"
OK
+CIPDNS_CUR:192.168.1.1
+CIPDNS_CUR:208.67.222.222
OK
+CIPSSLSIZE:4096
OK
OK
0,CONNECT
OK
>
+TCPSEND:109
+TCPSEND:Complete
OK
+TCP,0,9,1331:HTTP/1.1 200 OK
Date: Wed, 19 Feb 2020 17:14:58 GMT
Server: Apache/2.4.29 (Ubuntu)
Last-Modified: Wed, 20 Mar 2019 13:08:43 GMT
ETag: "426-5848652314cc0"
Accept-Ranges: bytes
Content-Length: 1062
Vary: Accept-Encoding
Content-Type: text/plain; charset=UTF-8
===============
Welcome to K210
===============
General Specifications:
-----------------------
* The K210 includes two 64-bit RISC-V CPU cores, each with a built-in independent FPU.
* KPU high performance Convolutional Neural Network (CNN) hardware accelerator.
The primary functions of the K210 are machine vision and hearing,
which includes the KPU for computing convolutional neural networks and
an APU for processing microphone array inputs.
* The K210 features a Fast Fourier Transform (FFT) Accelerator for high performance
complex FFT calculations. As a result, for most machine learning algorithms,
the K210 has high-performance processing power.
* Advanced TSMC 28nm process, temperature range -40°C to 125°C
* Firmware encryption support
* Unique programmable IO array maximises design flexibility
* Low voltage, reduced power consumption compared to other systems
with the same processing power
* 3.3V/1.8V dual voltage IO support eliminates need for level shifters
---------
2019 LoBo
---------
OK
0,CLOSED
+CIPSSLSIZE:16384
OK
0,CONNECT
OK
>
+TCPSEND:109
ets Jan 8 2013,rst cause:2, boot mode:(3,6)
load 0x40108000, len 3056, room 16
tail 0
chksum 0xd7
load 0x3fffb000, len 992, room 8
tail 8
chksum 0xd7
csum 0xd7�
==============================
LoBo ESP8266 Bootloader v1.2.0
==============================
Flash map: 2, 1MB (512+512)
Flash mode: DOUT, [ESP8285]
Reset reason: EXCEPTION (28)
Loading configured firmware (0)
Address: 001000
Starting firmware 0, map 2 from 001000...
ready
WIFI CONNECTED
AT+TCPCLOSE=0
ERROR
AT+TCPCLOSE=0
ERROR
AT+TCPCLOSE=0
ERROR
AT+TCPCLOSE=0
ERROR
AT+TCPCLOSE=0
ERROR
AT+TCPCLOSE=0
ERROR
WIFI GOT IP
AT+TCPCLOSE=0
ERROR
AT+TCPCLOSE=0
ERROR
AT+TCPCLOSE=0