esp8266 and minicom
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.
- DougieLawson
- Posts: 42160
- Joined: Sun Jun 16, 2013 11:19 pm
- Location: A small cave in deepest darkest Basingstoke, UK
Re: esp8266 and minicom
Try setting the baud rate to 115200,N,8,1 rather than 9600,N,8,1.
Languages using left-hand whitespace for syntax are ridiculous
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.
The use of crystal balls and mind reading is prohibited.
Re: esp8266 and minicom
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" ?
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" ?
Re: esp8266 and minicom
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.
-
- Posts: 4
- Joined: Fri Nov 21, 2014 8:32 am
- Location: Cluj-Napoca, Romani
Re: esp8266 and minicom
Have you disabled the serial port login on pi?
esp8266 and minicom
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.
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.
Re: esp8266 and minicom
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.san_ripe wrote:is it possible that the RPi UART is not working? How can I check it?
Electronic and Computer Engineer
Pi Interests: Home Automation, IOT, Python and Tkinter
Pi Interests: Home Automation, IOT, Python and Tkinter
Re: esp8266 and minicom
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?
Any idea?
Re: esp8266 and minicom
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?
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
Pi Interests: Home Automation, IOT, Python and Tkinter