Avatar for hungryforcodes

hungryforcodes

Member since Mar 2017 • Last active Nov 2017
  • 2 conversations
  • 45 comments

I love Espruino and bacon! :P

Most recent activity

  • in ESP8266
    Avatar for hungryforcodes

    @Polypod Also the first one has a proper F antenna, which -- unless I am mistaken -- results in better radio performance.

    https://en.wikipedia.org/wiki/Inverted-F­_antenna

  • in General
    Avatar for hungryforcodes

    I've never seen any polls to my recollection on the forum here. That might be interesting -- though not definitive, for you. Put up a bunch of options that you think might be interesting and then you can always choose to just ignore the results anyways :P

    I for one would love to have the "espruino watch", on there as a voting option :P

  • in ESP8266
    Avatar for hungryforcodes

    @Wilberforce @Gordon As I said before I uploaded just:

    console.log("hello");
    

    And this was from a virgin ESP that I flashed with a recent version of Espruino (you can look above).

    As far as I know that shouldn't do anything. So are there default modules.js that are loaded before my code? Something else?

    -hfc

  • in ESP8266
    Avatar for hungryforcodes

    @Wilberforce Maybe we're getting warmer. So to summarize:

    1/ If I do not use "Save On Send" -- IE: disable the feature in question, all is normal. There are absolutely no problems.

    2/ If I DO enable "Save On Send", then AFTER all the code has been uploaded (looking at the green bar in the lower right in the Web IDE), and AFTER the message (suggesting the code has been saved to flash successfully):

    >Erasing Flash..................
    Writing...
    Compressed 25600 bytes to 31
    Loading 31 bytes from flash...
    Uncaught InternalError: Not connected to the internet
    

    the ESP8266 gives us an endless stream of "Not connected to the internet".

    3/ If I unplug the ESP module and plug it back in, none of my code executes, however I have the normal Espruino prompt. At this point if I do "dump()" I get the message:

    Connected
    >
    >dump()
    // Code saved with E.setBootCode
    =undefined
    > 
    

    so then if I type "load()". I get the following:

    >dump()
    // Code saved with E.setBootCode
    =undefined
    >load()
    =undefined
    Loading 31 bytes from flash...
    Uncaught InternalError: Not connected to the internet
    Uncaught InternalError: Not connected to the internet
    Uncaught InternalError: Not connected to the internet
    

    So it definitely seems to be something about the initialization and loading of the code.

    4/ If I save the code normally (IE: without the feature in question enabled), I can easily always reset() and load() code without any problems (and do so frequently for debugging purposes etc).

    So this suggests to me there is something about either Save on Send, or something about E.setBootCode() which is implicated in this. Again, not sure.

  • in ESP8266
    Avatar for hungryforcodes

    @Wilberforce This wouldn't apply to virgin modules (stock Espressif firmware), which you then erased and flashed with Espruino, would it? This is what I've been using mostly. Anyways as I mentioned, E.setBootCode("") doesn't fix the problem....

  • in ESP8266
    Avatar for hungryforcodes

    Interestingly if I press the reset button the board I get the following:

    >;ld|dà|Ädìc<ì{ÛcÄ#ónglgnãìcp${$sdpò'àlcoã<cûgnçdÄÇd`'l`orÇ'd`8ûoà;Üãàb'ã|äÇcû'oîd`ogl n{glxóoà{ãàälcgã|cûg'çl no$`g{ol`rÛgl`{lnûgnãÄ{'ogÄdÄcdì$ä$dl{lällloãddldì$ÄnàoìÛo~ldàbì$dpcÃcrìd`ol8ìl cd`$'gÛãnl|l$`sdãänì{ûo|äll`ã{dþLoading 31 bytes from flash...
    >
    =undefined
    >
    

    and can play around with the command prompt as normal. But if I do a reset () / load () the error comes back as follows:

    >
    =undefined
    >reset()
    =undefin
     _____                 _
    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v92.902 Copyright 2016 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    Flash map 4MB:512/512, manuf 0xe0 chip 0x4016
    >load()
    =undefined
    Loading 31 bytes from flash...
    Uncaught InternalError: Not connected to the internet
    Uncaught InternalError: Not connected to the internet
    Uncaught InternalError: Not connected to the internet
    Uncaught InternalError: Not connected to the internet
    Uncaught InternalError: Not connected to the internet
    

    Interestingly, if I use E.setBootCode to erase the flash the problem doesn't go away:

    E.setBootCode("")
    Erasing Flash..................
    Writing...
    Compressed 25600 bytes to 8
    Checking...
    Done!
    >
    =undefined
    >reset()
    =undefin
     _____                 _
    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v92.902 Copyright 2016 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    Flash map 4MB:512/512, manuf 0xe0 chip 0x4016
    >load()
    =undefined
    Loading 8 bytes from flash...
    Uncaught InternalError: Not connected to the internet
    Uncaught InternalError: Not connected to the internet
    Uncaught InternalError: Not connected to the internet
    

    So not sure.

  • in ESP8266
    Avatar for hungryforcodes

    For me, its always the same Gordon. It doesn't matter which board I try (ESP-01, WeMos D1 Mini (ESP-12F), today the ESP Witty (ESP-12F), it always produces the the same error:

    "Uncaught InternalError: Not connected to the internet"

    So I'm on a Chromebook and using the Web IDE. And just now I plugged in an ESP Witty (basically just a 12F module), and uploaded the following code:

    console.log("hello");
    

    What I got back was:

     _____                 _
    |   __|___ ___ ___ _ _|_|___ ___
    |   __|_ -| . |  _| | | |   | . |
    |_____|___|  _|_| |___|_|_|_|___|
              |_| http://espruino.com
     1v92.902 Copyright 2016 G.Williams
    Espruino is Open Source. Our work is supported
    only by sales of official boards and donations:
    http://espruino.com/Donate
    Flash map 4MB:512/512, manuf 0xe0 chip 0x4016
    >Erasing Flash..................
    Writing...
    Compressed 25600 bytes to 31
    Loading 31 bytes from flash...
    Uncaught InternalError: Not connected to the internet
    Uncaught InternalError: Not connected to the internet
    Uncaught InternalError: Not connected to the internet
    

    etc etc. I have no idea if anyone else experiences it. I thought to go through the Espruino source, but I'm a bit wrapped up with projects right now, and don't have time to learn how to debug at that level, yet.

  • in Projects
    Avatar for hungryforcodes

    Interesting! I actually contacted the sellers of the ID107 and had a similar experience to the gentleman that was writing the post above. They told me I had to order some large quantity, and tried to sell me new watches that were not the same. So dead end there.

    There are some on ebay --- and I'm moving and these things take forever to arrive. But I'm encouraged that people are really into modding this little platform. The more I think about it the more I'd really love to have espruino on a watch like that.

    Anyways keep us informed of any tinkering -- I'll be watching with interest for sure. I won't be able to work on anything for a few weeks anyways until after I've finished moving.

  • in Projects
    Avatar for hungryforcodes

    +1 for a progress update :P

Actions