1

Topic: Stuck on AT+RST

Here is my Code :

/*
   -- New project --
   
   This source code of graphical user interface
   has been generated automatically by RemoteXY editor.
   To compile this code using RemoteXY library 3.1.6 or later version
   download by link http://remotexy.com/en/library/
   To connect using RemoteXY mobile app by link http://remotexy.com/en/download/                   
     - for ANDROID 4.8.01 or later version;
     - for iOS 1.5.1 or later version;
   
   This source code is free software; you can redistribute it and/or
   modify it under the terms of the GNU Lesser General Public
   License as published by the Free Software Foundation; either
   version 2.1 of the License, or (at your option) any later version.   
*/

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

// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__ESP8266_HARDSERIAL_CLOUD

#include <RemoteXY.h>

// RemoteXY connection settings
#define REMOTEXY_SERIAL Serial
#define REMOTEXY_SERIAL_SPEED 9600
#define REMOTEXY_WIFI_SSID "MNC JBT2"
#define REMOTEXY_WIFI_PASSWORD "passwordbaru"
#define REMOTEXY_CLOUD_SERVER "cloud.remotexy.com"
#define REMOTEXY_CLOUD_PORT 6376
#define REMOTEXY_CLOUD_TOKEN "0fe00f376c155cb3dca57369f223a42b"


// RemoteXY configurate 
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
  { 255,1,0,0,0,20,0,13,13,1,
  2,0,21,43,22,11,2,26,31,31,
  79,78,0,79,70,70,0 };
 
// this structure defines all the variables and events of your control interface
struct {

    // input variables
  uint8_t led_switch; // =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          //
/////////////////////////////////////////////



void setup()
{
  RemoteXY_Init ();
 
 
  // TODO you setup code
 
}

void loop()
{
  RemoteXY_Handler ();
 
 
  // TODO you loop code
  // use the RemoteXY structure for data transfer
  // do not call delay()


}

i tested the esp without any code using baud 9600 on serial monteri using any AT command and it works...
but when i upload the code from remotexy, it stucked on AT+RST

from the tutorial on remotexy website it shows that serial monitor should be like this
================================

AT
AT+RST
ATE0
AT+CWMODE=1
AT+CWQAP
AT+CWDHCP=1,1
AT+CWJAP="MySSID","MyPassword"
AT+CIPMODE=0
AT+CIPMUX=1
AT+CIPSTART=0,"TCP","cloud.remotexy.com",6376
AT+CIPSEND=0,44
UxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxAT+CIPSEND=0,6
Uxxxxxx
====================================

2

Re: Stuck on AT+RST

The RemoteXY kernel expects a "ready" response after sending an AT + RST.
Maybe ESP goes to a different speed after reset.

3

Re: Stuck on AT+RST

Thanks for replying... i just realized that the response from the esp after AT+RST is invalid... but it can be connected to wifi.
Here is the response after i try to AT+RST manually

09:26:08.881 -> Ai-Thinker Technology Co.,Ltd.
09:26:08.881 ->
09:26:08.881 -> invalid
09:26:11.911 -> WIFI CONNECTED
09:26:16.611 -> WIFI GOT IP

4

Re: Stuck on AT+RST

The response to the reset command must end with the word "ready". RemoteXY is waiting for this word. Why do you have the word "invalid"?

5

Re: Stuck on AT+RST

i dont know, i tried to flash my esp but now its not giving any response