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
yeah... kinda always wandered why
had some issues with case sensitive install in the past
andig
@andig
but the macbook is awesome. pretty little workhorse
Me No Dev
@me-no-dev
sshht @andig :) or fanboys will jump on you
Mehrdad K
@mkeyno
Hi guys , so sorry for any cross discussion again
I made breakout board with ESP12F, after assembly the board , I could upload sketches couple of times ,but some garbage and exception error things come out in my last tries, but now, I can’t upload any sketch to my module whereas easily can upload files in the SPIFF,
I thought it was hardware problem and related to UART resistor divider but as I said I could upload files in any flash size configuration but received following error when I try upload the any sketch
esptool v0.4.8 - (c) 2014 Ch. Klippel <ck@atelier-klippel.de>
    setting board to ck
    setting baudrate from 115200 to 115200
    setting port from COM1 to COM23
    setting address from 0x00000000 to 0x00000000
    espcomm_upload_file
    espcomm_upload_mem
    setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
    flush start
    setting serial port timeouts to 1 ms
    setting serial port timeouts to 1000 ms
    flush complete
    espcomm_send_command: sending command header
    espcomm_send_command: sending command payload
    read 0, requested 1
trying to connect
    flush start
    setting serial port timeouts to 1 ms
    setting serial port timeouts to 1000 ms
    flush complete
    espcomm_send_command: sending command header
    espcomm_send_command: sending command payload
    espcomm_send_command: receiving 2 bytes of data
    espcomm_send_command: receiving 2 bytes of data
    espcomm_send_command: receiving 2 bytes of data
    espcomm_send_command: receiving 2 bytes of data
    espcomm_send_command: receiving 2 bytes of data
    espcomm_send_command: receiving 2 bytes of data
    espcomm_send_command: receiving 2 bytes of data
    espcomm_send_command: receiving 2 bytes of data
Uploading 325376 bytes from to flash at 0x00000000
    erasing flash
    size: 04f700 address: 000000
    first_sector_index: 0
    total_sector_count: 80
    head_sector_count: 16
    adjusted_sector_count: 64
    erase_size: 040000
    espcomm_send_command: sending command header
    espcomm_send_command: sending command payload
    setting serial port timeouts to 15000 ms
    read 0, requested 1
    setting serial port timeouts to 1000 ms
warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_BEGIN) failed
closing bootloader
    flush start
    setting serial port timeouts to 1 ms
    setting serial port timeouts to 1000 ms
    flush complete
