Author Topic: ESP8266 WiFi Rant.  (Read 25257 times)

0 Members and 1 Guest are viewing this topic.

Offline YansiTopic starter

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
ESP8266 WiFi Rant.
« on: April 11, 2015, 12:11:25 am »
Hi
a few weeks ago, me and a few of my colleagues have decided to buy ESP8266 based WiFi modules and test them, just being curious what they are capable of. Well, as we've learned today, they are capable of pissing not only one engineer really off.

We bought two models of the modules: that cheapest rubbish with the nonshielded board and onboard etched antenna, this: http://www.aliexpress.com/item/1pcs-ESP8266-remote-serial-Port-WIFI-wireless-module-through-walls-best/32280714838.html and one looking much better: http://www.aliexpress.com/item/ESP8266-serial-WIFI-model-ESP-07-Authenticity-Guaranteed/32226744057.html

I'd like to share an experience with these modules and some subjective review based on short toying with these modules.

As an engineer, the firs think you will likely do is to search for documentation.  We have found only some marketing rubbish pdf, which mostly doesn't help with anything. Search for a datasheet specific for the two modules gave us no result. Nothing's been found. Only some "OHSW arduino type" schematic plans using silly images of the components not standardized schematic symbols.

Connecting the module. Looked to be easy. 3V3 supply, ground, RX, TX and that CHPD (chipselect/powerdown) signal tied to VCC. Cause the "OSHW arduino schematics" even were much consistet with how to connect Rx and Tx pins (some "instructables" were to connect Rx to Rx and Tx to Tx), a simple resistor loading test were conducted.  Of course, Rx is the input on the module, Tx the output respectively.

By the way, the chip on the unshielded module gets hot rather quickly - don't understand that at all. And also two decoupling caps were installed on the module - seemed none is there. (wtf?!)

Trying to send an AT command. Seemed easy, until... the fuck what speed does the bastard use? "OSHW inctructables" also weren't much clear about that, nor you will get that from the pdf immitation of datasheet. I mean this: https://nurdspace.nl/images/e/e0/ESP8266_Specifications_English.pdf

After some time labouring with the speed setings in the terminal, the colleague's unshielded module caugth somewhat working at 9600 8N1. But the web instructed mostly using speeds like 115200 or 57600. But the fun haven't ended there. My shielded module has been just sitting there doing nothing. Only lighting the red LED.

Troubleshooting the metal can module. I have noticed, that sometimes on power-up, my metal-can-shielded module produced some glitch in the terminal, puked there some random characters, regardless of the speed was set. I couldn't make tha sucker print anything normal  at any speed from 600bps to 115200. Then I grabbed a DSO a look at the mess on the TX pin.  Looked definitely like UART signal. I have decoded first two characters and got 0x0D 0x0A. (CR LF)...  Then I calculated the speed. 13.2us per bit.  :wtf: Roughly 75700. Wtf shit is that speed? Some chinese standard?

Trying to communicate with the metal-can module. After setting the terminal to 75700 it finally produced some readable text. Some module ID, two-number bootcode (dunno what that means but gave me I think 7,7). Nice. Then I tried typing AT. No response. Then tried AT+RST. Nothing again. Then I started messing with CR/LF line endings. Nothing doing anything. Only gettin that short infotext message after reset or powerup.

Another web search followed. I learned, that the modules comes with differnt firmwares. And you simply don't know, which one you have in, when you buy the module. So you must first flash it using some (as I read on the web) very buggy flasher tool, which even doesn't support COMs with higher number that 6. :palm: I haven't tried to flash the gizmo with anything so far, so stay tuned for update. Quick sniff into the web raised some alarms, that the flashing procedure isn't just that simple.

To sum up the today's few hour mess-around with these modules, I'd say these are pretty crap and an example of BAD product design. Yes, they are cheap, OSHW, Arduino, anything, but more trouble than helpful. Pretty disappointed   :--



 

Offline sleemanj

  • Super Contributor
  • ***
  • Posts: 3020
  • Country: nz
  • Professional tightwad.
    • The electronics hobby components I sell.
Re: ESP8266 WiFi Rant.
« Reply #1 on: April 11, 2015, 12:27:54 am »
You're rant says more about your own inability to perform research, put in time and effort, and recognise than a new extremely cheap device under heavy active development, from China, is not the same as buying a mature stable well documented expensive device from a respected manufacturer.

There is a large quantity of information out there, both manufacturer and community derived, you just have to Google for it.

Communicating with the ESP over it's AT interface is not that hard, and there are alternative firmwares, and the ability to code for it directly if you want to avoid AT command communication.

