Bidirectional SPI - Man in the Middle
Posted: Sun Mar 03, 2024 8:29 pm
I want to make my standing desk accessible via WiFi. I analysed the signal, which I found out was Bidirectional SPI. Usually SPI is transmitted on two wires. Bidirectional SPI is a mode, where a single wire is used to transmit and receive data.
I have attached a picture of how I think of the connections.
The motor has an idle-mode that it enters if no buttons are pressed for a few seconds. In idle mode the clock-signal is slowed down by a factor of 1000. As far as I understood, this can be realized by setting values in the SPI clock divider register on some microcontrollers (e.g. RP2040).
So in summary, I need esp-idf to have the following features:
I have attached a picture of how I think of the connections.
The motor has an idle-mode that it enters if no buttons are pressed for a few seconds. In idle mode the clock-signal is slowed down by a factor of 1000. As far as I understood, this can be realized by setting values in the SPI clock divider register on some microcontrollers (e.g. RP2040).
So in summary, I need esp-idf to have the following features:
- Bidirectional SPI mode
- Master- and slave-modes for SPI
- SPI clock division (or other mechanism)