Page 1 of 1

SPI Master Communication with SPI Slave(TW8035 IR Camera) have problem.

Posted: Thu Jun 27, 2019 4:10 pm
by IAMLIUBO
Hi everyone:
In the few days,I working onthe SPI commuication with ESP32.But I have a problem.I refer to the manual to send it a test package,but my SPI Slave device(TW8035 IR Camera) didn't response any data.I have no ideas with this problem.


Image
Image
Image

One of the things I don't quite understand is DUMMY data in the third picture.
This dummy data is similar with the Fourth picture dummy_bits?


Image

The test protocol package like the below picture.

Image

But I can't upload the code right now,it's not on this PC.
Can someone give me some advice?



Thanks!
IAMLIUBO

Re: SPI Master Communication with SPI Slave(TW8035 IR Camera) have problem.

Posted: Sat Jun 29, 2019 2:33 am
by ESP_Sprite
You probably can't use the 'dummy bits' feature here, as the 'command' is more than the ESP32 can send as a dedicated command. Suggest you just send 17 bytes of data as a normal data payload, with the first 9 containing the command.

Re: SPI Master Communication with SPI Slave(TW8035 IR Camera) have problem.

Posted: Sat Jun 29, 2019 2:14 pm
by IAMLIUBO
ESP_Sprite wrote:
Sat Jun 29, 2019 2:33 am
You probably can't use the 'dummy bits' feature here, as the 'command' is more than the ESP32 can send as a dedicated command. Suggest you just send 17 bytes of data as a normal data payload, with the first 9 containing the command.
Thanks for reply.I open an issues at the Github.The engineer of espressif help me for this problem right now.

https://github.com/espressif/esp-idf/issues/3699

Thanks!
IAMLIUBO