Post topics, source code that relate to the Arduino Platform

User avatar
By Anand Lobo
#29406 So, after a bunch of futzing around, I have successfully uploaded code to the ESP8266 wirelessly.
Terminal output:
Code: Select all# python espota.py 192.168.13.4 8266 OTA_new.bin
Starting on 0.0.0.0:48266
Upload size: 334064
Sending invitation to: 192.168.13.4
Waiting for device...

Uploading.....................................................................................................................................................................................................................................
Waiting for result...

Result: OK

Serial output from ESP-12 board:
Code: Select allArduino OTA Test
Sketch size: 304864
Free size: 741376
IP address: 192.168.13.4
Update Start: ip:192.168.13.2, port:48266, size:304880
Update Success: 14050
Rebooting...
rm 0
pm close 7 0 0/16175107
del if0
usl
sul 0 0

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

load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
@cp:0
ld

Arduino OTA Test (if you are seeing this upload was a success)
Sketch size: 304864
Free size: 741376
IP address: 192.168.13.4

Now, my question. (Apologies for the pictures, Linux refused to capture the screenshots as I wanted them so I had to use my phone.)
When I open my regular Serial monitor in the Arduino IDE, well, no issues.
IMG_20150919_101921-01.jpg

However, the IP address of the ESP8266 also shows up in the Serial port list.
IMG_20150919_102151-01.jpg

If I try to open this Serial port, I get this box, which I have no idea what to do with.
"Type board password to access its console."
I don't know the device password, or how to set it or remove it. What do I do here? Google has been utterly useless researching this.
2015-09-19-102230_482x198_scrot.png
You do not have the required permissions to view the files attached to this post.
User avatar
By zeroK
#29494 Well about the same story here :)

I got the OTA working. I can use telnet to connect and send data in both directions (simple serial <-> wifi bridge, nice!).

To improve the experience however it would be nice to be able to open the serial monitor from the IDE. I get the same password prompt. I tried some simple passwords: arduino, wifi, esp8266, , but no luck
User avatar
By Anand Lobo
#29750 No one has any idea, apparently. I haven't had any further luck Googling this and it seems no one else on the forums knows what to do about it judging by the lack of replies.
zeroK wrote:I can use telnet to connect and send data in both directions (simple serial <-> wifi bridge, nice!)

How are you using telnet to connect? I didn't know that was possible.
User avatar
By zeroK
#29812 When you create a telnetServer you can use the printDebug as shown below

Code: Select allconst uint16_t aport = 8266;
WiFiServer TelnetServer(aport);
WiFiClient Telnet;


void printDebug(const char* c){
//Prints to telnet if connected
  Serial.println(c);
 
  if (Telnet && Telnet.connected()){
    Telnet.println(c);
  }
}