You are reading a single comment by @dave_irvine and its replies. Click here to read the full conversation.
  • I'll try and work up a minimum breaking example tomorrow.

    Can you think of any more tips for getting the maximum rates out of the wifi? At the moment I've pushed everything about as far as I think it'll go and I'm getting 16KB in 2.5 seconds, so about 6.4kBps. I must admit I was hoping for something a bit more in the mBps range (although perhaps thats a little over optimistic)... what is likely to be the bottleneck here, the ESP8266 or the Espruino itself?

    I've found a thread or two to do with ESP8266 speed, https://github.com/esp8266/Arduino/issues/1853, http://www.esp8266.com/viewtopic.php?f=5&t=245 Espressif quote a slightly higher rate http://bbs.espressif.com/viewtopic.php?t=2187

    If I watch the AT debug data, I see 64byte packets being sent more often than not. Is this something I can control?

    ["AT+CIPSEND=1,131\r\n"
    ] "\r\nOK\r\n> " <--- "\r\nOK\r\n> "
    ] "\r\nRecv 131 bytes\r\n" <--- "\r\nRecv 131 bytes\r\n"
    ] "\r\nSEND OK\r\n" <--- "\r\nSEND OK\r\n"
    ["AT+CIPSEND=1,64\r\n"
    ] "\r\nOK\r\n> " <--- "\r\nOK\r\n> "
    ] "\r\nRecv 64 bytes\r\n\r\nSEND OK\r\n" <--- "\r\nRecv 64 bytes\r\n\r\nSEND OK\r\n"
    ["AT+CIPSEND=1,64\r\n"
    ] "\r\nOK\r\n> " <--- "\r\nOK\r\n> "
    ] "\r\nRecv 64 bytes\r\n" <--- "\r\nRecv 64 bytes\r\n"
    ] "\r\nSEND OK\r\n" <--- "\r\nSEND OK\r\n"
    ["AT+CIPSEND=1,64\r\n"
    ] "\r\nOK\r\n> " <--- "\r\nOK\r\n> "

    According to the docs for AT+CIPSEND I think it will take up to 2048, so 64 is a bit tiny! http://www.ctr-electronics.com/downloads/pdf/4A-ESP8266__AT_Instruction_Set__EN_v0.40.pdf

About

Avatar for dave_irvine @dave_irvine started