ysg
March 16, 2016, 7:55am
1
Hi,
I have a cactus micro rev2
When i run this sketch
String tmp;
#define BAUD_RATE 9600
void setup() {
Serial.begin(BAUD_RATE);
Serial1.begin(BAUD_RATE);
while (!Serial) {
; // wait for serial port to connect. Needed for Leonardo only
}
Serial.println("Hello Cactus Micro!");
// Enable esp8266
pinMode(13, OUTPUT);
digitalWrite(13, HIGH);
};
void loop() {
while (Serial1.available() > 0) {
tmp += char(Serial1.read());
delay(2);
}
if(tmp.length() > 0) {
Serial.println(tmp);
tmp = "";
}
if (Serial.available()) {
Serial1.write(Serial.read());
}
}
this is what i get (and there is no reply to AT commands)
Hello Cactus Micro!
ÕÁeäF<úaHBCa;*aaÛDe@
I have tried with different ai thinker firmwares but all the same
but I have tried a simple connection sketch using espduino firmware and it seems to work
Regards,
Please download the AT firmware first.
It’s ai thinker 0.9.5.2 and baud rate 9600.
ysg
March 16, 2016, 8:28am
3
Hi, thx for the reply
i have flashed ai-thinker 0.9.5.2-9600.bin file from the wiki or your link
this is the result
Hello Cactus Micro!
Ýpa£¿xêäáì2|hpÁ
³u
No replies to any AT command avaliable
my arduino ide is 1.0.6 btw
using lilypad arduino usb as board and AVRISP mkII as programmer
could you please take a screenshot for Arduino IDE’s serial monitor?
ysg
March 16, 2016, 9:09am
5
that garbage message changes everytime i reset the device
What reponse will be there if you send string AT+GMR
?
ysg
March 16, 2016, 9:47am
7
nothing
can i be flashing firmwares with the wrong settings?
i am using ESP8266Flasher.exe what should these settings be for mentioned firmwares?
baudrate
flashsize
flashspeed
SPI mode
ysg
March 16, 2016, 9:49am
9
are they same for all firmwares?
btw i dont have default setting i have to select a baudrate or flash speed
[quote]i am using ESP8266Flasher.exe what should these settings be for mentioned firmwares?
[/quote]
you can also take a screenshot for the settings in ESP8266Flasher.exe
ysg
March 16, 2016, 11:24am
12
well i have changed flash size 1mbyte to 512kbyte with firmware 9.5.2–9600 and now i got this
Hello Cactus Micro!
@Ýpa£XáDaoÊdxxhæâ
Ai-Thinker Technology Co. Ltd.
ready
AT+GMR
AT version:0.21.0.0
SDK version:0.9.5
OK
AT+CWLAP
ERROR
i am getting returns for AT commands but can not join ap, always returns ERROR
btw is not it strange how flash size effects firmware?
ysg
March 16, 2016, 12:10pm
13
ok i have followed this and was able to connect
AT+CWMODE=1
OK
AT+RST
OK
`v¹àÀÚBçü1A'[*´Ð
H±´û
õ
Ai-Thinker Technology Co. Ltd.
ready
AT+CIPMUX=0
OK
AT+CIFSR
+CIFSR:STAIP,"0.0.0.0"
+CIFSR:STAMAC,"18:fe:34:f2:94:38"
OK
AT+CWJAP="ssid","1234567890"
OK
but still confused about flashing settings
the flash size is 512k if you bought Cactus Micro in old batch.
ysg
March 17, 2016, 6:24am
15
so does that mean i cant flash bigger firmwares than 512kb?
btw now i am having another problem with some sketches com port starts to disappear but i know this topic is solved
should i create another thread?
yes. Please start a new topic.
Thank you.