Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Shelby Merrick
@forkineye
@suculent it's an option in the Arduino IDE
Develo
@devyte
lwip1.4 has too many issues, especially with udp. Although lwip2 is experimental (and will be for some time to come), having it as default for now forces user attention and promotes testing. At this time, there has been only one issue with it reporting a crash, and a whole lot of old issues addressed, so it's a lot more positive than negative. I'm not sure that crash is due to lwip2 itself.
@suculent the Arduino IDE was reworked a bit (more to come after 2.4 is out), and you can select which version of lwip you want to build against. This is available in latest git.
Matej Sychra
@suculent
Ok. I prefer lwip2 anyway because my use-case has custom udp protocol.
Shelby Merrick
@forkineye
I was having some very odd issues when testing with lwip2 last night with processing incoming multicast streams so rolled back to the pre-compiled open source lwip1 included. I'll do more testing against lwip2 and see if I can figure out what was going on. Also, noticed the set hostname wasn't coming across with the DHCP request in lwip2. Will investigate further and post issues once I have good data.
Develo
@devyte
Please do as much testing as you can. Be aware that there is an elusive arp bug that has come up in randomly in both lwip versions. It is suspected to be in the espressif link layer code, but so far nobody has been able to conclusively prove it is there and no
... not in lwip itself
Thomas Cooper
@thomascoope

I'm trying to flash my ESP12-E using an FTDI232. I have the following schematic layout: https://www.dropbox.com/s/8032n9hre7bt6dd/FTDI232%20%26%20ESP8266_schem.png?dl=0

When I try to flash the ESP in Arduino I get the following message at 115200 baud:

warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed
warning: espcomm_send_command: wrong direction/command: 0x01 0x03, expected 0x01 0x04
error: espcomm_upload_mem failed

The LED on the ESP8266 flashes 4 times during the upload.

& get the following at 9600baud:

warning: espcomm_send_command: didn't receive command response
warning: espcomm_send_command(FLASH_DOWNLOAD_DATA) failed
warning: espcomm_send_command: didn't receive command response
error: espcomm_upload_mem failed

Both using the NodeMCU reset method.

david gauchard
@d-a-v
About lwIP-v2: it is not supposed to improve UDP (maybe it does). It was TCP flaws in lwIP-v1.4 that initially triggered the work on this. Please file new issues if problems arise with it that do not happen with legacy lwIP-v1.4.
brutzler
@brutzler
Hi, I have a question to SPIFFS. As far as I know its a part of the flash, that is not used for the "normal" ESP program-code.
But can be used for FS. Is there any possibility to gain access to the files in SPIFFS without a matching sketch? e.g. with a third party software, that is reading/writing this part of flash directly from a computer.
Matej Sychra
@suculent
You can use the esptool to not just write but also read flash to your computer. You could also upload a sketch that will list and output files to serial, but that would be a bit more tricky as you don’t want to overwrite spiffs on upload (which Arduino IDE does by default).
phunandcode
@phunandcode
Hey all, I hope I found the right room after being at esp32! I'm a total beginner with IoT and boards like Arduino. I have a Wemos d1 mini retired with a bunch of extras and I have played around with basic functions like lighting up leds on my expansion board etc. I have a small project in my mind but it's hard to find good documentation. Should I install the ESP8266 core for Arduino? Would it make development easier? Am I correct that I can then use arduino code with the board?
Me No Dev
@me-no-dev
yes you can
you are correct :)
phunandcode
@phunandcode
Ok thanks :)! Any good beginner tips for me?
Something that you would have liked to know when you started?
Me No Dev
@me-no-dev
uhmmm :D I am actually a wrong person to ask this :D
go through the documentation in github and check the examples
phunandcode
@phunandcode
Since you're not a dev right? ;)
Me No Dev
@me-no-dev
exactly :D
brutzler
@brutzler

@suculent

...to overwrite spiffs on upload (which Arduino IDE does by default)

You are sure about this? I made opposite experience.
Matej Sychra
@suculent
Might depend on default setting for respective board.
In Arduino IDE there is a plugin to write specific folder to SPIFFS as well as in PlatformIO. It’s just a matter of taking control over it.
Matej Sychra
@suculent
But original request was to read someone elses spiffs, which is entirely possible, unless you overwrite it with own sketch and the rest. Easiest will be the esptool way.IMHO.
phunandcode
@phunandcode
Anyone here that could help me out with my problem: I want to have a predefined led combination on the tm1638 and check if the user has input the same
I have the user input functionality ready, as in user presses a button to turn a certain led on/off
But I dont know how to store a certain led combination as a variable to check against in a loop
brutzler
@brutzler

@suculent

But original request was to read someone elses spiffs....

Oh, that was not my intention. I thought about reading the SPIFFS of an ESP from the computer that is connectet via serial interface.
The plugin of the arduino IDE might be the solution. Will check this later on...
al1fch
@al1fch

Hi
After todays upgrade none of my sketches boots.
ets Jun 8 2016 00:22:57

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:812
load:0x40078000,len:0
load:0x40078000,len:11404
entry 0x40078aa0

Board Wemos Lolin, Arduino IDE 1.8.4, Windows 10
All is OK with previous version running under Ubuntu

Me No Dev
@me-no-dev
wrong room?
come to arduino-esp32 instead
al1fch
@al1fch
I'm on arduino-esp32 with "board WEMOS LOLIN32".... all was OK before upgrade via GIT, done todays one hour ago
Me No Dev
@me-no-dev
yes, but you are in ESP8266 Arduino room ;)
al1fch
@al1fch
Sorry !!!
brutzler
@brutzler
Hi,
does anybody know a way to make a time diagram of stored measured values with a ESP as webserver?
ESP will do the measuring and storing the values (SPIFFS...). And then send a time diagram of this via webserver on request.
Clemens Kirchgatterer
@everslick
@brutzler there are some frameworks for that. Like 'thingsboard' to name one.
Clemens Kirchgatterer
@everslick
thingsboard.io
bobcroft
@bobcroft
@phunandcode To store your LED states you can use bit field's, so a byte can store the status of 8 LED's. Then store the byte of LED states in EEPROM. There are various to set / read the bits such as the bitread, bit set commands or you can use masking to change the bits.
Shelby Merrick
@forkineye
Is there a documented time on how long interrupts can be disabled before the wifi stack goes tits up?
I've seen everywhere from 10us to 10ms mentioned in random posts, but nothing concrete from Espressif
Michael Miller
@Makuna
@forkineye As far as I know it is not documented. My experiments had shown that the smaller it is, the less often the chip resets; but it still reset even with 2us (after running a week with random net traffic). Its all based on net traffic and colliding with the time the interrupts are locked out.
Me No Dev
@me-no-dev
@Makuna have you noticed what causes the reboots? beacon timeout or other network related traffic? 2us seems a bit too little to cause such issues
Michael Miller
@Makuna
It was network related traffic, if the sketch did nothing other than be connected, I never had much of a problem even with higher interrupt disabling times. The research I did is pretty old now (2 years?). This was all the understanding I was trying to do with my NeoPixelbus and bitbang.
Shelby Merrick
@forkineye
It seems to have gotten worse as the SDK versions have progressed over the years as well. Now, I'm noticing severe packet loss when they're disabled for ~700us which didn't happen before.
Much over that and it starts the network crash / watchdog reset cycle
Redferne Bellini
@Redferne
Anyone here?
leaderiop
@leaderiop
hello