UART is async between TX and RX, where SPI is not and master always makes transmission.
How does ESP notify user about new data to read via SPI?
How do we know how many bytes is ready to be read from ESP?
These are important facts no-where explained.
Saying "SPI is possible too" is not enough because SPI works totally other way than UART.
I hope I get my answers.
Postby pratik » Wed Nov 02, 2016 1:04 pm
Officially, there is the SDIO firmware available with the latest nonOS SDK. An SDIO host controller would typically support that directly. You may see the documentation soon though.
As for SPI based communication, you need to implement a mechanism to interrupt the host if ESP8266 is used as SPI slave. Or you may read the status frequently using slave commands. There is no official release for this at this time, probably because that kind of setup is not very practical. I mean... if your host MCU has 512 bytes RAM, having SPI or UART makes no practical difference in most cases. So right now that is a possibility left out for developers who have such highly specific needs.
As with custom AT firmware, you may even combine SPI and UART and use SPI only for block transfers. Endless possibilities! But then it is all application specific.
When working with SDIO, I'm sure you need that capability of interrupt too, because host MCU is your master.
Anyway, if you will publish SPI based AT command communication (or not AT, maybe something else) with official software, that would be great.
Postby pratik » Thu Nov 03, 2016 12:49 pm
By the way, I might create SPI based AT firmware as a personal project if it seems to be worth the effort (will take a week's worth of work).
By the way, SDIO specs include an interrupt mechanism.
Postby pratik » Tue Dec 27, 2016 10:47 pm
You may post on the Free Market section of the forum regarding this and someone will surely help you out! Using SDKs is better than porting the AT firmware itself. Freelancers are the way to go for this.
Who is online
Users browsing this forum: No registered users and 3 guests
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!