Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
ESP8266 module on the Brain shield - running what firmware?
04-16-2019, 04:16 AM (This post was last modified: 04-16-2019 04:31 AM by Vaygr.)
Post: #1
ESP8266 module on the Brain shield - running what firmware?
I have been learning about ESP8266 and how it can communicate via UART with Arduino which sends AT commands, but relating to the B-ROBOT, i want to ask:

1. What is the original firmware pre-loaded on the ESP8266 module when the Brain shield is delivered, that is, before any of the provided B-ROBOT code is uploaded to it? Is it AT firmware? Arduino firmware? NodeMCU firmware?

2. When uploading the B-ROBOT sketch to the Leonardo with the Brain shield, is there any Arduino code uploaded to the ESP8266 module (other than to the Leonardo)?

I had a look at the BROBOT Arduino code to figure out how it works with the ESP module, but it's a bit confusing as it mentions UDP packets, which is used to communicate via the OSC protocol to the Android controller app, so i'm wondering if this code which has been uploaded to the ESP??
Find all posts by this user
Quote this message in a reply
04-18-2019, 04:57 AM (This post was last modified: 04-18-2019 05:07 AM by twinclouds.)
Post: #2
RE: ESP8266 module on the Brain shield - running what firmware?
(04-16-2019 04:16 AM)Vaygr Wrote:  I have been learning about ESP8266 and how it can communicate via UART with Arduino which sends AT commands, but relating to the B-ROBOT, i want to ask:

1. What is the original firmware pre-loaded on the ESP8266 module when the Brain shield is delivered, that is, before any of the provided B-ROBOT code is uploaded to it? Is it AT firmware? Arduino firmware? NodeMCU firmware?

2. When uploading the B-ROBOT sketch to the Leonardo with the Brain shield, is there any Arduino code uploaded to the ESP8266 module (other than to the Leonardo)?

I had a look at the BROBOT Arduino code to figure out how it works with the ESP module, but it's a bit confusing as it mentions UDP packets, which is used to communicate via the OSC protocol to the Android controller app, so i'm wondering if this code which has been uploaded to the ESP??
I am no expert on ESP8266. Below are some of my understandings from making a clone of B-Robert using pro-micro and other parts.
I believe the AT firmware is already in ESP8266. What Arduino/Leonardo does is simply sending setup instructions and commands through the Rx/Tx interfaces to ESP8266 when initializing and running. I don't believe the sketch uploaded to Leonardo has anything to do with ESP8266. When I uploaded the sketch, ESP8266/ESP12F was even not connected.
I received my ESP01 today. I just pulled out the ESP12F from its socket on the pro micro board and connected the vcc/ground/rx/tx/reset/CH_PD wires to the corresponding pins on ESP01. After turning on power, it works without any problem. I even didn't reupload the sketch.
Find all posts by this user
Quote this message in a reply
04-18-2019, 07:05 PM
Post: #3
RE: ESP8266 module on the Brain shield - running what firmware?
(04-16-2019 04:16 AM)Vaygr Wrote:  I have been learning about ESP8266 and how it can communicate via UART with Arduino which sends AT commands, but relating to the B-ROBOT, i want to ask:

1. What is the original firmware pre-loaded on the ESP8266 module when the Brain shield is delivered, that is, before any of the provided B-ROBOT code is uploaded to it? Is it AT firmware? Arduino firmware? NodeMCU firmware?

2. When uploading the B-ROBOT sketch to the Leonardo with the Brain shield, is there any Arduino code uploaded to the ESP8266 module (other than to the Leonardo)?

I had a look at the BROBOT Arduino code to figure out how it works with the ESP module, but it's a bit confusing as it mentions UDP packets, which is used to communicate via the OSC protocol to the Android controller app, so i'm wondering if this code which has been uploaded to the ESP??
The ESP modules comes with the original (and untouched) firmware. The B-robot codes, just configure the WIFI module with certain parameters as SSID name and PASSWORD
Visit this user's website Find all posts by this user
Quote this message in a reply
04-27-2019, 04:46 PM (This post was last modified: 04-27-2019 04:51 PM by Vaygr.)
Post: #4
RE: ESP8266 module on the Brain shield - running what firmware?
I confirmed the ESP firmware by enabling DEBUG mode in the Arduino sketch and then connecting BROBOT via USB cable and looking at the output from the Arduino Serial Monitor. I edited these two lines: #define DEBUG 1 and #define TELEMETRY_DEBUG 1.
Code:
JJROBOTS
Don't move for 10 sec...
WHO_AM_I : 68, error = 0
WIFI init
r⸮ b⸮⸮no⸮

OK

AT+RST


OK


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

load 0x401
Ai-Thinker Technology Co. Ltd.

ready

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+CIPSTAMAC?

+CIPSTAMAC:"5c:cf:7f:76:37:62"

OK

AT+CWQAP

QAP fail

ERROR
!Timeout!
AT+CWMODE=2


OK

AT+CWSAP="JJROBOTS_62","87654321",5,3


OK
Start UDP server

AT+CIPMUX=0


OK

AT+CIPMODE=1


OK

AT+CIPSTART="UDP","192.168.4.2",2223,2222,0

CONNECT

OK
Gyro calibration... DONT MOVE!
offset: -153  stddev: 1.61

AT+CIPSEND


OK

>
Servo init
Stepers init
BATT:0
BROBOT by JJROBOTS v2.82
Start...
0.00 0.00 87.35,0.00
0.01 0.00 87.35,0.00
0.01 0.00 87.35,0.00
0.01 0.00 87.35,0.00
0.01 0.00 87.35,0.00
But maybe newer versions of the Brain shield will have different versions of the ESP firmware. It shouldn't make any difference though since everything is being controlled from the Arduino sketch by sending only AT commands to the ESP module.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)