Welcome new user! You can search existing questions and answers without registering, but please register to post new questions and receive answers. Note that due to large amounts of spam attempts, your first three posts will be manually moderated, so please be patient.
Because of un-manageable amounts of spam despite our use of CAPTCHAs, email authorization, and other tools, we have discontinued this forum (see the 700k+ registered users with validated email addresses at right?). Please email us any questions or post bug reports and feature requests on GitHub at https://github.com/jevois -- The content below remains available for future reference.

Is there an existing module for low power consumption?

0 votes

Hi,

I'm building a battery powered system to recognize objects with TensorFlow. TensorFlow should be actice temporarly therefor I've wrote two scripts. One to start TensorFlow, set the CPU clock rate to max and activate UART messages of recognized objects.

setpar cpumax 1344
setmapping2 YUYV 1280 1024 7.0 JeVois TensorFlowEasy  
setpar serout USB
setpar serstyle Normal
streamon

This script works fine.
Now I want to set the system to low energy mode. I reduce the CPU clock rate to 120 MHz and want to deactivate TensorFlow. How can I stop a running module? Is there an existing module for low power consumption?

Thanks four your help!

asked Jan 22, 2019 in Programmer Questions by dag (150 points)

1 Answer

0 votes

I think you could write one in Python. You can create it in the inventor as done here:

http://jevois.org/tutorials/ProgrammerInvHello.html

Then add a function processNoUSB() which will allow your module to run headless, and in there just do nothing. 

       ## Process function with no USB output
       def processNoUSB(self, inframe):
            # nothing

See here for details: http://jevois.org/doc/ModulePythonTutorial.html

now you can try things like

setmapping2 BAYER 88 72 1.0 You YourModule

Alternatively, what is wrong with just issuing a streamoff and keeping whatever module is already loaded? That will idle the camera sensor and it might give you the lowest power usage, but you can compare with the above to see which one is better.

answered Jan 23, 2019 by JeVois (46,580 points)
...