In this tutorial I will show how to set up a basic serial port with the Esp8266 and the pc. This tutorial is based on the examples of Esp Open Rtos framework that you can find here
Installation process
First of all you have to install Esp Open Sdk and Esp Open Rtos. After that you have to compile and flash the program inside the Esp. You can find explanation how to do it here
Compiling and flashing
After installing everything just go inside esp-open-rtos/examples/simple and type:
after booting Esp in flash mode.
Code analysis
As you can see in this code it just create two tasks. The first one counts and send a message to the other one to be printed. Another thing to take in account is how to setup the serial port. Here you have to define the speed port (115200).
Testing the program
In order to test the program you have to install a serial port in your pc. In this case, for Linux I am going to use GTKTerm.
Install GTKTerm.
Based on the example program port parameters are:
Port: /dev/ttyUSB0
Baud Rate: 115200
Parity: None
Bits: 8
StopBits: 1
Flow control: None
I am a Spanish telecommunication engineer.I like social robotics, computers and almost everything with wires. Right now, I am working as a Software Engineer. Furthermore I am always happy to be involved in challenging projects.