Are you able to reproduce this consistently?
Can you grab the bootloader dump using another serial port? Would be helpful to know whether this is a wdt reset or an exception (if so, what were the registers).
Explore... Chat... Share...
igrr wrote:Regarding the server: TCP mode is in a somewhat useable state, it might be worth trying. You use it as follows (sorry didn't have time to update commands manual on github):Code: Select allAT+CIPLISTEN="TCP",12345
+CIPLISTEN=6,12345
This will create a TCP server listening on port 12345. The reply contains context id for the server (6) and the port. You will need context id when you close the server.
When the server gets an incomming connection, you get the following unsolicited result code:Code: Select all+CIPACCEPT="0","192.169.0.120"
The first parameter is the context id of the client connection (you use it when you send and receive data to that client), the second one is the IP address of the client.
By the way, there's a limit of 5 client connections total, whether they are incoming (someone connects to your server) or outgoing (you connect to another server).
Now you work with this connection the same way, i.e. you send using +CIPSENDI, you get +CIPDR when the data is ready, and retrieve the data using +CIPRD. Supply context id given to you by +CIPACCEPT.
Don't forget to recycle the connection when it is no longer used (i.e. after +CIPDISCONNECT or +CIPRECONNECT) using +CIPCLOSE
There are a few bugs to fix (the buffer size is currently hard-coded for the incoming connections, and some issues with disconnect handling), but all the big stuff is in place.
martinayotte wrote:Hi igrr !
I've played a bit with the server implementation. Seems to work well and easy to play with ! Thanks for all your efforts !!!
martinayotte wrote:I found two small glitches that you are maybe already aware :
1 - connections are doing timeout after few seconds (this is probably the same timeout settings than the original AT example, but in your atproto, I didn't found a command to change the timeout value)
martinayotte wrote:2 - if I shutdown the server using AT+CIPCLOSE=6, but then I try to connect a new client, connection will be accomplish instead of been refused and after first crlf from this client a wdt-reset will occur.
It takes about 20-25 seconds for home assistant c[…]
I tried to upgrade tof my sonoff basic R2 with the[…]
a problem Perhaps you want to define "Probl[…]
Rebooting your router will not give you a faster I[…]
There are no other notifications from esptool.py i[…]
Using the Arduino IDE, you'll learn how to set up […]
In this project, you will post to Twitter using an[…]
In this project, we will build a water level contr[…]
I guess I'm late, but I had the same problem and f[…]
Last night I received my first D1 Minis for a lear[…]
Although I am aware that this is an old post, I fe[…]