Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SPI instead of UART #379

Closed
yldzmuhammed opened this issue Mar 28, 2020 · 9 comments
Closed

SPI instead of UART #379

yldzmuhammed opened this issue Mar 28, 2020 · 9 comments

Comments

@yldzmuhammed
Copy link

Hello everyone,

I used so many project esp32 and its great. Thanks all of you guys for this great effort.

Now i wonder if i can use esp32 at with some high speed bus like spi instead of uart.

In my project, i am getting raw camera data and i am processing it with 200mhz mcu. And i want to stream it with wifi. Maybe video server or somethink else. And also, i need to use ble on the esp32.

What should i do to get it done?

Is it possible to stream video signal from uart and use ble? Or should/can i change the bus to spi instead of uart?

@xcguang
Copy link
Collaborator

xcguang commented Mar 29, 2020

I think, maybe the SDIO is a better way

@yldzmuhammed
Copy link
Author

@xcguang thanks for answer. Could you give me more explanation?

Is there any example for that? Or ready to use firmware/hex?

@xcguang
Copy link
Collaborator

xcguang commented Mar 29, 2020

You can select SDIO or SPI in Component config > AT > Enable AT > communicate method for AT command. And there is a host demo for ESP32 SDIO AT examples/at_sdio_host, maybe it is helpful to you

@yldzmuhammed
Copy link
Author

I checked but not clear for now. I will deeply look at it. Thank you.

@yldzmuhammed
Copy link
Author

yldzmuhammed commented Mar 30, 2020

hi again.

I looked it up. But somethings not clear to me.

If i follow your steps, can i access esp32 with spi from my spi master mcu?

For example we can send AT+CWJAP="mySSID","mypassword"#013#010 command via uart.

How can i do the same job over spi? Is it same, should i send same command from spi?

@xcguang
Copy link
Collaborator

xcguang commented Mar 30, 2020

@ESP-Coco Please give some suggestion.

@ESP-Coco
Copy link
Contributor

@yldzmuhammed Hi, you are right. Just send the same command on the upper layer, and the system will be packaged as SDIO command and sent through SPI. you can refer to this document : https://github.com/espressif/esp-at/tree/master/examples/at_sdspi_host ,

@yldzmuhammed
Copy link
Author

@ESP-Coco thanks.

In that case, esp32 will be slave an my mcu (whatever i use) will be master so that i can send at commands to the esp32. Correct?

If yes, which pin of the esp32 should i use? I am a little confused..

@ESP-Coco
Copy link
Contributor

@yldzmuhammed You are right, ESP32 will be SDIO slave, the pins ESP32 uses are shown in the ESP32 datasheet.
image
In ESP32's development release, these pins will be labeled D0, D1, CMD and so on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants