These are chat archives for esp8266/Arduino

27th
Jul 2016
Ivan Grokhotkov
@igrr
Jul 27 2016 01:58
@skorokithakis this should work as well:
int id = ESP.getChipId();

void setup() {
  Serial.println(id);
}
@thehellmaker you can select "Core Development Module" board in IDE, and then select open-source LwIP option in tools menu
alternatively, run make install in tools/sdk/lwip/src once you have made the changes
Martin Ayotte
@martinayotte
Jul 27 2016 02:07
@igrr , Oh ! good to know, I thought there was a limitation calling it globally before setup(), although I must admit that I didn't tried it.
Akash Ashok
@thehellmaker
Jul 27 2016 06:33
@igrr Thanks ... This will now help me deep dive better ...
Akash Ashok
@thehellmaker
Jul 27 2016 06:40
Also @me-no-dev with respect to #2330 when u say latest lwip is work in progress (good one) do you mean espressif is working on it as we speak? Any idea whats the time line for that is ?
Me No Dev
@me-no-dev
Jul 27 2016 06:49
no timeframe yet as ESP32 launch is a priority at the moment
Akash Ashok
@thehellmaker
Jul 27 2016 06:53
@me-no-dev esp32 has all the cool stuff ... High bandwidth .... Wifi direct .... Good to know ... I will try to upgrade anyways to see if it resolves ARP issue.. While paralelly will try to fix it without upgradatuon .. If it works I'll commit it back ... Thanks ....
Ivan Grokhotkov
@igrr
Jul 27 2016 07:45
for the ESP32 espressif will go with the latest version of LwIP. Then will likely update the 8266 version as well, but i can't give you any timeline on that.
andig
@andig
Jul 27 2016 08:13
SO looking forward for lwip 2.0. Finally make the 8266 webserver usable via remote access :)
Ivan Grokhotkov
@igrr
Jul 27 2016 11:47
Anyone looked into WebRTC here yet, for communication between the esp and a web browser?
Akash Ashok
@thehellmaker
Jul 27 2016 12:18

@igrr I am trying the thing that u mentioned

  1. Core Development Module
  2. Open Source LWIP option

But LWIP under the arduino is present in teh following paths:

  1. /hardware/esp8266com/esp8266/tools/sdk/lwip
  2. /hardware/arduino/avr/firmwares/wifishield/wifiHD/src/SOFTWARE_FRAMEWORK/SERVICES/LWIP/lwip-port-1.3.2
  3. /libraries/WiFi/extras/wifiHD/src/SOFTWARE_FRAMEWORK/SERVICES/LWIP/lwip-1.3.2

Do you know which path represents the open source lwip path?

Akash Ashok
@thehellmaker
Jul 27 2016 12:56
ok looks like it is tools/sdk/lwip. The first one. Thanks @igrr
Akash Ashok
@thehellmaker
Jul 27 2016 13:20
@igrr @me-no-dev Looks like Serial library is not available as a part of lwip. While I'm testing how do i put in log statements? Say i am puttin log statemetns under etharp.c. How do i check the log statements
Me No Dev
@me-no-dev
Jul 27 2016 13:36
ets_printf("blah");
requires Serial.setDebugOutput(true);
Akash Ashok
@thehellmaker
Jul 27 2016 13:37
So set debug output in setup ()
Me No Dev
@me-no-dev
Jul 27 2016 13:37
yes
Akash Ashok
@thehellmaker
Jul 27 2016 13:37
And ets_printf
Got it Thanks a lot
Me No Dev
@me-no-dev
Jul 27 2016 13:38
np :)
Mehrdad K
@mkeyno
Jul 27 2016 16:43
@everslick , @me-no-dev I wrote the sketch base on your guide, I put it in my repo and really appreciated if could spare time and check the result https://github.com/mkeyno/ESP_fast_reading
Th3On3Freeman
@Th3On3Freeman
Jul 27 2016 18:00
Does anyone know if there's a way to put the ESP8266 into a sleep mode?
Helio Machado
@crushedice2000
Jul 27 2016 18:07
@Th3On3Freeman: I never used it. However, ESP.deepSleep(microseconds); should do the trick. After the specified time it will run the sketch again (setup and loop).
Martin Ayotte
@martinayotte
Jul 27 2016 18:08
For ESP.deepSleep(usec);, the WakeUp will work if you added a 470R or 1K between GPIO16 and RES.
Helio Machado
@crushedice2000
Jul 27 2016 18:11
@martinayotte: Right! After googling a bit I also found that.
Th3On3Freeman
@Th3On3Freeman
Jul 27 2016 18:54
Ok that's cool; is there any way to put the ESP8266 in a sleep mode that is indefinite in time?
So if I had a serial connection set up between a teensy and the esp, maybe I could trigger a wakeup?
/are there multiple ESP sleep functions?
Th3On3Freeman
@Th3On3Freeman
Jul 27 2016 20:24
I see there are the following modes:
RF_DEFAULT = 0, //RF_CAL depends on init data from byte 108
RF_CAL = 1, //RF_CAL enabled causes large current drain after wake 170mA
RF_NO_CAL = 2, //RF_CAL disabled, small current drain after wake 75mA
RF_DISABLED = 4 //RF disabled, smallest current drain after wake 15mA
I'm assuming RF_DEFAULT is the case that depends upon the microseconds/usec parameter
However, would RF_CAL or one of the other modes allow the ESP to be awoken by other means?
Martin Ayotte
@martinayotte
Jul 27 2016 20:29
@Th3On3Freeman , infinite time ? ESP.deepSleep(), but you will then have to do an external reset to wake it up.
Th3On3Freeman
@Th3On3Freeman
Jul 27 2016 20:30
Ok, so could I accomplish that over a serial connection?
and would I have to use one of those modes I listed?
or do you mean it would just be the literal command ESP.deepSleep() with no parameters.
?*
Martin Ayotte
@martinayotte
Jul 27 2016 20:30
Nope, using an external source connected on RES, such a GPIO on Teensy
Oup ! ESP.deepSleep(0)
The RF mode is how RF will be initialize at wakeup
Th3On3Freeman
@Th3On3Freeman
Jul 27 2016 20:34
ok thank you