Yes the documentation is a bit rough and ready, it's an experimental device from China, if you really wanted to use this device you would have no trouble to work it out.
~~~
EEVBlog Members - get yourself 10% discount off all my electronic components for sale just use the Buy Direct links and use Coupon Code "eevblog" during checkout.  Shipping from New Zealand, international orders welcome :-)
 
The following users thanked this post: OzOnE

Offline mtdoc

  • Super Contributor
  • ***
  • Posts: 3575
  • Country: us
Re: ESP8266 WiFi Rant.
« Reply #2 on: April 11, 2015, 12:28:38 am »
Maybe you've seen this, in case not:

esp8266 forum
 

Offline stevech

  • Contributor
  • Posts: 10
Re: ESP8266 WiFi Rant.
« Reply #3 on: April 11, 2015, 12:28:46 am »
er, please edit language to yield a "G" rating.
 

Offline YansiTopic starter

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: ESP8266 WiFi Rant.
« Reply #4 on: April 11, 2015, 12:41:35 am »
You're rant says more about your own inability to perform research, put in time and effort, and recognise than a new extremely cheap device under heavy active development, from China, is not the same as buying a mature stable well documented expensive device from a respected manufacturer.

There is a large quantity of information out there, both manufacturer and community derived, you just have to Google for it.

Communicating with the ESP over it's AT interface is not that hard, and there are alternative firmwares, and the ability to code for it directly if you want to avoid AT command communication.

Yes the documentation is a bit rough and ready, it's an experimental device from China, if you really wanted to use this device you would have no trouble to work it out.

True. I am used to use devices and read datasheets from respected manufacturers. So quite shocking, how the "OSHW arduino stuff" is inefficient at documentation level.

I don't see anything hard at working with AT commands, but the device should listen them first.  Just a few minutes ago, I noticed on some random ESP-arduino-something-oriented webpage that GPIO15 should be tied to GND on the "SMD module". I don't know, if the module with metal can is called "SMD module", equally I don't know why I should ground the GPIO15, but I am going to try, what happens.
 

Offline PeterFW

  • Frequent Contributor
  • **
  • Posts: 577
  • Country: de
    • Stuff that goes boom
Re: ESP8266 WiFi Rant.
« Reply #5 on: April 11, 2015, 12:49:52 am »
a few weeks ago, me and a few of my colleagues have decided to buy ESP8266 based WiFi modules and test them, just being curious what they are capable of.

The same thing i dit about 2 weeks ago, the documentation all over the web.
The firmware running on the chip is available to study.
Even the whole datasheet for the chip is on the web.
If the datasheet, wich is fairly comprehensive, does not tell you all you need to know, what else do you want?

"The chip runs hot" is no failue description, you power supply or your meter should tell you what power the consumed.
Idling the chip draws between 40 and 80mA at about 3.3V, that is ~1/4W max.

The fault is all on your side, lets call it overconfidence and a pretty huge gap between actual and percived knowledge.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: ESP8266 WiFi Rant.
« Reply #6 on: April 11, 2015, 12:50:03 am »
Quote
a few weeks ago,

Wow. Multiple ST embedded engineers couldn't get a simple esp8266 to work.

Wow!

Hopefully that's not indicative of ST's engineering prowess.
================================
https://dannyelectronics.wordpress.com/
 

Offline YansiTopic starter

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: ESP8266 WiFi Rant.
« Reply #7 on: April 11, 2015, 01:13:21 am »
PeterFW: Simple. If one chip remains only warm, why should the other get too hot to touch? Same supply, same setup.

Dannyf: Dont understand your point. I really would like to see you, what you would be capable of doing with that just in two hours, with only such pispoor documentation available and no previous experience with these suckers. But sorry to bother you.
« Last Edit: April 11, 2015, 01:16:29 am by Yansi »
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6189
  • Country: us
Re: ESP8266 WiFi Rant.
« Reply #8 on: April 11, 2015, 01:18:47 am »
To sum up the today's few hour mess-around with these modules, I'd say these are pretty crap and an example of BAD product design. Yes, they are cheap, OSHW, Arduino, anything, but more trouble than helpful. Pretty disappointed   :--

The 8266 is a game changer. Dirt cheap chip, has open SDK and includes an MCU that can run application code. Compare with similar modules from other vendors.

