I use I2S DMA way to collect data from camera.
Wifi is connecting,according my investigation,when esp32 collects data from camera ,more or less a pixel occured randomly.It lead to data of the line shift.So this line will be wrong.If this issue cann't be avoided,what measures should be taken on the software?
I use I2S DMA way to collect data from camera.More or less a pixel randomly occured when wifi is connecting.
-
- Posts: 9703
- Joined: Thu Nov 26, 2015 4:08 am
Re: I use I2S DMA way to collect data from camera.More or less a pixel randomly occured when wifi is connecting.
My first thought would be: what are the impedances on your lines? WiFi drains a fair amount of power and can spread out a fair bit of EMF. If the lines to your camera are too long, not properly specced or otherwise easily influenced, you can get weirdness like this.
-
- Posts: 126
- Joined: Tue May 17, 2016 8:12 pm
Re: I use I2S DMA way to collect data from camera.More or less a pixel randomly occured when wifi is connecting.
I can almost guarantee you its the DMA controller. Same problem of random bytes being changed in the SPI Driver ONLY when used with DMA controller. It reflects a lot what you describe here.
Sorry.
Somebody has to tell EspressIf of DMA problems which are really "serious" relative to our expectations.
See post on SPI Master Rx in this forum
RSN
Sorry.
Somebody has to tell EspressIf of DMA problems which are really "serious" relative to our expectations.
See post on SPI Master Rx in this forum
RSN
Re: I use I2S DMA way to collect data from camera.More or less a pixel randomly occured when wifi is connecting.
Wiring is very short, and has very good anti-interference measures.We did our best on anti-interference.What I mostly want to know is what the software can do to solve this issue.ESP_Sprite wrote:My first thought would be: what are the impedances on your lines? WiFi drains a fair amount of power and can spread out a fair bit of EMF. If the lines to your camera are too long, not properly specced or otherwise easily influenced, you can get weirdness like this.
- ESP_krzychb
- Posts: 400
- Joined: Sat Oct 01, 2016 9:05 am
- Contact:
Re: I use I2S DMA way to collect data from camera.More or less a pixel randomly occured when wifi is connecting.
I use I2S DMA way to collect data from camera.
Wifi is connecting,according my investigation,when esp32 collects data from camera ,more or less a pixel occured randomly.
Were you able to isolate DMA as the trouble maker?I can almost guarantee you its the DMA controller. Same problem of random bytes being changed in the SPI Driver ONLY when used with DMA controller. It reflects a lot what you describe here.
I would verify if the checksum of the test pattern in ESP memory changes between subsequent retrievals.
This is assuming test pattern generated internally by camera, not a real image visible by sensor, so we have some level of confidence it does not change.
On the image we see flipped line on the test pattern retrieved over Wi-Fi but it is not clear at which stage this happened.
Re: I use I2S DMA way to collect data from camera.More or less a pixel randomly occured when wifi is connecting.
I have tested that camera is OK.I make camere connect to altera.The issue does not happen.krzychb wrote:I use I2S DMA way to collect data from camera.
Wifi is connecting,according my investigation,when esp32 collects data from camera ,more or less a pixel occured randomly.Were you able to isolate DMA as the trouble maker?I can almost guarantee you its the DMA controller. Same problem of random bytes being changed in the SPI Driver ONLY when used with DMA controller. It reflects a lot what you describe here.
I would verify if the checksum of the test pattern in ESP memory changes between subsequent retrievals.
This is assuming test pattern generated internally by camera, not a real image visible by sensor, so we have some level of confidence it does not change.
On the image we see flipped line on the test pattern retrieved over Wi-Fi but it is not clear at which stage this happened.
Who is online
Users browsing this forum: Bing [Bot], Majestic-12 [Bot] and 92 guests