jon wise
Posts: 49
Joined: Thu May 31, 2012 8:21 pm

esp8266 and minicom

Sun Jan 04, 2015 10:07 am

I have just connected my first ESP8266 WIFI module to the serial port of pi. Using minicom at 9600 baud I can see the reset message and the echo from typing AT commands but get no OK or any error messages. Using a few lines of Python to send AT messages I get the expected OK replies including the list of available WIFI signals. Any ideas on the settings required for minicom? My guess is that it is something to do with CR LF.

User avatar
DougieLawson
Posts: 39539
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: esp8266 and minicom

Sun Jan 04, 2015 11:47 am

Try setting the baud rate to 115200,N,8,1 rather than 9600,N,8,1.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All fake doctors are on my foes list.

jon wise
Posts: 49
Joined: Thu May 31, 2012 8:21 pm

Re: esp8266 and minicom

Sun Jan 04, 2015 4:18 pm

I tried 115200 at the first attempt but got the normal gibberish of a wrong baud rate. 9600 works fine with python and receiving with minicom, but I cannot send AT commands from minicom.

As a next step I am trying to connect to my BT HomeHub WIFI (using python) but get FAIL reply. Do I need to do more than AT+CWJAP="BTHomeHub2-xxxxx","1234asdfg" ?

jon wise
Posts: 49
Joined: Thu May 31, 2012 8:21 pm

Re: esp8266 and minicom

Tue Jan 06, 2015 2:14 pm

Cntrl-J after 'Enter' in minicom sends the cr/lf required by esp8266 to complete each command. The 'Add Linefeed' feature of minicom just adds LF to the response, not the request.

dubau_razvan
Posts: 4
Joined: Fri Nov 21, 2014 8:32 am
Location: Cluj-Napoca, Romani
Contact: Website

Re: esp8266 and minicom

Thu Feb 05, 2015 8:21 am

Have you disabled the serial port login on pi?

san_ripe
Posts: 3
Joined: Sat Oct 24, 2015 10:23 pm

esp8266 and minicom

Sat Oct 24, 2015 10:29 pm

Hello,
this is my first post.
I have problems to communicate the RPi to ESP8266.
When I type "minicom -b 115200 -o -D /dev/ttyAMA0", the minicom start but i can´t write nothing.
is it possible that the RPi UART is not working? How can I check it?
Thank and sorry about my english.

scotty101
Posts: 4004
Joined: Fri Jun 08, 2012 6:03 pm

Re: esp8266 and minicom

Mon Oct 26, 2015 1:25 pm

san_ripe wrote:is it possible that the RPi UART is not working? How can I check it?
Connect the TX and RX pins together (whilst connected to nothing else). Use minicom and when you send something you should receive the same thing back.
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

san_ripe
Posts: 3
Joined: Sat Oct 24, 2015 10:23 pm

Re: esp8266 and minicom

Tue Oct 27, 2015 3:13 am

Scotyy_101, thank you very much. Your test worked well, the UART of RPi is working, so I have another problems. Maybe I connected wrong the ESP8266 .
Any idea?

scotty101
Posts: 4004
Joined: Fri Jun 08, 2012 6:03 pm

Re: esp8266 and minicom

Tue Oct 27, 2015 12:13 pm

Common mistake is connecting TX and RX the wrong way round.

Try swapping them over.

Also have you correctly set the Chip Enable pin of the ESP8266?
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter

Return to “Automation, sensing and robotics”