The 75k boot message is bizarre but just ignore it. The stock AT commands look good initially but when you get to the details they are hard to work with. There is a community activity to have better AT commands but am not sure how about the progress. I ended implementing a small Lua program that implements a a better interface with the MCU (an ARM M0) and it works very well. Actually I am surprised how well it works considering that small printed antenna and non shield board. The next step once my C++ application code is done is to port it to run directly on the ESP8266 and make its SSL to work with 2014 bit keys so it can talk with real servers (stock SSL limited to 1024 bits).

The 8266 is new but is surprisingly open and there is a strong community around it so it should do well. Will be interesting to see how the competition react.
 

Offline PeterFW

  • Frequent Contributor
  • **
  • Posts: 577
  • Country: de
    • Stuff that goes boom
Re: ESP8266 WiFi Rant.
« Reply #9 on: April 11, 2015, 01:29:06 am »
PeterFW: Simple. If one chip remains only warm, why should the other get too hot to touch? Same supply, same setup.

Because you do not run if of a proper power supply, dit not bother measuring the load and you have pins floating.
If you leave the wrong pins floating the board will pick up noise, transmit full tilt garbage and draw above >200mA.

You are in pretty big denial :)
 

Offline YansiTopic starter

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: ESP8266 WiFi Rant.
« Reply #10 on: April 11, 2015, 01:38:26 am »
The power supply is not at any fault, to be sure it was also checked with a scope so was added decouping directly on the module. Still you think the PSU was the issue? Howewer the whole OSHW stuff probably is. I havent seen any arduino instructable suggesting to connect any of the remaining gpios, have you?
« Last Edit: April 11, 2015, 01:40:21 am by Yansi »
 

Offline PeterFW

  • Frequent Contributor
  • **
  • Posts: 577
  • Country: de
    • Stuff that goes boom
Re: ESP8266 WiFi Rant.
« Reply #11 on: April 11, 2015, 01:45:48 am »
Still you think the PSU was the issue?

I think i have fed you enough allready, i will put my bag of chow back in the cellar, it is not nearly moldy enough annyway...
 

Offline YansiTopic starter

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: ESP8266 WiFi Rant.
« Reply #12 on: April 11, 2015, 01:51:18 am »
Yeah, fed some inconcrete stuff, ignoring what I have said you. So please have a rest. I am going to do the same now. Tschus und gute Nacht.
« Last Edit: April 11, 2015, 01:52:50 am by Yansi »
 

Offline IconicPCB

  • Super Contributor
  • ***
  • Posts: 1527
  • Country: au
Re: ESP8266 WiFi Rant.
« Reply #13 on: April 11, 2015, 07:07:30 am »
ESP8266 can now be programed via Arduino IDE.

Arduino1.61 will recognise the hardware and compile code so that the application runs on the 8266 chip.


Documentation is still a bit wanting but systematic search will uncover a lot of information. You need to search yourself into the hardware.
 

Offline Tuppe

  • Contributor
  • Posts: 16
Re: ESP8266 WiFi Rant.
« Reply #14 on: April 11, 2015, 07:52:14 am »
Dude, those modules are DIRT cheap for a reason. At this stage they're more for hobbyists, I wouldn't get professionals working on them.

There's a lot of tutorials online:
http://hackaday.com/2015/03/18/how-to-directly-program-an-inexpensive-esp8266-wifi-module/

There's also the latest(at the time writing this) ESP-11 model available. Problably ESP-25 is already out before I finish this message. I don't know does the chipset change.

If you want proper well documented gear, just use TI's CC3200 for example. You will save money in a long by run using more expensive and reliable tools.
Because of the enormous success of ESP8266(yes, I also have 5 of those. My cat has couple more), I bet markets will be flooded with fake ones that have no guarantee of working to specifications.
It's cheap, but I wouldn't design any serious product around it.
« Last Edit: April 11, 2015, 07:56:46 am by Tuppe »
 

Offline YansiTopic starter

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: ESP8266 WiFi Rant.
« Reply #15 on: April 11, 2015, 09:54:58 am »
Did you know ESP8266 requires some pins be pulled down and some pins be pulled up at power up in order to operate properly? Did you went through all available documents before bitching it?

Yes, it sucks, and nobody wants to use it for high bandwidth apps, but it is designed for WiFi toys, where cost it the most important factor. There is s reason why its documents are not complete, because the maker doesn't want you to know the internal approaching.

With published documents, you can surely set up an environment for it, you just have to dig deeper.

How should I know it, if none of the instructables cared about the GPIO pins? Is it my fault, that there no serious documentation exists? Would you imagine, how the engineering world woud work if anything had that much poor documentation, where each information source almost contradicts the other about what should be connected and what should not?

If some pins are needed to be pulled up or down, they should've use pull-up/down-s on the board or on the chip. This is just improper design to save a few tenths of a cent. The same for the missing proper decoupling.

