-->
Page 1 of 1

I am lost.... kind of.

PostPosted: Tue Dec 29, 2015 11:17 pm
by dkca
OK, I have flashed my esp8266-1 (w/ 1MB flash) port of ESPRUINO

This is what I have so far
Code: Select all _____                 _
|   __|___ ___ ___ _ _|_|___ ___
|   __|_ -| . |  _| | | |   | . |
|_____|___|  _|_| |___|_|_|_|___|
          |_| http://espruino.com
 1v84.tve_master_588d193 Copyright 2015 G.Williams
WARNING: the esp8266 port is in beta!
Flash map 1MB:512/512, manuf 0xc8 chip 0x4014
>process.env
={
  "VERSION": "1v84.tve_master_588d193",
  "BUILD_DATE": "Dec 18 2015",
  "BUILD_TIME": "07:12:52",
  "GIT_COMMIT": "588d19384d7ba8a11273aef66dd13e8e01c51e96",
  "BOARD": "ESP8266_BOARD",
  "CHIP": "ESP8266",
  "CHIP_FAMILY": "ESP8266",
  "FLASH": 0, "RAM": 81920,
  "SERIAL": "18fe34e6-2cf9",
  "CONSOLE": "Serial1",
  "EXPORTS": { "jsvLock": 1076007472, "jsvLockAgainSafe": 1076007456, "jsvUnLock": 1075966304, "jsvSkipName": 1075938908,
    "jsvMathsOp": 1075891972, "jsvMathsOpSkipNames": 1075881128, "jsvNewFromFloat": 1075969992, "jsvNewFromInteger": 1075970060, "jsvNewFromString": 1075971060,
    "jsvNewFromBool": 1075970028, "jsvGetFloat": 1075942580, "jsvGetInteger": 1075936440, "jsvGetBool": 1075942864, "jspeiFindInScopes": 1075866920,
    "jspReplaceWith": 1075953740, "jspeFunctionCall": 1075939460, "jspGetNamedVariable": 1075906104, "jspGetNamedField": 1075874816, "jspGetVarNamedField": 1075874300,
    "jsvNewWithFlags": 1075969836 }
 }


I have flashed (following the 512k version) using ESP8266Flasher.exe and set it to 1MB with the followings
0x0000 boot_v1.4(b1).bin
0x1000 espruino_esp8266_user1.bin
0x7E000 blank.bin

Question: any different (e.g. blank.bin address) if I have the 1MB version?

Then it takes me a while before I can connect to my AP... I have read and read and I think some docs are either outdated or not for Espruino running on ESP8266.

To start off, one of the URL takes me to https://github.com/espruino/EspruinoBui ... er/ESP8266 (that is 1v83 BTW) I have tried and tried and cant't seem to even load the Wifi Module (yes I did use the chrome extension)

Code: Select allvar wifi = require("Wifi");


Turns out I found 1v84 here! Great, flashed that... and able to load the WiFi module. Awesome! Again, following examples here (https://github.com/tve/EspruinoDocs/blo ... lashing.md)

wifi.getStatus() seems ok, but wifi.getIPInfo() hits another road block... turns out it's just wifi.getIP()... (I read http://www.espruino.com/Reference#Wifi) but on the other hand wifi.scan() doesn't seems to work. and wifi.save() gives "=undefined" as respond which seems confusing....

Oh I wish the blue LED will turn on when WiFi is connected....

So far this is how much I get... still learning (or more like experimenting) from bits and pieces of information... Not to mention my js is a bit rusty too. :oops:

My initial impression, NodeMCU LUA seems more user friendly at the moment... Or at least better documentation.

My next question is how to save my 'program' on to the module?

And will I be able to use the Tx/Rx UART to talk to another device (I can't seems to get the 'serial' class to work yet..)

Finally, again, there are some confusions in documentation/examples because there is the "unofficial, running Espruino" vs the "official Espruino with ESP8266 module"...

Very frustrated!

PostPosted: Wed Dec 30, 2015 12:12 am
by dkca
all of the sudden

var wifi = require("WiFi");

is complaining WARNING: Module "WiFi" not found :?: :?:

Update: OK Now I get it... various example spell "WiFi" but it is actually CaSe SeNsItIvE!!

Code: Select allwifi=require("Wifi")


this seems to works.... Gosh. I know it is hard work to port it over to ESP8266 but "I found the lack of accurate documentation disturbing" :twisted:

And no! it is not telnet!

PostPosted: Wed Dec 30, 2015 12:11 pm
by dkca
Again, various places seems to mention about telnet to ESP8266... turns out it is just RAW TCP connection.

For example, when I use putty to TELNET to port 23, it makes ESP8266 unhappy, but open in RAW seems ok.

OK, just found out (after connect to it via port 23) , Serial.print will cause a reboot and keeps looping... humm.. not good. Time to reflash! :shock:

Code: Select all _____                 _
|   __|___ ___ ___ _ _|_|___ ___
|   __|_ -| . |  _| | | |   | . |
|_____|___|  _|_| |___|_|_|_|___|
          |_| http://espruino.com
 1v84.tve_master_9aa07bc Copyright 2015 G.Williams
WARNING: the esp8266 port is in beta!
Flash map 1MB:512/512, manuf 0xc8 chip 0x4014
 ets Jan  8 2013,rst cause:4, boot mode:(3,7)
wdt reset
load 0x40100000, len 1396, room 16
tail 4
chksum 0x89
load 0x3ffe8000, len 776, room 4
tail 4
chksum 0xe8
load 0x3ffe8308, len 540, room 4
tail 8
chksum 0xc0
csum 0xc0
2nd boot version : 1.4(b1)
  SPI Speed      : 20MHz
  SPI Mode       : DIO
  SPI Flash Size & Map: 8Mbit(512KB+512KB)
jump to run user1 @ 1000
sdǃr$ÄßãŒ#þ
 _____               
 

Re: I am lost.... kind of.

PostPosted: Thu Dec 31, 2015 6:39 pm
by tve
Sorry for not seeing your questions earlier. The latest info can be found at the end of this thread: http://forum.espruino.com/conversations/279176/newest/ and for interactive help head over to https://gitter.im/espruino/Espruino
You indeed seem to have a 1MB flash chip, blank.bin goes to 0x0FE000