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

Request: Support for ESP32 SPI (Slave) WiFi / Bluetooth #25

Open
ghost opened this issue Feb 13, 2024 · 5 comments
Open

Request: Support for ESP32 SPI (Slave) WiFi / Bluetooth #25

ghost opened this issue Feb 13, 2024 · 5 comments

Comments

@ghost
Copy link

ghost commented Feb 13, 2024

Is it possible to add / create a plugin that allows the use of an ESP32 Module (in Slave mode) to add Wi-Fi / Bluetooth functionality via the SPI port?
Regards
George

@terjeio
Copy link
Contributor

terjeio commented Feb 13, 2024

Yes, it can be done.
The networking plugin has support for some WizNet ethernet modules already, which relies upon driver specific SPI interface implementations on top of the lowest level SPI code. So something similar has to be added for a new protocol. Bluetooth has to be added to such a stack, I assume for virtual serial port(s).
If the SPI protocol for communicating with the ESP32 has to be defined and implemented then that will add quite a bit to the task.

@ghost
Copy link
Author

ghost commented Feb 24, 2024 via email

@terjeio
Copy link
Contributor

terjeio commented Feb 24, 2024

I am seeing if the guys at CNC3D can make sense of this

For what purposes, serial over TCP? Or a full TCP/IP stack?
If they have implemented a lwip low-level driver like the WizNet one then with luck the current networking plugin can be used. If not and a full TCP/IP stack with protocol support on top is required then that will be a major undertaking.

FYI the Bluetooth plugin uses AT commands over UART to establish a serial connection, this could likely be adapted for telnet over UART fairly easily.

@ghost
Copy link
Author

ghost commented Feb 25, 2024

I am hoping they can incorporate the Espressif firmware onto an ESP32 module so it can be used as a slave device for other MCU's (such as the STM32 platform). I expect it will be full TCP/IP but I am really not sure.
I am hoping that you can reuse as much code / plugins you already have to simplify this as much as possible (similar communications method as the Networking Plugin)

Cheers
George

@terjeio
Copy link
Contributor

terjeio commented Feb 28, 2024

I'll put this on my longer term todo list since I need a break from intensive grblHAL development.
If someone else want to give it a shot before I do then go for it.

Note that a WizNet module might be a better choice - if there is a lwip low-level driver available for it.

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

1 participant