If you'd say that it is better to start with the module by flashing it to a known firmware, rather than relying on what can be found in five minutes, then OK, I get it.

See:
http://www.instructables.com/id/Using-the-ESP8266-module/step1/Obtaining-and-preparing-your-8266-module/
see again? Where are the GPIO connected? And again claiming 115200-8N1. But not true, worked somehow at 9600-8N1. (Is it my fault? No, it is NOT).
http://www.espruino.com/ESP8266
Again, do you see any GPIO connected? I do not. Some mentioning about the 9600-8N1 (yeah, we later found that too the hard way).
http://rancidbacon.com/files/kiwicon8/ESP8266_WiFi_Module_Quick_Start_Guide_v_1.0.4.pdf
What GPIOs are connected there?

Then there are pages, that tell you some more, like:
https://github.com/esp8266/esp8266-wiki/wiki/Hardware_versions
or
http://www.electrodragon.com/w/ESP8266
and this one was the last useful, about the GPIO15, which I've talked about somwhere in the beginning of this thread.

So whose fault it is, that no serious documentation exists for this thing?  I am not at fault, I am only the pissed usser of this thing. The deeper you go into this thing the more you understanded, how bad the documentation is.

Quote
There is s reason why its documents are not complete, because the maker doesn't want you to know the internal approaching.
What is the reason? ESP manufacturer doesn't want us to know how to use their product? Have I understood that well? Jeeez...

I think the rant is pretty much warrantable.



https://github.com/esp8266/esp8266-wiki/wiki/Hardware_versions
On this page, there some models listed. Mine is not there, which is I think ESP 7. Found almost nothing for it in a quick search. Yea, someone made a breakout board. Schematic is where?  Again, lack of documentation. Shit. So I must obviously analyze the photos, to get a clue what one is buying. And by the way, ceramic cap directly parallel with the button is a no no.
https://www.tindie.com/products/Ba0sh1/esp8266-esp-0712-full-io-breadboard-adapter/



IconicPCB: I do not care much about arduino, but I appreciate the added functionality. The documentation definitely should be improved.



Tuppe: I know the CC3000, which is NRND now. The CC3200 looks much more as a standalone MCU, pretty.
Fake ones... huh, one more reason for the rant (against the fakers). :-)

Quote
It's cheap, but I wouldn't design any serious product around it.
Propably might be done, after rewriting the whole firmware in that thingy. But that was never my plan to dig deeply into that sucker.


Maybe I will toy with that nonresponding ESP07 metal-can gizmo after having a lunch.
« Last Edit: April 11, 2015, 09:58:33 am by Yansi »
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: ESP8266 WiFi Rant.
« Reply #16 on: April 11, 2015, 10:38:34 am »
Quote
How should I know it, if none of the instructables cared about the GPIO pins?

Time to expand your universe beyond "instructables".

Quote
I really would like to see you, what you would be capable of doing with that just in two hours

give me two years I may not be able to figure it out.

But then I don't work for ST so the expectation for me is much much lower.
================================
https://dannyelectronics.wordpress.com/
 

Online amyk

  • Super Contributor
  • ***
  • Posts: 8240
Re: ESP8266 WiFi Rant.
« Reply #17 on: April 11, 2015, 01:48:24 pm »
The official documentation is in Chinese, so be prepared to translate and look into the Chinese part of the Internet.
 

Offline YansiTopic starter

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: ESP8266 WiFi Rant.
« Reply #18 on: April 11, 2015, 07:28:56 pm »
dannyf, please STFU or GTFO or both. Never seen you making any useful comment. Noone is interested in your offtopic hate.


After some afternoon internet labour, I finally got that metal can working. None complete english documentation exists, you really must to dig in the web. Kind of compensation of the low price.

Update to the 75kilobaud initial message: After working which pin must connect which level at startup, the module still sends the 75.7kbaud info header after pwrup and then switches to 9.6kbaud.  Interesting to note, that after using the CIOBAUD command,  both the header baud and communication baud seems to get the same speed.

I have toyed with the module for some hours, seems it works just fine. But to get it to work, is just another lesson. Have no problems with the module opration yet. Only ranting about the documentation. If it had some good quality complete manual, it'd be unbeatable product for its price.

Chinese manual... unfortunately I can't speak or read chinese.  ;D

One other sub-rant: Two LEDs on the module. Only wasting power. I appreciate someone likes blinking christmas trees, but for any battery operated project, one must kick em out to preserve some power.  ;)

So the overall impresion of the module is:

