Skip to content

Instantly share code, notes, and snippets.

@fape
Last active January 19, 2022 12:17
Show Gist options
  • Save fape/d3252b42fa9553ccdf600759eb9aa23d to your computer and use it in GitHub Desktop.
Save fape/d3252b42fa9553ccdf600759eb9aa23d to your computer and use it in GitHub Desktop.
ESP8266 ESP-07 ESP07 Wifi Serial Transceiver Wireless Board Module 3.3V 5V 8N1 TTL UART Port Controller For Arduino UNO R3 One
AT+GMR

AT version:1.2.0.0(Jul  1 2016 20:04:45)
SDK version:1.5.4.1(39cb9a32)
Ai-Thinker Technology Co. Ltd.
Dec  2 2016 14:21:16
OK
AT+CIPMUX=0
AT+CIPMODE=1
AT+CIPSTART="UDP","192.168.4.1",9000,9000,0
AT+CIPSEND
ets Jan  8 2013,rst cause:2, boot mode:(3,6)

load 0x40100000, len 29960, room 16 
tail 8
chksum 0x1c
load 0x3ffe8000, len 2140, room 0 
tail 12
chksum 0xf8
ho 0 tail 12 room 4
load 0x3ffe8860, len 9340, room 12 
tail 0
chksum 0xce
csum 0xce
OS SDK ver: 1.5.0-dev(950076a) compiled @ Nov  4 2016 19:29:32
phy ver: 1055, pp ver: 10.7

rf cal sector: 251
tcpip_task_hdl : 3fff3ee0, prio:10,stack:512
idle_task_hdl : 3fff3f80,prio:0, stack:384
tim_task_hdl : 3fff6538, prio:2,stack:512

esp-07 start


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

load 0x40100000, len 1856, room 16 
tail 0
chksum 0x63
load 0x3ffe8000, len 776, room 8 
tail 0
chksum 0x02
load 0x3ffe8310, len 552, room 8 
tail 0
chksum 0x79
csum 0x79

2nd boot version : 1.5
  SPI Speed      : 40MHz
  SPI Mode       : DIO
  SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000

rf cal sector: 249
rf[112] : 00
rf[113] : 00
rf[114] : 01

SDK ver: 1.5.4.1(39cb9a32) compiled @ Jul  1 2016 20:04:35
phy ver: 972, pp ver: 10.1

UPDATE UTÁN

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

load 0x40100000, len 2592, room 16 
tail 0
chksum 0xf3
load 0x3ffe8000, len 764, room 8 
tail 4
chksum 0x92
load 0x3ffe82fc, len 676, room 4 
tail 0
chksum 0x22
csum 0x22

2nd boot version : 1.7(5d6f877)
SPI Speed : 40MHz
SPI Mode : DIO
SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000

rf cal sector: 251
freq trace enable 1
rf[112] : 03
rf[113] : 00
rf[114] : 01

SDK ver: 2.2.1(6ab97e9) compiled @ Jun  7 2018 13:59:14
phy ver: 1136_0, pp ver: 10.2
AT+GMR
AT version:1.6.2.0(Apr 13 2018 11:10:59)
SDK version:2.2.1(6ab97e9)
compile time:Jun  7 2018 19:34:26
Bin version(Wroom 02):1.6.2
OK

programing

#include <ESP8266WiFi.h>
#include <WiFiUDP.h>

const char* ssid = "test2";
const char* pw = "12345678";
char packet[255] ={};
WiFiUDP Server;


void setup() {
  Serial.begin(115200);
  //setup AP
  WiFi.mode(WIFI_AP);
  WiFi.softAP(ssid,pw,11);
  WiFi.begin();
  Serial.println("AP started at: ");
  Serial.print(WiFi.softAPIP());
  Server.begin(9000);
  Serial.println("Server started...");
  
}

void loop() {
  
    int packetSize = Server.parsePacket();
    IPAddress remoteIP;
    int remotePort = 0;
        
    if(packetSize)
    {
      remoteIP = Server.remoteIP();
      remotePort = Server.remotePort();
      Serial.printf("Received %d bytes from %s, port %d\n", packetSize, remoteIP.toString().c_str(), remotePort);
      int len = Server.read(packet, 255);
      if (len > 0)
      {
        packet[len] = 0;
      }
      Serial.printf("UDP incoming packet contents: %s\n", packet);
    }

    if(Serial.available() && remotePort > 0){
      int i = 0;
      while(Serial.available()){
        packet[i]=Serial.read();
        i++;
      }
      packet[i]=0;
      Serial.printf("Send %d bytes from %s, port %d\n", i, remoteIP.toString().c_str(), remotePort);
      Serial.printf("UDP outgoing packet contents: %s\n", packet);
      Server.beginPacket(Server.remoteIP(), Server.remotePort());
      Server.write(packet);
      Server.endPacket();
    }
 delay(100);       
  
  if(WiFi.status()==!WL_CONNECTED)
  {
    Serial.print(".");
    delay(100);
  }
}
@NvBgm
Copy link

NvBgm commented Jan 19, 2022

Hi
Thank you for all the info
Following your instructions i get this error

image

Setting up as follows

image

Can you gif some info about it ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment