These are chat archives for esp8266/Arduino

28th
Jan 2016
Michael Miller
@Makuna
Jan 28 2016 00:10
it shouldn't be case sensitive!
Aditya Tannu
@AdySan
Jan 28 2016 00:32
LOL, GitHub down?
Sven Eliasson
@comino
Jan 28 2016 00:38
GitHub down? panic! :O
Just the page - can still push/pull
Aditya Tannu
@AdySan
Jan 28 2016 00:39
gh-pages if down too
nah, pages is back up now!
Aditya Tannu
@AdySan
Jan 28 2016 00:55
if someone uses boards manager to install 2.0.0.0 or even the latest 2.1.0-rc2, should Arduino IDE 1.6.7 work? Or is it still recommended to use 1.6.5 as on the ReadMe.
VNArmy
@VNArmy
Jan 28 2016 02:36
@me-no-dev : I tested the Arducam with AsyncTCP. It take aprox. 0.6 sec for 5kB JPEG if the ESP is softAP and 0.9 sec if ESP-07 connect through TPLINK AP. It's still slow but maybe that's max rate of ESP-07 I think. But sometimes, I got timeout, then disconnect and when I tried to reconnect, it disconnect again.So may I have to restart ESP-07 in this situation?
Ivan Grokhotkov
@igrr
Jan 28 2016 05:59
@andig yes, it does. however i usually chose to remove it completely just to be sure.
if there is no requirement to be able to use them, that is
brutzler
@brutzler
Jan 28 2016 08:04
@Makuna: maybe on different OS there is a different behaviour regarding case sensitivy?
Me No Dev
@me-no-dev
Jan 28 2016 09:25
@VNArmy sounds a bit slow :) was expecting more speed. Maybe you can read the arducam faster? It's SPI right?
@igrr the Exception Decoder :D is ready
Screen Shot 2016-01-28 at 11.29.34.png
Ivan Grokhotkov
@igrr
Jan 28 2016 09:31
does it try all address-like values on the stack?
Me No Dev
@me-no-dev
Jan 28 2016 09:31
yes
all 40X addresses
Ivan Grokhotkov
@igrr
Jan 28 2016 09:32
i've been working on replacing stack dumps with core dumps
i.e. "core dump" format gdb understands
so that you can load a core dump into gdb
Me No Dev
@me-no-dev
Jan 28 2016 09:33
I imagine would not be a problem either for integration
Ivan Grokhotkov
@igrr
Jan 28 2016 09:33
however the format is not really documented (it's an elf file with some special sections), so i still have some issues
yep, you can just run gdb on that
Me No Dev
@me-no-dev
Jan 28 2016 09:35
will ping you when I up the code. today
andig
@andig
Jan 28 2016 09:45
@me-no-dev really looking forward to your tool. Are you decoding internally or calling addr2line? Will be interesting if its able to find anything on issue 7...
Me No Dev
@me-no-dev
Jan 28 2016 09:46
@andig it's using addr2line :)
and the dump on the image is yours :P
andig
@andig
Jan 28 2016 09:50
really?! wtf.. I'll test!
VNArmy
@VNArmy
Jan 28 2016 10:50
@VNArmy sounds a bit slow :) was expecting more speed. Maybe you can read the arducam faster? It's SPI right?
Yes, it's SPI but I set the SPI 'speed to 4M so I think it's fast enough.
Me No Dev
@me-no-dev
Jan 28 2016 10:57
@VNArmy downloading a 310KB image from SPIFFS over the AsyncWebServer takes currently 550ms
that is why I was hoping for more :)
at 4MHz SPI, it should take 10-15ms to read the image and it will fit in 4 packets
so total of 30 maybe was what I was expecting as result
VNArmy
@VNArmy
Jan 28 2016 11:39

@me-no-dev I use this code:

 if (client && client->connected()) {
    int total_time = 0;
    total_time = millis();
    while (!client->canSend()) yield();
    total_time = millis() - total_time;
    os_printf("x:%u\n", len);
    os_printf("tt:%u\n", total_time);
    total_time = millis();
    client->write((const char *)sbuf, len);
    total_time = millis() - total_time;
    os_printf("tt:%u\n", total_time);
    return 1;
  } else {
    os_printf("m:%u\n", len);
    return 0;
  }

The canSend() command take about 200ms for each packet. Am I doing smth wrong?
Or what ESP are you using for test. I'm using ESP-07.