error: espcomm_upload_mem failed
did I corrupt my module
Mehrdad K
@mkeyno
@me-no-dev may I have your idea about that
Javier Traid
@jetraid
I don't have much experience with esp yet but sometime the defualt baudrate change when you make a flash, try to test the comunication with the serial monitor and at commands
Martin Ayotte
@martinayotte
@jetraid , during upload firmware to flash, baudrate can almost be any, the internal bootloader is doing baudrate autodetect. Then, running specific firmware, it is up to this firmware to determine required baudrate.
Mehrdad K
@mkeyno
hi @martinayotte , do you have any idea what happened to my module
Martin Ayotte
@martinayotte
@mkeyno , how do you power you ESP ? usually, strange errors like that is related to power supply. Otherwise, I've no idea.
Mehrdad K
@mkeyno
I have no problem with other module with same power source
maybe is related to any disorder in flash addresses , caz it work for couple of first times , then errors come through
according to the error , module has not send designated respond didn't receive command response
but in upload files in SPIFF , it's work find and send back corrected command response
Martin Ayotte
@martinayotte
If other modules work fine, then it is really possible that this particular module has a faulty Flash chip ... :-(
Mehrdad K
@mkeyno
is there any way , for example format or erase to original
Martin Ayotte
@martinayotte
Do you mean erasing the Flash ? yes, using esptool.py from madinventor, it has this option. But I don't think this will help curing a bad Flash chip.
Mehrdad K
@mkeyno
is it possible upload the SPIFF and upload the sketch consume different power
Martin Ayotte
@martinayotte
No, but maybe Flash working fine at specific address and start choking at different one.
Helio Machado
@0x2b3bfa0
Hi! How can I use Wifi STA and Wifi softAP at the same time without blocking the program flow?
Clemens Kirchgatterer
@everslick
@crushedice2000 you can have a look here: https://github.com/everslick/genesys/blob/master/net.cpp#L39-L142
Helio Machado
@0x2b3bfa0
@everslick: I'm getting a crash when using STA and softAP
@igrr: I've seen this string on the ELF of a project that I'm compiling... Maybe the ESP8266Arduino framework has precompiled parts?
/Users/igrokhotkov/e/ESPTools/crosstool-NG/.build/src/gcc-4.8.2/libgcc/config/xtensa/lib1funcs.S
Clemens Kirchgatterer
@everslick
@crushedice2000 can you be more specific? do you have a decoded stacktrace?
Helio Machado
@0x2b3bfa0
@everslick: Yes:
0x40104199: ets_timer_disarm at ?? line ?
0x401044e6: spi_flash_read at ?? line ?
0x40201249: EspClass::flashRead(unsigned int, unsigned int*, unsigned int) at ?? line ?
0x4010676c: printf at ?? line ?
0x40208189: spiffs_phys_rd at ?? line ?
0x402059b0: spiffs_object_find_object_index_header_by_name_v at spiffs_nucleus.c line ?
0x402041b5: check_poison$part$0$constprop$4 at umm_malloc.c line ?
0x402042ba: check_poison_block at umm_malloc.c line ?
0x402043c7: check_poison_all_blocks at umm_malloc.c line ?
0x40204585: calloc at ?? line ?
0x401069bc: pvPortZalloc at ?? line ?
0x4021f441: wifi_station_set_hostname at ?? line ?
0x401044e6: spi_flash_read at ?? line ?
0x4021f529: wifi_softap_set_default_ssid at ?? line ?
0x4021f918: wifi_softap_get_config_default at ?? line ?
0x4021fa73: wifi_softap_set_station_info at ?? line ?
0x4021fb04: wifi_softap_get_station_info at ?? line ?
0x4021fb40: wifi_softap_get_station_info at ?? line ?
0x40205411: SPIFFS_stat at ?? line ?
0x40209d22: ESP8266WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at ?? line ?
0x40209c62: ESP8266WiFiSTAClass::begin(char const*, char const*, int, unsigned char const*, bool) at ?? line ?
0x40203738: SPIFFSImpl::_tryMount() at ?? line ?
0x40207372: spiffs_object_modify at ?? line ?
0x402074f8: spiffs_object_modify at ?? line ?
0x40202a04: pinMode at ?? line ?
0x40209daa: _GLOBAL__sub_I__ZN19ESP8266WiFiSTAClass12_useStaticIpE at ESP8266WiFiSTA.cpp line ?
0x4020abfb: DNSServer::replyWithIP() at ?? line ?
0x402014a8: HardwareSerial::read() at ?? line ?
0x40106974: vPortFree at ?? line ?
0x402285c8: tcp_write at ?? line ?
0x402285b3: tcp_write at ?? line ?
0x4020e9a7: AsyncStaticWebHandler::_getPath(AsyncWebServerRequest*) at ?? line ?
0x40214cfa: __udivmoddi4 at /Users/igrokhotkov/e/ESPTools/crosstool-NG/.build/src/gcc-4.8.2/libgcc/libgcc2.c line 964
:  (inlined by) __umoddi3 at /Users/igrokhotkov/e/ESPTools/crosstool-NG/.build/src/gcc-4.8.2/libgcc/libgcc2.c line 1168
0x402156ed: Stream::findUntil(char const*, unsigned int, char const*, unsigned int) at ?? line ?
0x40214cd0: __umoddi3 at /Users/igrokhotkov/e/ESPTools/crosstool-NG/.build/src/gcc-4.8.2/libgcc/libgcc2.c line 1165
0x40214c94: __fpclassifyd at ?? line ?
0x40201da4: loop_wrapper() at core_esp8266_main.cpp line ?
0x40204890: cont_norm at cont.o line ?
The affected code:
  WiFi.setAutoReconnect(true);
  WiFi.begin("MASKED", "FOR PRIVACY");

  WiFi.hostname("XXXXXXXXXXXXX");
  WiFi.softAPConfig(IPAddress(192, 168, 1, 1),
                    IPAddress(192, 168, 1, 1),
                    IPAddress(255, 255, 255, 0));
  WiFi.softAP(ESSID, PASS, CHANNEL, HIDDEN);
The code that seems to cause the problem (commenting it all works seamlessly):
WiFi.begin("MASKED", "FOR PRIVACY");
geman220
@geman220
Is it possible to sleep the ESP but have it wake up from user input instead of timed intervals? I assume I wouldn't be able to send wifi commands though, so I'd have to attach some sort of sensor to the ESP?
I'm trying to get my ESP to be completely off the grid but I also need it to receive commands on the network. Most applications I see are having the ESP report data back to a server every X minutes. I need to be able to send commands to the ESP over the network.
Martin Ayotte
@martinayotte
@crushedice2000 , I remember that more than a year ago, one of my router had space in the password and ESP wasn't able to connect. I removed the space and it worked. Maybe this still an issue with today's Espressif SDK ...
Michael Miller
@Makuna
@geman220 It sounds like you are looking for a "Wake On Lan" feature, but I don't think WiFi has this support; as it needs to stay in communications with the wifi router to so that it is even connected.
geman220
@geman220
@Makuna Do you have any suggestions on a battery / solar / programmatic combination to allow my Wemos to run indefinitely off grid?
Michael Miller
@Makuna
And thus the timer, you wake, connect to wifi, poll for notifications, go back to sleep.
geman220
@geman220
I've been trying to solve this for at least 4 months and I simply cannot get it to last any meaningful amount of time, let alone "forever". Currently I'm at my longest stretch of just about 48 hours, but it's going to die in the very near future.
The challenges are, I need to replicate this solution several times (10+) and the form factor needs to be relatively small. So I can't afford to get 30W panels for example, not only are they too expensive, but they are too big.
Michael Miller
@Makuna
WiFi is not the lowest power solution for RF communications; there are others are better at power usage; but they all will require you wake and poll.
geman220
@geman220
The problem with wake/poll is that the ESP is then looking to see if there is a command that's been issued at some interval in the past. I need it to be reactive to user input immediately.
Michael Miller
@Makuna
But that means the radio has to be on all the time; which is your biggest power draw of any solution you go with. I am not sure what you want to do is feasible without larger power source.
But again, look at other radio technologies, there maybe one that fits this need.
geman220
@geman220
I'm using a fairly large power source, 10,000mAh not a simple button cell or 10440 for example.
I guess I'll just have to look more into how to charge that battery with solar, I just simply cannot get it to work. I was hoping there was something I could do on the ESP to help lower the power consumption but it doesn't sound like there is. At least without changing radio tech
Michael Miller
@Makuna
I don't understand the 48 hours then, I thought the Esp in idle with wifi was only 50mw, with peaks in the 200mw. How "active" is your subnet? Put them on there own WiFi router that has little network traffic?