Guys
Whilst up at Maker Fair UK this year I picked up a couple of inexpensive
serial to USB converters. Mainly to use one on the NoT Lamp Project I am
working on.
For quite a while now (Ever since maker fair in fact) I have been trying
tot get them to program the ESP8266-07 modules I am using without
success. Having used hacked cheap nokia data cables already (PL2502 etc)
I did not think they would be problematic.
I have tried all sorts of things and can not get them to work, they use
the HL-340 chip-set.
They are seen under Linux fine and work just fine at conventional baud
rates but odd speeds like 38400, 74880 and 76800 are a no-no. I did find
a data sheet for these devices and the baud rates listed here are no on
there, but all the usual culprits are.
It looks like the ESP's default connect speed is 74880 or thereabouts
but once connected the programmer turns the baud rate up to what is set
in the arduino IDE. Confusingly, being as this is a usual baud-rate it
all works fine if you could get it there. Unfortunately as the HL-340
wont do 74800 it is useless for programming the ESP8266.
I checked this out using a FTDI cable and the programming worked every
time, switching back to the HL-340 module it never worked. Interestingly
enough I had turned on the error stuff in the arduino status window and
there were errors coming up in there saying there was an error selecting
78400 baud. Even though the serial monitor window itself appeared to
have done the baud rate changes ok.
Another symptom to watch out for was setting the baud rates to the ESP
defaults and then resetting the ESP should have resulted in a string
printed in the serial monitor from the bootlog including current
programming mode. With the HL-340 this was just junk whatever the baud
rate was set for. whereas the FTDI worked fine.
The USB serial modules will still be useful, but not for this
application or any requiring the programming of an ESP8266.
Something to watch out for......
Kirbs
--
an...@kirbyand.co.uk
www.kirbyand.co.uk