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

IAMLIUBO
Posts: 5
Joined: Tue May 07, 2019 7:01 am

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

Postby IAMLIUBO » Thu Jun 27, 2019 4:10 pm

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

ESP_Sprite
Posts: 9766
Joined: Thu Nov 26, 2015 4:08 am

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

Postby ESP_Sprite » 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.

IAMLIUBO
Posts: 5
Joined: Tue May 07, 2019 7:01 am

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

Postby IAMLIUBO » Sat Jun 29, 2019 2:14 pm

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

Who is online

Users browsing this forum: No registered users and 148 guests