Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
Michael Miller
@Makuna
@igrr does wifi secure support udp packets also?
Ivan Grokhotkov
@igrr
only TLS at the moment. i don't think axTLS supports DTLS
Michael Miller
@Makuna
Ah, ok, you decided to continue with that.
Martin Ayotte
@martinayotte
@igrr and @Makuna, could you please look at the outstanding issue esp8266/Arduino#753 ? Many people complains about crashes with PROGMEM. But the more I dig into the issue, the more my hands/arms are going into a wringer ... :-( But in many after-though, all those crashes are maybe coming form the fact that browsers are doing simultaneous queries to server, but the ESP8266WebServer maybe can't tolerate concurrent requests.
Mario Mikočević
@mozgy
@igrr cannot open linker script file eagle.flash.4m1m.ld: No such file or directory .. is this fixed or should I open new issue ?
d-anders
@d-anders
@martinayotte So sending binary files (images etc) from the filesystem works but not if they are in progmem?
Martin Ayotte
@martinayotte
To be able to send binary using PROGMEM, the PR mentioned above, esp8266/Arduino#753, needs to be merge. But maybe there are still issues with concurrent requests, but at least, with that, I was able to put PNG/JPG inside PROGMEM.
d-anders
@d-anders
ok
is it for compability reasons, or is there any other specific reason for using progmem?
onkelfunny
@onkelfunny
Hello, i use the reset schematic from nodemuc v 1.0 and a ftdi chip to program the module. i can't use the standard ftdi pins because i need the rts pin. is it possible to change the schematic to use the standard pins from the ftdi like the arduino pro mini?
Martin Ayotte
@martinayotte
@d-anders, the PROGMEM is used to place content in Flash without the need to be copied entirely into RAM before usage. That's is why adding send_P() and write_P() allows to send big binaries from Flash directly to network while only using 1460 for packet buffer. Although it won't occurs often, but let imagine that you wish to send a 100KB PNG image, it won't fit in RAM, so you sketch won't even be able to compile, with PROGMEM it will.
Markus
@Links2004
@onkelfunny possible yes and no, full automatic download is not possible, if you use DTR for resetting the ESP you need manually jumper GPIO0 to GND for uploading and open (pullup) for running the application
d-anders
@d-anders
i would have guessed it is achieved automatically by using streamfile but i guess it isnt
onkelfunny
@onkelfunny

@Links2004 i don't need a automatic upload. i found a solution with the schematic from the nodemcu board. if i disconnect the RTS pin from the ftdi... i can flash the module (with a jumper between GPIO0 and GND) and i have a console in arduino.

the question is now: do i need the schematic from the nodemcu board? or is there a easier way to do this?

Bo Peterson
@bopeterson
I have just installed arduino esp8266 board manager on my Mac OSX, but when I try ESP Sketch Data Upload, I get the error SPIFFS Error: mkspiffs not found. Seems like on win you have to install mkspiffs.exe, but what do you do on OSX? What do you need to install and where?
Markus
@Links2004
@onkelfunny with out the jumper no, but you can try connect a RST over a capacitor (some thing like 1u to 20u) to the Reset pin
then the reset for flashing shut go thru it, and the console shut work also
d-anders
@d-anders
are the nodemcu-boards good?
thinking of getting one to use for quick setups
Markus
@Links2004
they have all whats needed for a quick start, only for low power stuff they are bad (the LDO + USB needs to much standby current).
d-anders
@d-anders
yeah
but they run stable off the usb input?
i mean using usb for power?
Markus
@Links2004
yes they have and LDO to generate the 3V3 they dont use the USB chip for power.
d-anders
@d-anders
ok, but they use 5v from the micro usb connector?
Markus
@Links2004
yes
d-anders
@d-anders
good
Markus
@Links2004
the LDO converts the 5V to 3.3V
d-anders
@d-anders
i have a few bare esp-01 and esp-12, but the bare esp-12 isn't optimal for quick tests
yeah
i think my notebook is capable of delivering 500ma to the usb so it should be fine i guess
Markus
@Links2004
yes the ESP runs stable at 250mA
d-anders
@d-anders
the boards look pretty
Markus
@Links2004
for test i mostly use whats called esp8266 testboard
http://4.bp.blogspot.com/-ltG_dy6GNvA/VLo4yAyfpUI/AAAAAAAAAMU/sb1VWUuM9z8/s1600/testboard-layout.jpg
have a LED at eache pin which is really usefull
d-anders
@d-anders
the one that comes with battery-box?
Markus
@Links2004
yes
d-anders
@d-anders
yeah, also has everything needed
Markus
@Links2004
but with the LEDs its not really low power :)
d-anders
@d-anders
doesnt really matter when testing though
is it 4MB?
Markus
@Links2004
it has a ESP12 most of them has 4MB
d-anders
@d-anders
$3.8 vs $5.1 for nodemcu
tough call
Markus
@Links2004
but no USB on them, can be good and not at the same time.
d-anders
@d-anders
yeah, i have a few usb->ttl
only downside is having to use a seperate power adapter
more cables when testing
Markus
@Links2004
you can connect 5V to it :)
d-anders
@d-anders
right, from the usb-->ttl adapter, didnt think of that