What about new version of module ESP8266WiFi #4825
Replies: 1 comment
-
Posted at 2015-06-27 by DrAzzy Where is the documentation of the different AT command set? BTW - I don't test code I write for others on forum, but I'll at least assess how bad it will be, and maybe take a stab at making the changes (depending on how hard it looks). It would have been nice if espressif had picked one command set and stuck to it. There seem to be many versions of the firmware, all mutually incompatible. Posted at 2015-06-28 by profra Thanks for your reaction. I should explain my notice "Warning" in my previous message... Attachments: Posted at 2015-06-29 by @gfwilliams Hi, Thanks - yes, I'd like to support the new firmware. Personally I think that unless they have changed something drastic, it should be possible to support both versions of the firmware from the same ESP8266 module - automatically (It could query the version at startup). The problem for me at the moment is that there's no way to update the firmware of the module once it is attached to the Pico. Personally I see fixing that as a priority... Posted at 2015-06-29 by elswork Hi, Posted at 2015-06-29 by profra Hi, thanks for your answer and willingness to solve the problem. We need only:
g/one wire mentioned in point a/ we hold on pin GPI0 and with second wire we tap RST pin ... ESP82666 is switched into programming mode (the wires can stay unconnected), ./esptool.py -p /dev/ttyUSB0 -b 115200 write_flash 0x00000 AT25-SDK112-512k.bin j/ we will see messages of esptool Connecting... Leaving... k/ it is done... new firmware in ESP8266-01. Tested and verified. Posted at 2015-06-29 by DrAzzy AH! I see why I thought your other post didn't have any useful information... the second link doesn't lead anywhere - but for some reason the macrocosm shortened link just went straight to esp8266.ru, so I didn't realize there was a problem with the link. Can you post a working link to the docs on AT instruction set? esp8266.ru/download/esp8266-doc/4A-ESP8266__AT%20Instruction%20Set__EN_v0.25.pdf Posted at 2015-06-29 by profra Sorry, here is it. Posted at 2015-06-29 by profra Once more... some error on the server??? Attachments: Posted at 2015-06-30 by profra Have you noticed that I sent you the file with AT commands? Attachments: Posted at 2015-06-30 by DrAzzy Yes, I saw that. That looks like docs for the normal AT command set though - it's got the Espressif logo and all on it? I have not had more than a few minutes to look at it though. What about docs for the firmware you're using? I am very busy lately - I do not have time to play detective and sort out the differences, if you give me clear information about exactly what the differences are, I can help - otherwise, I just don't have time. Posted at 2015-07-06 by @gfwilliams Nice - that documentation is a whole step up from what used to exist! When I get some time free I'll try and flash a new version of the ESP8266 firmware and will try and get something working. Hopefully it won't be too bad. It looks like EspressIf may have dropped the dodgy Posted at 2015-07-07 by @gfwilliams Hi - just to let you know I've now created a new driver that should work with the newer 0.25 firmware. Details on the ESP8266 page Posted at 2015-07-13 by Ingmar_Guillaume Any chance someone writes a flash program that runs on the espruino pico directly? (as a USB Serial to ESP8266, I mean). My ESP-01's are on the shims, and desoldering is not really the best option. Posted at 2015-07-13 by @gfwilliams Yeah, hopefully someone will - bit busy this week so it's unlikely to be me. I'll be trying to push the new USB code this week, so hopefully that'll make USB reliable enough that the Pico can just be put in a 'USB-TTL' forwarding mode. Posted at 2015-07-14 by user56017 Hi - many thanks for your time and good result!
Posted at 2015-07-14 by profra user56017 = profra Posted at 2015-07-14 by profra Hi - If you have some wires and USB-UART convertor (3V3) see my contribution #6... you can flash new firmware in a while.... even though ESP8266-01 is soldered on the shim. Posted at 2015-07-15 by Ingmar_Guillaume OK, at first I was a bit lost. I thought you meant flashing through the USB port of the pico, but in fact you are using 3 serial ports: One to the ESP-01 (on the first UART on pico), one to the PC with an extra USB to serial on the second UART, and one to the pc through the pico USB to serial. I'll try this tomorrow. Posted at 2015-07-15 by @gfwilliams Just a quick note - if you're not running anything on the Pico then A2/A3 will be totally open circuit. You could plug USB-TTL directly to the ESP8266 and program it that way. I just checked, and on the latest Espruino Images (the USB HID ones - I haven't checked others), you can actually do the following:
It's slooow at 9600 baud, but I haven't tried anything else yet. It does work though. Posted at 2015-07-15 by @gfwilliams Just to add, this won't work on the newest 1v79 firmware. You'll need to use a Git build, like this one And only use it if you've got a USB-TTL converter as well - in case it all goes wrong! Posted at 2015-07-15 by Ingmar_Guillaume Lol, the 1.79 build was what I was using. It stops randomly flashing the ESP01. Trying with the Git build now. Posted at 2015-07-15 by Ingmar_Guillaume OK, used the 1.79.210. Had to change some values in the ESPtool.py (if not, it led to an Invalid header somewhere in the flash process.) I also adjusted the baudrate. These are the values that worked:
Higher values on any of the two variables, led to errors in the flashing. Posted at 2015-07-16 by @gfwilliams Great! Thanks for the note about I bet it's actually an issue with the buffer sizes - while USB should now be able to throttle, because the buffers are shared I wonder if you can get into a situation where the USB RX buffer gets full, and that then drops Serial RX data (which can't be throttled). I wonder if there's some simple way to reproduce it with just the Espruino so I can see if I can tweak the firmware. Posted at 2015-07-16 by Ingmar_Guillaume I actually had two types of problems: one was where the ESPTool would report an "Invalid header". The solution of adjusting the ESP_XXX_Blocks I found on the net, although I can't seem to be able to find the link anymore The second one was where the ESPTool would just stop, probably waiting for eternity for the serial to come back. Posted at 2015-07-17 by profra You are right in principle... but USB and USART2 are already used (USB->PC, USART2->ESP8266 on the shim). The task was (from my point of view) to flash new FW into ESP8266 "tightly soldered" on the shim. USART1 is free (or can be made free) for this "one-shot" task -> to flash new FW.... without any problems... which you describe in your solution to do the same through USB. It is not easy task because of USB OTG is packetizied communication. I guess the only reason for this solution is that not everybody has USB-UART available. Am I right? Posted at 2015-07-17 by Ingmar_Guillaume I actually took Gordon's solution first because I didn't want to solder wires to the pins. And although it took some tweaking and slowing down comms to a strolling pace, it works. I now have AT25 on both "shimmed" ESP01's without having to desolder them. Which was the goal. But I am sure that your solution wouldn't have required the "tweaking". Posted at 2015-07-18 by profra @Ingmar_Guillaume OK, if the task is successfully fulfilled (new FW flashed) then the solution with USB is better... requires less sources.
Attachments: Posted at 2015-07-18 by profra @Ingmar_Guillaume ... the flasher is too big... I have to find another way how to send it... do you have any idea? Posted at 2015-07-18 by profra ... everybody can download it here... Posted at 2015-07-18 by Ingmar_Guillaume @profra, what do you mean "Too big"? To attach you mean? Just give the link, instead of the download as attachment. No? Posted at 2015-07-19 by the1laz @gfwilliams - Thanks for the new version of the module, it fixed some problems I was having with running a http server. The old firmware kept breaking halfway through sending responses. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-06-27 by profra
Dear Gordon,
I have 3 pcs Pico from you and lots of esp8266-01. Both things are very exciting toys.
I have tried to connect them together to create even better toy. I have some experience with ESP but I am total newbie in JS. I went through and through the forum, did all right steps but my efforts to have reliable appliance were less successful. The reason for it is my weak practice in JS (I will improve myself :-) ) but stronger reason is too old AT firmware in the ESP8266 module. You surely know that actual state of firmware from Espressif Systems is incomparably better than half year ago (hundreds of errors removed)... and I have to say that also the level of documentation went the same direction. There is some complication with new AT firmware from Espressif, they have leaped over the border of 512KB flash which are soldered in modules ESP-01. BUT on the other side there is very capable community around ESP8266 chip in Russia where I have found the solution. They have compiled the special AT firmware which fits in the 512KB flash and is most actual. Also, they have written the best tool in Java for work with ESP8266 modules as I know. It is very good tool for testing connected chip, sent AT commands and check their responses but not only for that... I used Esplorer parallel (two HW modules with the same firmware) with Espruino IDE during my efforts to modify your original module "ESP8266WiFi" (see picture). Warning: there are small differences between real AT responses and responses according Espressif documentation.
Here are the right links ...
...firmware 512KB for ESP8266-01... version ATv0.25 from 12.06.2015
http://esp8266.ru/download/sdk/AT25-SDK112-512k.bin
... AT instruction set EN... version ATv0.25 from 12.06.2015
http://esp8266.ru/download/esp8266-doc/4A-ESP8266__AT%20Instruction%20Set__EN_v0.25.pdf
... Esplorer
http://esp8266.ru/esplorer-latest/?f=ESPlorer.zip
Gordon, I have tried to adapt your module "ESP8266Wifi" for above mentioned AT firmware but as I have written, my actual ability to do it in JS is very low. All above mentioned facts brought me to the idea that you or somebody else with corresponding capability could write new version of "ESP8266WiFi" module.
Please, do you think it would be possible for you to find some time to do this job?
PS: I'm sorry for my English, I'm not a native speaker.
Attachments:
Beta Was this translation helpful? Give feedback.
All reactions