Me No Dev
@me-no-dev
Jan 28 2016 11:41
ESP does not matter
use client->space() to get the max payload you can write and write that much
or less
how much is the len?
another way to speed it up is to attach to the onAck event and send the next chunk there again with up to space() len
that is the fastest way to write to the client
VNArmy
@VNArmy
Jan 28 2016 11:46
The len is 1460 each.
Sry I forgot to tell.
Me No Dev
@me-no-dev
Jan 28 2016 11:47
space is not always 1460 or more
try the onAck method
send the first packet from the loop then onAck send the rest of the packets
this is Async ;)
VNArmy
@VNArmy
Jan 28 2016 11:48
Yep, I'll try this.

And what does the "time" parameter in onAck mean?
Because I got these on debug terminal

a:1460:230

These seem take 230ms for ack.

Me No Dev
@me-no-dev
Jan 28 2016 11:53
the time is exactly the time since you sent the packet
whatever you are sending it to is not acking fast
on my local network that number is usually 3-10
VNArmy
@VNArmy
Jan 28 2016 11:55
I'm using the ESP as soft AP.
Me No Dev
@me-no-dev
Jan 28 2016 11:56
and something connects to it, then uses a socket to pull the image?
have you tested in STA mode?
VNArmy
@VNArmy
Jan 28 2016 11:57
Yes, it's the same, about 200ms for each packet of 1460.
Me No Dev
@me-no-dev
Jan 28 2016 11:57
what is the receiving end?
VNArmy
@VNArmy
Jan 28 2016 11:58
I ended each image with 2 bytes FFD9
Me No Dev
@me-no-dev
Jan 28 2016 11:59
no n I mean what is the client? is it a computer?
what are you doing there while receiving the image?
maybe something is slow there
VNArmy
@VNArmy
Jan 28 2016 11:59
yes, a computer on Windows 7 64bit
Me No Dev
@me-no-dev
Jan 28 2016 11:59
200ms is lots for local network ack
VNArmy
@VNArmy
Jan 28 2016 12:01
Hmm, maybe there's a problem with my PC
I use another PC Ubuntu 32bit
I take only few miliseconds :(
Me No Dev
@me-no-dev
Jan 28 2016 12:02
there was that delayed ack thing for windows
but no clue if connected
VNArmy
@VNArmy
Jan 28 2016 12:05
Ohh, I use other Windows PC, it also take 200ms for ack.
BTW, thanks for your help. :)
from XP to 8
there is a way to disable that in registry
see what google can help you with
andig
@andig
Jan 28 2016 17:43
Has anyone seen writing file to SPIFFS and finding file with size=0 on restart?
d-anders
@d-anders
Jan 28 2016 17:43
you dont wait for an ack after every packet, right?
Hassanbenlebsir
@Hassanbenlebsir
Jan 28 2016 19:56
6109JkQFvoL._SL1001_.jpg
hi guys i orderd this board but i dont have a tll usb to connect it to my computer i have instead an arduino i wnt how can i program it from my arduino
Michael Miller
@Makuna
Jan 28 2016 20:04
@brutzler C/C++ standard is that includes are not case sensitive. I believe that the file systems the case sensitivity is varied.
Michael Miller
@Makuna
Jan 28 2016 21:12
@igrr I noticed that in the case of delay(0), it ends up just calling schedule() and then yield(). Are both really needed? If I was replacing some code that previously called delay(0) but I am expecting the "loop" it is in to exit soon (due to some other async state), is calling yield() good enough?
Tony Kambourakis
@tonykambo
Jan 28 2016 21:30
Hi, should the NodeMCU DevKit (v1 - Amica) only be powered by the VIN with 5V or is it safe to only power it via one of the 3V3 pins?
Aditya Tannu
@AdySan
Jan 28 2016 22:00
Looks like a wanna be ESP8266: http://nl6621.net/
Does being an ARM core make it any simpler to make an Arduino port for such a platform?
Markus
@Links2004
Jan 28 2016 22:03
at least the cortex core is well documented and know
and there already ports for Arduino and cortex like for STM32
gonsays
@gonsays
Jan 28 2016 22:05
@Links2004 Hello! How are you? :smile:
I've been trying to link ESP8266 and RFM69 (using the MCU of ESP to control the RF module) and I've found this https://github.com/someburner/esp-rfm69/blob/master/doc/screen1.jpg
Is it possible to do it somehow using Arduino IDE? Instead of the Espressif SDK
Markus
@Links2004
Jan 28 2016 22:05
so many pins and what do they make 6pins .....
gonsays
@gonsays
Jan 28 2016 22:06
ops, wrong image xD but if you on the link is the right image :smile:
Markus
@Links2004
Jan 28 2016 22:07
@gonsays the RFM69 for arduino: https://github.com/LowPowerLab/RFM69
gonsays
@gonsays
Jan 28 2016 22:08
@Links2004 yes, that git (https://github.com/someburner/esp-rfm69) uses it, but it also has some functions so that rfm69 can communicate with esp
Aditya Tannu
@AdySan
Jan 28 2016 22:09
@Links2004 there's also an ESP-12E like version with more GPIOs
gonsays
@gonsays
Jan 28 2016 22:09
it is done with the espressif sdk, so I was wondering if somehow I can use certain files on the git, programming it on Arduino IDE (here is an example of a code: https://github.com/someburner/esp-rfm69/blob/master/doc/SendTest.ino)
Markus
@Links2004
Jan 28 2016 22:09
the lib uses the normal SPI API that we have already for ESP
https://github.com/LowPowerLab/RFM69/blob/master/RFM69.cpp#L92
gonsays
@gonsays
Jan 28 2016 22:10
oh, ok
remove the lowpower stuff, the rests looks good
gonsays
@gonsays
Jan 28 2016 22:11
oh nice!
if I connect the ESP to the RFM with that code do you think the ESP will control the RFM?
Markus
@Links2004
Jan 28 2016 22:12
yes see no reason why in not work, the ESP work with NRF24 why not with RFM69 ;)
gonsays
@gonsays
Jan 28 2016 22:13
really?
I have a NRF24 here?
I have NRF24 here, is there any code example on arduino regarding it?
Markus
@Links2004
Jan 28 2016 22:13
yes
gonsays
@gonsays
Jan 28 2016 22:13
I've found more stuff regarding rfm69
Markus
@Links2004
Jan 28 2016 22:13
have used it for a mini quad control
gonsays
@gonsays
Jan 28 2016 22:13
really? :o wowo
you are giving me good hopes to solve it!! :D
do you have any code example on hand for ESP+NRF24(as a receiver)
without the use of ATMEGA, that's my main problem =S
Markus
@Links2004
Jan 28 2016 22:15
not sure which one i have used same name...
gonsays
@gonsays
Jan 28 2016 22:16
ohh
do you have that mini quad control code on github?
gonsays
@gonsays
Jan 28 2016 22:18
oh thanks! but there is no reference to esp on that right?
Markus
@Links2004
Jan 28 2016 22:19
yes only the ppm stuff in the example will not work on the ESP (no AVR timer)
gonsays
@gonsays
Jan 28 2016 22:19
oh, ok! thank you so much! I'll check it out
on this example: https://github.com/LowPowerLab/RFM69/blob/master/Examples/TxRxBlinky/TxRxBlinky.ino, should I only connect TX->RX and RX-TX (ESP->RF) or should I do more wiring?
Martin Ayotte
@martinayotte
Jan 28 2016 22:27
@gonsays , the RFM69 is hooked on SPI, the Serial is to your USB-Serial for debugging from PC
gonsays
@gonsays
Jan 28 2016 22:31
oh, ok thank you! I'll check it
Martin Ayotte
@martinayotte
Jan 28 2016 22:39
About NL6621 mentioned above, quick looks make me think that it won't be a success story, the price is high, the chip itself exist since almost 4 years already.
Aditya Tannu
@AdySan
Jan 28 2016 22:42
yeah, thats what i thought, probably didn't get traction
Martin Ayotte
@martinayotte
Jan 28 2016 22:48
More NL6621 searches : when I said 4 years, it is because we can find images of the chip with 201242 manufacturing date, but it been officially in production in 2014. So they have missed the boat ...
Aditya Tannu
@AdySan
Jan 28 2016 22:48
looks like they hired a marketing guy, today..
for English marketing outside china i guess
anyway, off topic for this channel, just thought it was interesting competition to the ESP
For onboarding ESP8266 based devices, other than @tzapu 's WifiManager are there any other solutions. Preferably something that doesn't need to connect to the ESP as a AP.
Stavros Korokithakis
@skorokithakis
Jan 28 2016 23:10
@tzapu damn, that's pretty small! go me :P
Michael Miller
@Makuna
Jan 28 2016 23:11
@AdySan The lack of documentation for the esp is why over a year after it was discovered we were still seeing things not working well. Not saying the little guy you pointed us to won't have issues, but the ESP sdk release have had some nasty little problems appear/break/fixed.
Being cheap drove it to be popular, cheap and arm might just drive its replacement.
Me No Dev
@me-no-dev
Jan 28 2016 23:16
@Links2004 what issues are you having with ppm on ESP? I have it running in both directions