jeelabs / el-client

Arduino client for esp-link's REST, MQTT, and command interface
BSD 2-Clause "Simplified" License
85 stars 47 forks source link

EL-Client sync failed! #42

Closed dontsovcmc closed 6 years ago

dontsovcmc commented 6 years ago

I got "EL-Client sync failed!" with Arduino Pro mini 3.3v. SLIP enabled Serial baudrate in Arduino is the same as in /console.html MQTT broker got status "esp-link" messages, but not from SLIP

esp-link: v3.0.14-g963ffbb

SoftwareSerial mySerial(4, 3); // RX, TX
ELClient esp(&mySerial, &Serial);

I have checked serial line: compile SoftwareSerial example to Arduino and send-receive data with Telnet and see them on Serial port of Arduino.

What I see in esp-link Serial:

�␂␀␀␀␖␃␀␀0l�930252> cmdAddCb: 'wifiCb'->0x316 added at 0
930263> cmdWifiCb: wifiStatus=2
930272> cmdGetCbByName: cb wifiCb found at index 0
930286> cmdResponse: cmd=3 val=790 argc=1
�␃␀␁␀␖␃␀␀␁␀␅␀m'�930493> HTTP GET /console/text: 200, 3568ms, h=15072
932210> SLIP: start or end len=0 inpkt=1
932210> SLIP: start or end len=0 inpkt=1
932211> SLIP: start or end len=10 inpkt=1
932217> cmdParsePacket: cmd=1 argc=0 value=790
932230> cmdExec: Dispatching cmd=SYNC
�932240> cmdResponse: cmd=2 val=790 argc=0
�␂␀␀␀␖␃␀␀0l�932254> cmdAddCb: 'wifiCb'->0x316 added
...etc..

I see SYNC answer from ESP to Micro by TTL-USB

C0 C0 02 00 00 00 44 03 00 00 50 80 C0 C0 03 00 01 00 44 03 00 00 01 00 05 00 8B 12 C0

I think, connection could be wrong. What Pin assignment I should use?

dontsovcmc commented 6 years ago

I found this pretty info in mqtt example:

Important For this sketch to work you must turn off the UART debug log in esp-link (on the Debug Log page). The reason is that otherwise esp-link prints too much to its uart and then misses incoming characters.

I continue trying..

dontsovcmc commented 6 years ago

My board isn't 3v3 :(. I thinks, it is a reason.