1 (edited by Jpma 2018-05-10 19:05:41)

Topic: ESP8266-01 stand alone connection error

EDIT 10/05/2018
I've used another ESP-01 from a friend and this one works perfectly....
Hardware problem then .... what surprising though, when all the upload process worked normally




Hello the community... :-)

My configuration :
Simple ESP8266-01 stand alone as wifi interface to pilot 2 relays through RemoteXY app
5v power for the board, 3,3 v regulator for ESP, relais driven by transitors and free wheel diodes
Remote XY using the "Wemos D1 mini" as device (there is no "ESP8266" option as device but I've red on this forum that in this case, we have to use the WemosD1 mini as device)   and the "ESP on board" as communication module
Sketch compiled with Arduino IDE - all libraries present - no compilation error
Sketch with debug function present

The problem : after loading the ESP01 with the compiled program I receive the following error on the serial terminal +- every second (ESP-01 alone - not connected with the relays board). The ESP doesn't connect with the wifi.

I've made and run a complete and functionnal projects with an arduino nano and ESP01 ... with success ... I'm newbie but I think I have also some experience with RemoteXY.... Here I have here no idea what to do :-(

And you ... any idea ?
Tx for your advices.

Error message on the serial after loading the sketch on the ESP - don't understand the meaning of these values from the stack ....

ets Jan  8 2013,rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1384, room 16
tail 8
chksum 0x2d
csum 0x2d
v614f7c32
~ld


RemoteXY started...

Exception (3):
epc1=0x401002f0 epc2=0x00000000 epc3=0x00000000 excvaddr=0x40025ee2 depc=0x00000000

ctx: cont
sp: 3ffefa30 end: 3ffefdc0 offset: 01a0

>>>stack>>>
3ffefbd0:  feefeffe feefeffe feefeffe feefeffe 
3ffefbe0:  feefeffe feefeffe feefeffe 3ffefd00 
3ffefbf0:  0000049c 0000049c 0000007e 401004f4 
3ffefc00:  40004b31 00001000 0000007e 40106ec0 
3ffefc10:  40105aac feefeffe feefeffe 4022bbdd 
3ffefc20:  40106e4d 4022bcc7 3fff0b1c 0000049c 
3ffefc30:  0000007d 3ffefd00 3fff0b1c 4022bcaa 
3ffefc40:  ffffff01 55aa55aa 0000000f 00000020 
3ffefc50:  00000020 00000040 000000f6 aa55aa55 
3ffefc60:  0000007f 4022c194 3fff0b1c 3fff0b1c 
3ffefc70:  000000ff feefeffe feefeffe feefeffe 
3ffefc80:  40106e4d 00000001 3fff0b2c 4022c3ae 
3ffefc90:  00000008 3fff0b1c 000000ff 3ffefd00 
3ffefca0:  3ffefd20 3fff0b53 0000000f 00000020 
3ffefcb0:  3fff0bdc 3ffefd61 00000001 4022c45e 
3ffefcc0:  3ffefd00 40238140 402365c3 0000003f 
3ffefcd0:  3fff0f1c 3ffefd20 3fff6e54 4022c42d 
3ffefce0:  3fff0b1c 4022c494 3ffeeb30 00000000 
3ffefcf0:  40202ea4 feefeffe feefeffe feefeffe 
3ffefd00:  feefef00 feefeffe feefeffe feefeffe 
3ffefd10:  feefeffe feefeffe feefeffe 00000000 
3ffefd20:  40201900 00000001 3ffe8d01 40204460 
3ffefd30:  4010500c 00008c7e 3ffeeb80 00000000 
3ffefd40:  3ffee550 3ffeeb80 3ffeeda0 3ffeeb80 
3ffefd50:  402365c3 0000003f 40204048 3ffeeda0 
3ffefd60:  4020137a 00000064 00000064 4020136f 
3ffefd70:  0001c200 3fff0824 3ffeeb30 4020207b 
3ffefd80:  feefeffe 3ffeed60 3fff0824 402028a0 
3ffefd90:  feefeffe feefeffe feefeffe 3ffeed8c 
3ffefda0:  3fffdad0 00000000 3ffeed84 4020408c 
3ffefdb0:  feefeffe feefeffe 3ffeeda0 40100710 
<<<stack<<<




My sketch is the following :

//////////////////////////////////////////////
//        RemoteXY include library          //
//////////////////////////////////////////////

// RemoteXY select connection mode and include library 

#define REMOTEXY_MODE__ESP8266WIFI_LIB_CLOUD

#include <ESP8266WiFi.h>

// activate debug output on Serial 115200; ESP on SW Serial
#define REMOTEXY__DEBUGLOGS Serial

#include <RemoteXY.h>

// RemoteXY connection settings 
// confidential informations removed

#define REMOTEXY_WIFI_SSID "wifi SSID"
#define REMOTEXY_WIFI_PASSWORD "wifi password"
#define REMOTEXY_CLOUD_PORT 6376
#define REMOTEXY_CLOUD_TOKEN "my toke,"
#define REMOTEXY_ACCESS_PASSWORD "my password"

// RemoteXY configurate   
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
   { 255,2,0,0,0,63,0,8,25,1,
   2,0,20,23,22,11,2,26,31,31,
   79,78,0,79,70,70,0,2,0,19,
   53,22,11,2,26,31,31,79,78,0,
   79,70,70,0,129,0,22,15,18,6,
   17,71,80,73,79,48,0,129,0,21,
   46,19,6,17,71,80,73,79,50,0 }; 
 
// this structure defines all the variables of your control interface 
struct {

     // input variable
   uint8_t switch_1; // =1 if switch ON and =0 if OFF
   uint8_t switch_2; // =1 if switch ON and =0 if OFF

     // other variable
   uint8_t connect_flag;  // =1 if wire connected, else =0

}
RemoteXY;
#pragma pack(pop)

/////////////////////////////////////////////
//           END RemoteXY include          //
/////////////////////////////////////////////

#define PIN_SWITCH_1 0
#define PIN_SWITCH_2 2



void setup() 
{
   RemoteXY_Init (); 

   Serial.begin(115200);
 
   pinMode (PIN_SWITCH_1, OUTPUT);
   pinMode (PIN_SWITCH_2, OUTPUT);
   
   // TODO you setup code
   Serial.println("Setup ok ");

}

void loop() 

   RemoteXY_Handler ();
   Serial.println("Loop OK ");

   digitalWrite(PIN_SWITCH_1, (RemoteXY.switch_1==0)?LOW:HIGH);
   digitalWrite(PIN_SWITCH_2, (RemoteXY.switch_2==0)?LOW:HIGH);
   
   // TODO you loop code
   // use the RemoteXY structure for data transfer

}