Simple code to start controlling OPTIMOM module and play with some Gstreamer plugins
- add compatibility with TMP451-Q1
- fixed-focus compatibility + temperature sensor (NCT72)
- add multifocus
- correct some gst commands
IMPORTANT: make sure the time clock and date are correct in the Jetson before any compilation
sudo apt update
sudo apt install libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
Recompile the sources:
make
The following Gstreamer plugins are comaptible with this application (not mandatory)
- gst-autofocus: https://github.com/teledyne-e2v/gst-autoexposure
- gst-bacode-reader: https://github.com/teledyne-e2v/gst-barcode-reader
Please following the associated instructions to install them.
In order to have acces to the plugins when terminal is opened, add the following lines at the end of the file: ~/.bashrc
export GST_PLUGIN_PATH=/usr/local/lib/gstreamer-1.0/
export LD_LIBRARY_PATH=/usr/local/lib/
After resrting the terminal, test the plugin installation with:
gst-inspect-1.0 autofocus
gst-inspect-1.0 barcodereader
Open the two applications in separated terminals:
./ModuleControl
./gstCommands
IMPORTANT RULES:
- it is required to have the two applications started at the same time
- the video stream must be started BEFORE controlling image sensor through I2C bus
Shortcut can also be added in the desktop:
- start_gstCommands.desktop
- start_ModuleControl.desktop
VNC remote control can be put in place with: https://developer.nvidia.com/embedded/learn/tutorials/vnc-setup
cd /usr/lib/systemd/user/graphical-session.target.wants
sudo ln -s ../vino-server.service ./.
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino require-encryption false
gsettings set org.gnome.Vino authentication-methods "['vnc']"
gsettings set org.gnome.Vino vnc-password $(echo -n 'teledyne2022'|base64)
sudo reboot
Connect using jetson IP address (not port definition needed), accessible with
ip a