+ Really cheap. I think one cannot complain about the price.
+ It packs useful set of features to make things really simple
+ I think the radio part of the chip works quite good
+ Direct programmability of the chip
+ Claims FCC compliance on some modules (quite impressive)
+ High output power: claims +25dBm (300mW) - if true... (note: beware of legislation about Wifi maximum EIRP in EU region)
+ Can do almost megabit over the uart (supports 921.6kbaud)
- Lack of serious EN documentation (Haven't found any yet)
- Information scattered all over the web and you must dig for it
- Incomplete listings for the AT commands (a lot of digging and poking for some parameters and functionalities)
- Sometimes the AT command outputs are formatted ugly - the text parsing software should be more robust to handle the outputs right
- two unnecessary onboard LEDs wasting some power

Even though I could find some more negatives, I still think it is a good product. At least I don't know any better for the price. I only imagined better and complete EN documentation existed because of the ESP being so popular. It would have made life easier.

Now I consider this little experiment closed and I hope, you enjoyed my little rant, only subjective and non-scripted.
« Last Edit: April 11, 2015, 07:31:12 pm by Yansi »
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: ESP8266 WiFi Rant.
« Reply #19 on: April 11, 2015, 08:17:24 pm »
Quote
After some afternoon internet labour, I finally got that metal can working.

congratulations in order.

Question: how many ST engineers does it take to get a simple esp8266 to work?
================================
https://dannyelectronics.wordpress.com/
 

Offline YansiTopic starter

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: ESP8266 WiFi Rant.
« Reply #20 on: April 11, 2015, 08:33:33 pm »
The question is inapropriate. It should be: How many OSHW arduino fanatics does it take to produce usable complete documentation for their toy?

Last warning. If you have nothing to the topic, STFU & GTFO of my thread.
 

Offline dannyf

  • Super Contributor
  • ***
  • Posts: 8221
  • Country: 00
Re: ESP8266 WiFi Rant.
« Reply #21 on: April 11, 2015, 08:47:21 pm »
Quote
How many OSHW arduino fanatics does it take to produce usable complete documentation for their toy?

Infinitely less than the number of ST engineers it took to get it to work?

The Arduino folks, for their lack of technical skills that you so insist on, seem to have no problem getting it to work. Then a group of technically superior ST engineers like you seem to struggle a lot to get it going.

Why is that?

Quote
Last warning. If you have nothing to the topic, STFU & GTFO of my thread.

I think the best way to avoid people adding to your thread is not to post it to a public forum.
================================
https://dannyelectronics.wordpress.com/
 

Offline YansiTopic starter

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: ESP8266 WiFi Rant.
« Reply #22 on: April 11, 2015, 08:59:59 pm »
What module have you used?  My colleague's  ESP-01 worked almost "out-of-the-box", only the right baudrate needed to be found. On the other hand my ESP-07 module was more troublesome, but finally working.

Recently I came across an issue, when the AT command response from the chip got delayed until next character had been sent in. But not sure, if it is not an issue in the terminal software I am using now. Will need doublechecking.


And also one very useful thing: Just to turn off the annoying localecho done by the ESP chip itself, use the ATE0 command (ATE1 respectively). Why the hell haven't I seen the command listed anywhere? One must dig really for everything...  |O


UPD: Wow, it really has FCC. But the chip itself, not as a module :-)
https://apps.fcc.gov/tcb/GetTcb731Report.do?applicationId=794971&fcc_id=2AC7Z-ESP8266EX
« Last Edit: April 11, 2015, 11:38:37 pm by Yansi »
 

Offline zapta

  • Super Contributor
  • ***
  • Posts: 6189
  • Country: us
Re: ESP8266 WiFi Rant.
« Reply #23 on: April 12, 2015, 01:00:07 am »
Try to flash the Lua image. It's makes it very easy to program and you can have your own replacement for AT commands. I programmed mine to connect automatically to the AP and remote server such that the host MCU doesn't need to desk with connections and just sees a bidirectional stream of data bytes.
 

Offline PeterFW

  • Frequent Contributor
  • **
  • Posts: 577
  • Country: de
    • Stuff that goes boom
Re: ESP8266 WiFi Rant.
« Reply #24 on: April 12, 2015, 01:13:13 am »
NOTE: This message has been deleted by the forum moderator Simon for being against the forum rules and/or at the discretion of the moderator as being in the best interests of the forum community and the nature of the thread.
If you believe this to be in error, please contact the moderator involved.
An optional additional explanation is:
« Last Edit: April 12, 2015, 06:51:06 am by Simon »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf