Arduino Due + ESP8266 for stupids (connect to TCP server)
Posted: Wed Apr 22, 2015 6:46 am
Hello
I'm trying to understand how to hook the ESP8266 to an arduino and get it to send some text to a telnet server.
Just for test.
I have to send my username "skaarj", wait for response, then send "stupid", get the prompt, wait for 30 seconds then send "exit".
Telnet server is unencrypted so this is the simplest possible example.
Arduino due is necessary because of its higher processing power, because this system will be further developed in some lab applications.
This is how I did the electric connections:
pin VTD goes to pin 19 (Arduino Due Serial1 Rx);
pin CH_PD + RST + VCC goes to +3.3V;
pin GND goes to GND;
pin Vrxd goes to pin 18 (Arduino Due Serial1 Tx).
I downloaded the Arduino-1.6.1-p1.zip for windows which is presented here in this site and it is described that has "great examples".
Well, there are great examples indeed but I can't find any sketch example for ESP8266. So far the evaluation gets -1 points.
Allright, check https://nurdspace.nl/ESP8266 for AT commands.
Compiling, uploading, I wish to see if the ESP activates as an access point.
And surprise: nothing happens.
I am still consulting the documentation and I am searching this site and also Google for any clues.
Please advise. Thank you.
I'm trying to understand how to hook the ESP8266 to an arduino and get it to send some text to a telnet server.
Just for test.
I have to send my username "skaarj", wait for response, then send "stupid", get the prompt, wait for 30 seconds then send "exit".
Telnet server is unencrypted so this is the simplest possible example.
Arduino due is necessary because of its higher processing power, because this system will be further developed in some lab applications.
This is how I did the electric connections:
pin VTD goes to pin 19 (Arduino Due Serial1 Rx);
pin CH_PD + RST + VCC goes to +3.3V;
pin GND goes to GND;
pin Vrxd goes to pin 18 (Arduino Due Serial1 Tx).
I downloaded the Arduino-1.6.1-p1.zip for windows which is presented here in this site and it is described that has "great examples".
Well, there are great examples indeed but I can't find any sketch example for ESP8266. So far the evaluation gets -1 points.
Allright, check https://nurdspace.nl/ESP8266 for AT commands.
Code: Select all
void setup()
{
SerialUSB.begin(9600); // dump data to USB serial, Arduino due has an issue when connect serial monitor on Serial0 which resets the program.
Serial1.begin(9600); // Start hardware serial 1 port, pin 19 and pin 18 for data
Serial1.print("AT+RST\r\n"); // reset module
Serial1.print("AT+CWMODE=1\r\n"); // Configuration as Access Point
Serial1.print("AT+CWSAP=\"MyAP\",\"MyPass\",2,0\r\n");// SSID , password, channel 2, no encryption
Serial1.print("AT+CIPMIX=1\r\n"); // Accept multiple connections
}
void loop() {
}
Compiling, uploading, I wish to see if the ESP activates as an access point.
And surprise: nothing happens.
I am still consulting the documentation and I am searching this site and also Google for any clues.
Please advise. Thank you.