These are chat archives for esp8266/Arduino

8th
Nov 2016
Michael Miller
@Makuna
Nov 08 2016 07:23
I was needing an extra serial port for a module connected to my esp8266, the software serial library looks flawed though (requiring disabling interrupts for too long of a period).
Has anyone successfully used this library with active WiFi use? What baud rate?
Me No Dev
@me-no-dev
Nov 08 2016 09:16
What baud do you need? Do you use the timers for anything?
I have some interrupt based soft serial code that works fine up to 230400
do you need only TX or RX or both?
Michael Miller
@Makuna
Nov 08 2016 09:17
both
it uses a timer for transmit?
Me No Dev
@me-no-dev
Nov 08 2016 09:18
yes
for RX and TX I use both timers for uninterrupted TX/RX
gpio interupt for start and so on
Michael Miller
@Makuna
Nov 08 2016 09:18
do you share the library on GitHub?
Me No Dev
@me-no-dev
Nov 08 2016 09:19
no, I had it as PR long time ago and never put it up
could be maybe optimized a bit but it will be a good start
Michael Miller
@Makuna
Nov 08 2016 09:20
I don't need high speed, the problem with the software serial is that the slower the speed, the worse it violates the time inside a noInterrupts/interrupt sandwhich
Steve Nelson
@zenmanenergy
Nov 08 2016 12:33
Has anyone made an example of downloading a .zip file and unzipping all of the files into SPIFFS?
Victor Tseng
@Palatis
Nov 08 2016 21:41
unzipping would be the difficult part
can you use other format? better streamable, so you don't have to save the file somewhere before you can unzip it.
Martin Ayotte
@martinayotte
Nov 08 2016 22:27
Probably uncompress TAR would be simple
Steve Nelson
@zenmanenergy
Nov 08 2016 22:54
tar format is fine. I don't really care what compression format it is. I'm not that familiar with streaming, but i'm open to it. i'm just curious if i need to research this from scratch or if someone has already done it
Martin Ayotte
@martinayotte
Nov 08 2016 22:57
I've not done it, but before answered, I've simply look at TAR format, it seems easy : file name + descriptor, then the file, then next file name + descriptor, all with 512 bytes chunks
Simply try it out with small files and look at the TAR using "hexdump -C"
This will help for the descriptor : http://www.fileformat.info/format/tar/corion.htm
Victor Tseng
@Palatis
Nov 08 2016 23:33
most of compress library use too much ram and you'll have difficulties running it on esp8266.
zip and gz should be fine
bz2 and xz probably out.
tar is good for streaming, you just read it chunk by chunk from a web source
don't have to download the full tarball to the spiffs before you can untar it.
Martin Ayotte
@martinayotte
Nov 08 2016 23:50
Of course, uncompressed tarball can be handled on the fly and files stores directly into SPIFFS.
@me-no-dev , I've received my Wemos D1 Mini Pro 16MB, can you elaborate on the status of 16MB esp8266/Arduino#2351
Steve Nelson
@zenmanenergy
Nov 08 2016 23:54
martin that sounds ideal
Angus Gratton
@projectgus
Nov 08 2016 23:55
you might want to look into miniz https://code.google.com/archive/p/miniz/