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.
Welcome to JeVois Tech Zone, where you can ask questions and receive answers from other members of the community.

Payton program update

0 votes
i have query about Python . when we update any line as it is scripting language .

then why we need to restart jevois camera every time we change a simple line or parameter value .

because with that i have to close Live video capture,reconnect PuTTY again and also need to close python editor as windows complains about eject that file is in use.

This is simple difficult . DO you have any other simple mechanisam with which in live mode it should work without restart .
asked Jan 23, 2018 in Programmer Questions by dpat123 (300 points)

1 Answer

0 votes
Yes, this comes from the fact that we are using the mass_storage way of exporting the microSD card over USB, which does not allow simultaneous access by the host and the camera CPU. The MTP way of sharing the microSD would be better but we cannot use it due to hardware limitations (number of USB endpoints).

I agree with you, python is quite tedious because it does not have a compiler to check for simple mistakes before you run your code just to discover a typo. Usually, I develop my code in "host" mode first, and, once it works, I copy it to the camera. The workflow is a bit faster:

- get the jevois-sdk-dev Ubuntu package installed on your machine (or a virtualbox)

- in jevois, add a videomapping for your new module in ~/jevois/Config/videomappings.cfg and ./rebuild-host.sh

- in jevoisbase, or your custom module, do a ./rebuild-host.sh, then cd hbuild/

- open an editor and edit your python file

- when you are done, save, and then, in the terminal that you had open in hbuild/, just type "make && sudo make install" (once you have typed it once, next time you can just use the up arrow to run it again)

- then jevois-daemon --videomapping=XXX where XXX is the mapping number of your module. When you are done testing, issue a "quit" to jevois-daemon.

- Then loop: edit again (editor remains open the whole time), save, up arrow twice to make again, up arrow twice to run jevois-daemon again.

Once it works on host, transfer to microSD and it should work in the camera too.
answered Jan 23, 2018 by JeVois (46,580 points)
thanks that seems ok. i will try the same
CMAKE problem