Espruino on ESP8266 #2325
Replies: 149 comments
-
Posted at 2015-04-28 by @gfwilliams Interesting :) No, I had no idea. I guess it was just a matter of time though! |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-05-01 by sameh.hady Yes I’ve been watching it for sometime and tried it out, looking very promising but its sad that he seems working alone and the progress is slow. Guys, It would be great if you can help him & contribute in the project, especially on merging his code to your project, you did one hell great job with Espruino and we would love to see it working on more boards. Can't wait to see it fully functional after seeing it doing the basic operations on my ESP8266 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-07-13 by RandyHarmon +1 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-07-14 by @gfwilliams Has anyone tried out what he's got? It sounds from the description like it's pretty decent already, and that he would merge in his changes when he was ready. Unfortunately I barely have enough time to work on and support Espruino myself, let alone to help port it to new boards :( |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-07-14 by the1laz I couldn't get it compiled and running, so I tried flashing the already built file onto my ESP8266. It seemed to run okay but I don't think wifi worked for me. Didn't really try anything after that due to lack of time, not lack of interest. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-05 by RandyHarmon Anyone been able to locate specs on flash & memory size on these? JS on an even-cheaper hardware platform is VERY interesting. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-06 by @gfwilliams I did find specs a while back, but I'm not totally sure now. The ESP8266 itself needs a flash chip, and the chip on most of the modules you'll buy is 512kB - quite a bit of which is needed for the main firmware. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-14 by Kolban I'm pretty skilled on the ESP8266 and would be keen to get Espruino running on the ESP8266. The ESP8266 community can be found here ... http://www.esp8266.com/ If there is interest in getting this going on ESP8266, count me in 110% ... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-14 by DrAzzy It would be really awesome if this could be done - I'm sure it would be rather limited what you could pull off within the constraints of the 8266, but it would be so nice for small internet connected things. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-14 by Kolban I'm not yet sure what the specs are on Espruino. The ESP8266 has 80MHz or 160MHz processor and 64k of RAM of which 40K is typically free while running as a network device. The flash starts at 512KBytes and can go up to 16Mbytes max. I think the first things that would have to happen is for the folks who care to get involved "get together" (on the Internet). At a minimum, we would need someone who speaks ESP8266 well (I can volunteer for that) and someone who fully understand the code base of Espruino. Without at least those two participants, we have nothing to start with. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-14 by DrAzzy Speed is fine. 40k of ram... Espruino itself eats what, 10-12k? That'd leave 28k of ram, maybe 24 if we're conservative, for 15oo-1700 jsvars. You can do a fair amount with that, though that's what the limiting factor would be. We should see if we can rope in that dude whose github that is linked at the top... I'm afraid I don't have much to contribute to either side here. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-14 by Kolban I've emailed the owner of the Github project to see if he can join in the story again. Looking at the owners other contributions, he too seems to be very knowledgable on the ESP8266 technology. Since we may be staffed with ESP8266 resources, I think the missing ingredient is probably going to be someone who claims competency on the Espruino internal architecture. Do we have any architecture and design docs on the Espruino? Anything that talks about its core architecture and what pre-reqs it may have with respect to its operating environments? Neil |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-17 by @gfwilliams As far as RAM, Espruino needs probably 1kB for static stuff (depending on what's included), then maybe 3kB for stack and the rest is variable storage. On the bigger boards I leave more for stack as it helps with recursion though. I'm happy to help out where possible. There's some info on http://www.espruino.com/Internals and http://www.espruino.com/Performance as well as several posts on the forum from people asking about porting (a few are quite recent). I'm also doing a talk in October at Fullstack on the internals - which should be recorded, so I'll link to that when it's up. However from what I can see on that GitHub, most of the hard work has already been done? It's probably just a bit of bugfixing/tweaking required? Maybe WiFi isn't included in it yet, which would be the big one? However actually adding support requires very little knowledge of Espruino - you're just implementing this interface |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-17 by the1laz When I tried it, the basics were working. Sending code through the console, I/O, PWM. Wi-Fi wasn't working for me, but the commit notes looked like the author had it going. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-17 by Kolban Thanks Gordon, I'm sure we'll need your support for this. The good news is that I feel very comfortable in the WiFi areas on the ESP. I'll start studying the internals docs and reading the code. Ive emailed the author of the ESP project but haven't heard back yet. Let us assume that his sandbox project "got it working" ... what I hope we can do it identify the differences in his fork from your master and try and merge the two together. I'm hoping that we can have one source of truth on the Esprunio code base and that would be your master. Depending on the nature of the changes that might have been made, would you (in principle) be willing to accept pull requests against your code to bring together common changes? Neil |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-10-28 by Kolban Howdy ... have a look at this video and see if it matches close to what you tried ... see: https://www.youtube.com/watch?v=aJj4WJzAo4w You shouldn't be flashing any JavaScript (at least not that I am aware off) ... rather you should be attaching the Web IDE and entering JavaScript there. There is a quite active live chat on Espruino (and Espruino on ESP8266) here https://gitter.im/espruino/Espruino where there may be folks who can assist live. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-10-28 by @yerpj OK now it works. I think the espruino_esp8266_board_0x10000.bin was not the one I needed, moreover it seems that it is an exact copy of espruino_esp8266_board_0x00000.bin (at least the size is the same). Instead, I used the binaries that I found in the ZIP file (https://github.com/espruino/EspruinoBuilds/blob/master/ESP8266/espruino_esp8266_board_binaries.zip), and it works like a charm! Thank you Kolban for your help :-) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-11-05 by MrTimcakes Is there any getting started guide for using WiFi on the ESP8266 as the Espruino? Instructions on how to connect and use the WiFi API aren't immediately obvious and I've had to troll through the docs to just find and information, and I couldn't find any examples. Apologies if I'm just silly and can't find the information. It's amazing work you've all done. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-11-05 by Kolban Howdy Ducky, https://github.com/espruino/Espruino/blob/master/targets/esp8266/docs/05-User_Guide.md If that doesn't completely answer your questions, PLEASE post back so that we can address by making those docs clearer. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-11-05 by MrTimcakes Hmm, I get
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-11-05 by Kolban Howdy Ducky ... this warning can be found as a tracked issue here: Thankfully the warning can be "ignored" and all should function. This one needs @gfwilliams to look into it as it appears to relate to files managed by the Web Server located at "espruino.com". My loose understanding is that when we use the Web IDE and execute a "require" then that causes a REST request to be made from the IDE back to "espruino.com" which, loosely, says "I would like a copy of the JavaScript corresponding to that named module". I believe that the REST request also includes the type of board you are using so that if there is board specific code, that can be matched correctly. Since the board you are using is an "ESP8266" and, currently, the web site doesn't know what that is ... you get a warning message. However, since the module is actually "built-in" to the ESP8266 firmware, all still works as there was nothing to be downloaded in the first place. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-11-05 by MrTimcakes Wow, thanks for your speedy reply. Hmm "arrayOfAcessPoints" is null for me, but perhaps my ESP8266 just isn't detecting any networks. Also, Uncaught ReferenceError: "esp8266" is not defined for esp8266.getAddressAsString -- Fixed by replacing esp8266.getAddressAsString with ESP8266WiFi.getAddressAsString, maybe change the doc? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-11-05 by Kolban What level of the firmware are you using? The docs "should" match the latest firmware. Live chat is available here if needed ... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-11-05 by MrTimcakes That was 1v81.705 on a NodeMCU ESP-12 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-11-05 by Kolban I tried the following and it seemed to work ... can you try same?
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-11-06 by @yerpj the wifi.scan() method has been updated recently. the previous callback prototype was "function(aps,...)" ans is now "function(res,aps,...)". You may have to use the second parameter instead of the first one, to work on given ssid list |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-01-31 by user61946 Is there any documentation about how to compile Espruino for Esp8266? I would like to include some extra library to the framework, like RcSwitch... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-01-31 by JumJum You could copy everything to an ubuntu-vm from @tve server: next assign variables: last not least cd to Espruino folder and: |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-02-01 by tve https://github.com/espruino/Espruino/blob/master/README_Building.md#for-esp8266 |
Beta Was this translation helpful? Give feedback.
-
Posted at 2016-02-01 by @gfwilliams Although have you checked out the existing 433Mhz stuff on the website? There's already quite a bit there for controlling 433Mhz devices from JS |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-04-28 by JumJum
Does anybody know about this ?
https://github.com/aplikatika/Espruino-on-ESP8266
Beta Was this translation helpful? Give feedback.
All reactions