Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Me No Dev
@me-no-dev
I can't really think of a way to wrap soch thing into something even close to universal
Dmitry Kireev
@kireevco
let me find another one
(that one is just ftdi)
(but also nice)
ah
@me-no-dev
I’ll probably use that one then
it is still under active developmetn
Me No Dev
@me-no-dev
you should know that the UART is the slowest way of communication
Dmitry Kireev
@kireevco
It just sounds that esp+arduino could be more power-saving solution
@me-no-dev what are the options? you would recommend spi probably?
Me No Dev
@me-no-dev
i'm just preaching here :) but sending a webpage over Serial returns me back to the dial-up internet days
Dmitry Kireev
@kireevco
@me-no-dev webpage is on esp flash
(should be)
in my scenario esp is just wifi and a webserver device that works when it is in the «ON» mode...
all other time it is off
(no power from arduino)
Me No Dev
@me-no-dev
I started working on SPI Slave Stream class for both AVR and ESP but not done yet
then you can go 8Mbps
Dmitry Kireev
@kireevco
spi would be great, of course
yeah, SDs are using SPI, I felt your incline :)
@me-no-dev do you think ESP can be used as a remote sleeping sensor device by itself? What’s the wakeup time with Arduino/esp8266? what’s the power consumption? (any estimates would be welcomed))
Me No Dev
@me-no-dev
yes it can, wakeup time is the same as boot time
uses no power when asleep
startup has some options though
so there things varry a bit
Markus
@Links2004
deep sleep need around 10uA
Me No Dev
@me-no-dev
I saw some new functions in 1.4 (have not checked what we run currently) that you can use to stop the WiFi and use verry little power while mentaining operation
Markus
@Links2004
SDK is at 1.3
1.4 make problems hope 1.5 will do better
Me No Dev
@me-no-dev
yeah, I heard
slow loop as well
yeah, wififpm* functions are not in 1.3
#define FPM_SLEEP_MAX_TIME 0xFFFFFFF
wifi_station_disconnect();
wifi_set_opmode(NULL_MODE); // set WiFi mode to null mode
wifi_fpm_set_sleep_type(MODEM_SLEEP_T);
wifi_fpm_open();
wifi_fpm_do_sleep(FPM_SLEEP_MAX_TIME);
......
// wake up to use WiFi again 
wifi_fpm_do_wakeup(); 
wifi_fpm_close(); 
wifi_set_opmode(STATION_MODE); 
wifi_station_connect();
brutzler
@brutzler
just one additional question to the time.ino:
there are two parts of the code. one in setup an one in loop.
Is the time in both parts picked from the ntp.server, or is it only read out from the internal clock?
Markus
@Links2004
the ntp server is called periodically (in background) to keep the internal clock correct,
all time functions use the internal clock.
brutzler
@brutzler
OK, set timezone to "1" for me to work (germany). But I am not sure, that daylight will be automatically?
Markus
@Links2004
I use configTime(1 * 3600, 0, "192.168.1.12", "192.168.0.1"); and it working fin. also Germany :)
brutzler
@brutzler
Using interal NTP?
Markus
@Links2004
yup, they are in sync with the PTB atomic clock.
brutzler
@brutzler
Router? or what device?
Markus
@Links2004
one router with openwrt + RTC one linux server
server is master
brutzler
@brutzler
will have a look, if my router makes ntp...
Markus
@Links2004
a fritzbox have it integrate for example
brutzler
@brutzler
Guess, what I have? ;-)
Markus
@Links2004
yup fritzbox is common in germany
brutzler
@brutzler
Just wanted to see this periodically update. Started wireshark, but I do not see any matching telegrams?