1

Topic: ESP8266 no work

I get the following error message in WiFi access point mode:



   ERROR
Device Not Reply



I can see the blue LED on my ESP8266 board flash when I attempt to connect my iPhone.

For some reason my ESP8266 is set to 115200 baud.  So that's the only change I made to the code.
I re-flashed my ESP8266 to get the most recent code build as well.

Whats wrong?

And do you have any working examples of the ESP8266?

Thanks,
Charlie

2

Re: ESP8266 no work

...and here's my code...very simple...

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

// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__ESP8266_SOFTSERIAL_POINT
#include <SoftwareSerial.h>

#include <RemoteXY.h>

// RemoteXY connection settings
#define REMOTEXY_SERIAL_RX 2
#define REMOTEXY_SERIAL_TX 3
#define REMOTEXY_SERIAL_SPEED 115200
#define REMOTEXY_WIFI_SSID "dick4"
#define REMOTEXY_WIFI_PASSWORD ""
#define REMOTEXY_SERVER_PORT 6377


// RemoteXY configurate 
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
  { 255,1,0,0,0,35,0,8,13,1,
  1,0,24,41,12,12,2,31,49,0,
  129,0,12,16,18,6,17,80,105,110,
  32,49,51,32,67,111,110,116,114,111,
  108,0 };
 
// this structure defines all the variables of your control interface
struct {

    // input variable
  uint8_t button_1; // =1 if button pressed, else =0

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

} RemoteXY;
#pragma pack(pop)

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

#define PIN_BUTTON_1 13


void setup()
{
  RemoteXY_Init ();
 
  pinMode (PIN_BUTTON_1, OUTPUT);
 
  // TODO you setup code
 
}

void loop()
{
  RemoteXY_Handler ();
 
  digitalWrite(PIN_BUTTON_1, (RemoteXY.button_1==0)?LOW:HIGH);
 
  // TODO you loop code
  // use the RemoteXY structure for data transfer


}

3

Re: ESP8266 no work

I suggest that the board where it is connected can not handle the 115k2 speed at sotware serial RX2 / TX3

You have to connect it to RX / TX  0 and1 port , or change speed lower (9600) , but in that case you have to flash the ESP8266
See on topics how to set  the ESP8266 to lower speed, and ofcourse yopu have to change your IDE code to the right pins and speed.

4

Re: ESP8266 no work

// PS: this will shoud when ESP8266 is set to 9600

#define REMOTEXY_MODE__ESP8266_SOFTSERIAL_POINT
#include <SoftwareSerial.h>

#include <RemoteXY.h>

// RemoteXY connection settings
#define REMOTEXY_SERIAL_RX 2
#define REMOTEXY_SERIAL_TX 3
#define REMOTEXY_SERIAL_SPEED 9600
#define REMOTEXY_WIFI_SSID "dick4"
#define REMOTEXY_WIFI_PASSWORD ""
#define REMOTEXY_SERVER_PORT 6377


// PS:this should work when connect to pin 0-1

#define REMOTEXY_MODE__ESP8266_HARDSERIAL_POINT
#include <RemoteXY.h>

// RemoteXY connection settings
#define REMOTEXY_SERIAL Serial
#define REMOTEXY_SERIAL_SPEED 115200
#define REMOTEXY_WIFI_SSID "dick4"
#define REMOTEXY_WIFI_PASSWORD ""
#define REMOTEXY_SERVER_PORT 6377

5

Re: ESP8266 no work

Ok I will try one of your suggestions.  I can see the decoded messages at 115200 baud on my Rigol oscilloscope in ASCII serial decode mode so at least part of the data is correct at 115200 baud using software serial. It could be however that something is being dropped from the message sequence.

6

Re: ESP8266 no work

OK works as access point in "hard serial" configuration.  So "soft serial" didn't work at 115200 baud even though I saw some traffic on the serial line something was being missed using soft serial at 115200 baud.  I suspect characters were dropped.

Now I'm trying to get ethernet access version to work with "hard serial"...no joy so far.