SCAILX-LVDS-2-MIPI zoom-block interface - Software

SCAILX-LVDS-2-MIPI zoom-block interface - Software

The SCAILX-LVDS-2-MIPI zoom-block interface has a videology provided kernel driver, which is autoloaded upon detection.

The Driver supports no V4L2 settings, as the camera controls for the zoomblocks are configured via VISCA interface.

The SCAILX-LVDS-2-MIPI includes a I2C to serial converter to facilitate VISCA communication. From a V4L2 perspective, the driver reports only support for the currently detected resolution and framerate coming from the zoomblock.

Python Helper functions (as of SCAiLX SW release 0.10.3)

The driver includes the following python applications:

root@scailx-ai:~# vdlg-lvds- vdlg-lvds-getres vdlg-lvds-setres vdlg-lvds-visca

vdlg-lvds-getres:

print the resolution and frame rate zoom-block is outputting.

root@scailx-ai:~# vdlg-lvds-getres -d /dev/links/lvds2mipi_1 1920 x 1080 @ 30.1

vdlg-lvds-setres:

send visca commands to set resolution.

Note that only Videology and select SONY zoomblocks are supported. Customers will have to write their own VISCA commands for other devices.

root@scailx-ai:~# vdlg-lvds-getres -d /dev/links/lvds2mipi_1 1920 x 1080 @ 60.2 root@scailx-ai:~# vdlg-lvds-setres -d /dev/links/lvds2mipi_1 720p30 Camera ID response: 905000200466010003ff. Detected VIDEOLOGY zoomblock cmd: 8101042472000EFF, res: 9041ff90ff cmd: 81010424740000FF, res: 9041ff9051ff root@scailx-ai:~# vdlg-lvds-getres -d /dev/links/lvds2mipi_1 1280 x 720 @ 30.1

Only supports 720p25 720p30 720p50 720p60 1080p25 1080p30 1080p50 1080p60

vdlg-lvds-visca:

Send a visca packet over the i2c to serial interface, and wait for a response:

vdlg-lvds-visca -d /dev/links/lvds2mipi_1 81090002FF

TTY interface

The driver exposes a TTY (serial) interface for use with regular serial port applications, such as pyserial.

Its not advisable to use this interface. Its a polled driver, so any time the tty is in use the I2C bus will be flooded with messages. It also does not support standard tty capabilities like setting custom line-break characters, etc.

root@scailx-ai:~# serial-xfer 9600 /dev/ttyVISCA1 81090002FF 905000200466010003FF