Skip to content

Simple code to start controlling OPTIMOM module and play with some Gstreamer plugins

License

Notifications You must be signed in to change notification settings

teledyne-e2v/ModuleControl

Repository files navigation

ModuleControl

Simple code to start controlling OPTIMOM module and play with some Gstreamer plugins

Release Notes

  • add compatibility with TMP451-Q1
  • fixed-focus compatibility + temperature sensor (NCT72)
  • add multifocus
  • correct some gst commands

Compilation

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

Gstreamer plugins

The following Gstreamer plugins are comaptible with this application (not mandatory)

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

Application manual

Open the two applications in separated terminals:

terminal 1: control module I2C bus

./ModuleControl

terminal 2: control GSTREAMER vieo stream I2C bus

./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

Additionnal tips:

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

About

Simple code to start controlling OPTIMOM module and play with some Gstreamer plugins

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages