Dear 6by9,
thank you!
thank you!
I am sorry! This is exactly what we are already doing. In fact, there is no problem with power-on/-off during STREAMON/STREAMOFF. I had a look in the driver again. What I see is a delay introduced for stabilization after the sensor comes out of standby (which is controlled via a register). The problem is not that the sensor is getting powered on/off during STREAMON/STREAMOFF but the standby register is getting set/reset (as well as all other registers, as you mentioned). This maybe could be fixed by moving the standby activation/deactivation also into the probe/remove functions, but as you already implied, such an approach could lead to problems when switching modes/configs. I think I'll have to look into that in more detail.If it's your own sensor driver, then there is also no obligation to power down the sensor at all. Power it up in probe, and down in remove. You'll just burn a bit more power.
Statistics: Posted by marcp — Tue Feb 13, 2024 11:55 am