These are chat archives for esp8266/Arduino

13th
Dec 2015
Chris Elsworth
@celsworth
Dec 13 2015 00:50
more ESP32s apparently turning up, where is mine :(
Martin Ayotte
@martinayotte
Dec 13 2015 01:51
I'm waiting for my ESP32 too ... :worried:
Tony
@toxuin
Dec 13 2015 03:46
Where are one supposed to get one?.. I'd be glad to check it out.
Chris Elsworth
@celsworth
Dec 13 2015 04:10
beta programme is closed now, can't get one unless they reopen it (or wait for general availability)
Tony
@toxuin
Dec 13 2015 05:10
:(
Sven Eliasson
@comino
Dec 13 2015 11:22
Didnt get ESP32 since now, too. Some people already got one?
Chris Elsworth
@celsworth
Dec 13 2015 11:23
at least two people reported getting theirs, kolban and amica
Sven Eliasson
@comino
Dec 13 2015 11:23
both living usa?
Chris Elsworth
@celsworth
Dec 13 2015 11:23
no clue :)
Sven Eliasson
@comino
Dec 13 2015 11:24
transport china<>usa is quicker than to europe
Perfere to get it on 24th as christmas present anyway :P
Chris Elsworth
@celsworth
Dec 13 2015 11:27
heh I don't think my family would approve if it arrives on the 24th and I ignore them for a week ;)
Sven Eliasson
@comino
Dec 13 2015 11:31
:D
Dmitry Kireev
@kireevco
Dec 13 2015 16:50
Dmitry Kireev
@kireevco
Dec 13 2015 17:11
@iggr, @Links2004 for you specifically ))
Markus
@Links2004
Dec 13 2015 17:16
will test it later.
Dmitry Kireev
@kireevco
Dec 13 2015 17:35
good.
thank you!!
Dmitry Kireev
@kireevco
Dec 13 2015 17:44
does anyone know which gdb source works with esp8266?
Markus
@Links2004
Dec 13 2015 17:49
there is an openocd fork for the ESP but i never test it.
https://github.com/projectgus/openocd
http://www.esp8266.com/viewtopic.php?f=9&t=1871
Dmitry Kireev
@kireevco
Dec 13 2015 17:55
@Links2004 any known binutils that produces xtensa-lx106-elf-gdb?
(that works)
Markus
@Links2004
Dec 13 2015 17:57
never seen one.
Dmitry Kireev
@kireevco
Dec 13 2015 18:00
esp-open-sdk has one
it has xtensa-lx106-elf-gdb
Steve Nelson
@zenmanenergy
Dec 13 2015 18:05
Is there an example out there for downloading a png file, storing the value in SPIFFS then displaying it via the webserver?
Markus
@Links2004
Dec 13 2015 18:05
not as one, example.
Steve Nelson
@zenmanenergy
Dec 13 2015 18:12
how about just downloading and storing a png into spiffs? i didnt see that in the list of examples.
Markus
@Links2004
Dec 13 2015 18:14
you can set the spiffs file stream as destination for http client an it will download.
https://github.com/esp8266/Arduino/blob/master/libraries/ESP8266HTTPClient/examples/StreamHttpClient/StreamHttpClient.ino
I plan to write a class for this but not started yet.
and SPIFFS as src for webserver a example is existing.
Martin Ayotte
@martinayotte
Dec 13 2015 18:16
Isn't the FSBrowser example almost what you need ?
Steve Nelson
@zenmanenergy
Dec 13 2015 18:28
yes, I think those two will do it.thanks
Stavros Korokithakis
@skorokithakis
Dec 13 2015 21:10
hello
i got a few bare ESPs, does anyone know (or have a schematic) of how i need to wire them so i can flash/boot them?
they're 12-E
Endre Karlson
@ekarlso
Dec 13 2015 21:16
@igrr any progress on TLS ?
Martin Ayotte
@martinayotte
Dec 13 2015 21:51
@skorokithakis, there is plenty of docs/posts on the forum about how to connect ESP-12E, there is also Kolban'd book.
Sven Eliasson
@comino
Dec 13 2015 22:05
@igrr Are there somewhere some more words about the WiFiSecure client? Does it use AES? I would try to contribute here if possible
Markus
@Links2004
Dec 13 2015 22:06
WiFiSecure client us axtls,
can be found here: https://github.com/igrr/axtls-8266
currently using SSL_AES128_SHA and SSL_AES256_SHA
Sven Eliasson
@comino
Dec 13 2015 22:13
oh amazing
thx
Sven Eliasson
@comino
Dec 13 2015 22:41
Want to implement client authentification with priv key on esp side.
With ssl_obj_load(_ssl, SSL_OBJ_RSA_KEY, KEY) I can load a RSA priv key and ssl_x509_create( .. ) . Not too familiar with the internal process of axtls, but I assume that should do the job, right?
Stavros Korokithakis
@skorokithakis
Dec 13 2015 22:41
@Links2004, thanks
@martinayotte, kolban's book has ESPs with the mounting board, which AFAICT has three resistors on it already
Sven Eliasson
@comino
Dec 13 2015 22:43
-_- deammm.. I didnt see that
Stavros Korokithakis
@skorokithakis
Dec 13 2015 22:44
by the way, is there any information about the arduino way of putting the ESP in a deep sleep properly?
Markus
@Links2004
Dec 13 2015 22:44
ESP.deepsleep(time) ?
Stavros Korokithakis
@skorokithakis
Dec 13 2015 22:45
is it that easy?
wow
Markus
@Links2004
Dec 13 2015 22:45
and connect GPIO16 to RST or CH_PD
Stavros Korokithakis
@skorokithakis
Dec 13 2015 22:45
thanks
Chris Elsworth
@celsworth
Dec 13 2015 22:46
would appreciate any thoughts on #1211, been butting my head against it for 2 days :/
Stavros Korokithakis
@skorokithakis
Dec 13 2015 22:47
@celsworth, if you don't seem a wdt message, wouldn't that mean that serial has crashed?
Chris Elsworth
@celsworth
Dec 13 2015 22:48
or its just locked up so hard it didn't get time to print one, I dunno
I'm struggling to get any useful info out of it after the crash, maybe gdb will help
it does reboot and then continue
and serial then resumes working, etc
Markus
@Links2004
Dec 13 2015 22:49
@celsworth you overload the tcp when you send messages byte by byte, many overhead here.
Chris Elsworth
@celsworth
Dec 13 2015 22:49
ok, I'll fix that and see if it goes away
buffer say 32 bytes then send that? the problem is its a serial bridge so it needs to be quick, maybe if I send every 50ms
Markus
@Links2004
Dec 13 2015 22:50
group as many as possible for your needs.
this shut help
Chris Elsworth
@celsworth
Dec 13 2015 22:57
okay I set it buffering 500 bytes or 50ms, whichever comes first, and set it going again, its working so far :) ifit doesn't break in 10 minutes then I'll close the issue as that was obivously it :)
thanks @Links2004, legend :)
spoke too soon :(
updated the code in the issue
the SoftwareSerial lib only has a single char read so I have to buffer it myself but the end result is the same
Markus
@Links2004
Dec 13 2015 23:05
you code looking good, does the same happen when you us "Serial" instead of the sw Serail?
Chris Elsworth
@celsworth
Dec 13 2015 23:06
no, I think its some sort of interaction between the interrupts that SoftwareSerial uses, and espconn_sent() in the sdk
Markus
@Links2004
Dec 13 2015 23:07
how many data do you send at 9600 to the ESP?
Chris Elsworth
@celsworth
Dec 13 2015 23:07
about 200 bytes every 5 seconds - not a lot
Markus
@Links2004
Dec 13 2015 23:07
each char will block all interrupts for 1ms at 9600.
around 200ms blocking all interrupts can be very problematic.
Chris Elsworth
@celsworth
Dec 13 2015 23:08
well, the interrupts should get turned on between each char, but I see your point
maybe I need a UART-to-SPI chip for this.. I don't want to tie up the real RX with it, thats for debugging the esp :/
Markus
@Links2004
Dec 13 2015 23:08
yes but if you send 200 char in the row there will not many space between them.
for debugging out you can use Serial1
Chris Elsworth
@celsworth
Dec 13 2015 23:09
yes true, and then programming is OTA anyway :D
okay jsut going to double-check it doesn't happen on real Serial and I may just go with that
a pity, I wonder what use software serial classes on the esp are then.. there's a couple of them, I don't know if others have gotten them to work well
its jsut very critical timing for a relatively long time, the one thing the esp is not very good at :)
Markus
@Links2004
Dec 13 2015 23:15
on higher baudrate the problem is less critical per char, if you put the max data in result will always be the same --> interrupts blocked to long,
the implementation has some basic concept problems. blocking interrupts less is possible but then get unstable on high baudrates.
Chris Elsworth
@celsworth
Dec 13 2015 23:16
real Serial has been working fine for 5 minutes now, no problem
longer than the software serial ever did
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:34
so does ESP.deepsleep() basically turn off the ESP until the RST line is pulsed?
Chris Elsworth
@celsworth
Dec 13 2015 23:34
or until the timer fires, if you use 0 then yes, forever
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:35
doesn't the timer pulse the RST line?
Chris Elsworth
@celsworth
Dec 13 2015 23:35
yes, via GPIO16 :)
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:35
basically i want to make a dash button, so it sounds like I need a button hooked up to the RST line and deepsleep(0)
Chris Elsworth
@celsworth
Dec 13 2015 23:35
but 0 = no timer set
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:35
right right
by the way, maybe someone will find this useful: https://github.com/skorokithakis/esplights
Chris Elsworth
@celsworth
Dec 13 2015 23:38
hey nice :) good range of technologies in there, I like the remote control integration :)
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:40
thanks, it's handy because you can send whatever IR you want over mqtt
theoretically, you could make a very small IR remote that was controlled over wifi
hmm, maybe i should hook four LEDs in a square and make a true universal remote that can work on all directions :P
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:45
has anyone tried to power their ESP from their FTDI programmer? does it work well?
also, which software do you use for designing PCBs?
Chris Elsworth
@celsworth
Dec 13 2015 23:46
that one is easy, Eagle :)
Sven Eliasson
@comino
Dec 13 2015 23:47
Eagle is the best price/value
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:47
i heard that kicad is better than eagle nowadays
Chris Elsworth
@celsworth
Dec 13 2015 23:47
the first time I looked at it, I ran away screaming, but if you sit down with a good mug of favourite drink, you can learn it in an hour or two
beikeland
@beikeland
Dec 13 2015 23:47
@skorokithakis varying success. most of my esp-05 doesn't work powered by ftdi, 50/50 on all the others i've tried.
Sven Eliasson
@comino
Dec 13 2015 23:47
kicad was shit last time I used it - altium is still pretty nice but not that cheap :P
Chris Elsworth
@celsworth
Dec 13 2015 23:47
@comino you mean free? ;)
free is sure good enough for my purposes anyway, not hit the pad limit yet
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:48
@beikeland thanks, i'll try a regulator then
Sven Eliasson
@comino
Dec 13 2015 23:48
free is limited - even pro is cheap compared to altium ;)
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:48
hmm, i was going to start with eagle, but i saw this thread https://news.ycombinator.com/item?id=10676514
how much is altium?
Sven Eliasson
@comino
Dec 13 2015 23:49
wow - looks like there is a good progress on kiCad
I will give it a try
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:49
@comino the commenters there seem to like it a lot
Sven Eliasson
@comino
Dec 13 2015 23:49
too much if your employer doesnt buy it for you ;) or you doo.. you know.. harhar
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:50
i've used both, but i've never designed a pcb, so i couldn't say
@comino haha, yep
Chris Elsworth
@celsworth
Dec 13 2015 23:50
anyone know what the max pwm frequency an esp can do?
Sven Eliasson
@comino
Dec 13 2015 23:50
oh that was also on my research list ^^
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:50
@celsworth 2 usec seemed fine
Chris Elsworth
@celsworth
Dec 13 2015 23:51
that'd be.. 500kHz? I guess that will do :)
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:51
yeah
Chris Elsworth
@celsworth
Dec 13 2015 23:51
going to run it through a lowpass filter to make a DC voltage, 500k will be loads
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:51
i used bit-banging to make the carrier wave for that remote control
if i wanted 26 usec highs, i had to delay for 24
so i'm guessing you can get 500 khz
actually sorry
1 usec
so probably 1 mhz
try it out, though, can't be too hard to write a for loop :P
beikeland
@beikeland
Dec 13 2015 23:52
main downside to Eagle is you only get one sheet for the schematic. Board size and layers limitations hasn't been an issue yet. (unless you try to do panels, but there are other tools to do so). But it does sound like its time to look at KiCad again
Chris Elsworth
@celsworth
Dec 13 2015 23:52
time for scope testing I guess
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:55
@celsworth do you have a logic analyzer?
Chris Elsworth
@celsworth
Dec 13 2015 23:55
only a cheap ripoff.. £15 from aliexpress thing
but yes
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:55
hah, 15 quid? i got mine for $7 :P
Chris Elsworth
@celsworth
Dec 13 2015 23:55
it was still a lot cheaper than a Saelae ;)
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:56
but yeah, i was going to offer to check out the frequency if you didn't have one
i agree
i kinda feel bad though, their logic analyzer software is so good that i want to support them
maybe my next analyzer will be a saleae
Chris Elsworth
@celsworth
Dec 13 2015 23:56
likewise, but they are very expensive :/
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:56
eh, it's less than $100 i think
oh, $109
not prohibitively expensive, but yeah, it's not $7
Chris Elsworth
@celsworth
Dec 13 2015 23:57
well, the 4 isn't.. very good :/
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:57
oh? why not?
Chris Elsworth
@celsworth
Dec 13 2015 23:57
it looks quite limited in speed, very low sample rates?
the 8 is almost 10 times faster
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:57
hm that's true
i'm a novice, so for what i do i only need kilosamples/sec
Chris Elsworth
@celsworth
Dec 13 2015 23:58
and also you get a lot more analog ports on the 8, only 1 on the 4
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:58
i think my cheapo chinese one can do 25 MS/s
yeah :/
Chris Elsworth
@celsworth
Dec 13 2015 23:58
even that 25M/s is faster than the Logic 4 :(
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:58
yeah exactly
so you'd be paying 12 times more for a downgrade
Chris Elsworth
@celsworth
Dec 13 2015 23:59
yep, kinda silly
so if I was going to get any I think it would be the 8.. don't need the Pro
good thing really as by then you're up to $400 :)
Stavros Korokithakis
@skorokithakis
Dec 13 2015 23:59
yep :package:
:P