Difference between revisions of "Autocampars 393"

From ElphelWiki
Jump to: navigation, search
(command line)
Line 32: Line 32:
 
  Usage: ''/usr/bin/autocampars.php [--init] [--new] [--ignore-revision]''
 
  Usage: ''/usr/bin/autocampars.php [--init] [--new] [--ignore-revision]''
 
  Initialize camera using saved parameters (usually at boot)
 
  Initialize camera using saved parameters (usually at boot)
 
==<font color="blue">Examples</font>==
 
  
 
==<font color="blue">Source</font>==
 
==<font color="blue">Source</font>==
 
* [https://github.com/Elphel/elphel-apps-autocampars elphel-apps-autocampars] is integrated and built using the [https://github.com/Elphel/elphel393 elphel393] project that sets up everything.
 
* [https://github.com/Elphel/elphel-apps-autocampars elphel-apps-autocampars] is integrated and built using the [https://github.com/Elphel/elphel393 elphel393] project that sets up everything.
 +
 +
[[Category:393]]

Revision as of 10:56, 20 December 2016

Description

  • Save / restore / initialize NC393 based camera systems parameters.

Notes

  • The project was ported from NC353 camera series with minor changes related to:
    • reading the extension board information
    • having 4 sensor ports instead of a single one
  • The camera system type is stored in the EEPROM of the 10389 extension board and is not reset by software updates
  • Depending on the initialized ports the configuration files are stored in /etc/elphel393/:
/etc/elphel393/autocampars0.xml
/etc/elphel393/autocampars1.xml
/etc/elphel393/autocampars2.xml
/etc/elphel393/autocampars3.xml
  • If the configuration for a port not found on boot but it was initialized - a new default configuration is created
  • If accessed from a browser supports:
    • reboot - works for single cameras, for multi camera systems works for the master camera that is supposed to reboot others.
    • cancel sync - if the camera was booted from NAND flash - cancels syncing of the overlayfs layers if not needed - as any changes to the configuration files through the web interface raise a sync 'flag' (/tmp/overlay_sync)

Usage

Fig.1 autocampars.php web interface

web

  • http://192.168.0.9/autocampars.php (Fig.1)
    • the top table gives access to change the camera/sensor parameters through parsedit.php interface. The parameters are split into groups.
    • the bottom table allows to save/restore the configuration of all parameters. If boot from NAND flash the changed configs must be synced to survive reboot - use either reboot button or shutdown -r now ('reboot -f' will not sync overlayfs layers)

command line

  • only to (re)create new config

Terminal:

$ ssh root@192.168.0.9
root@elphel393:~# /usr/bin/autocampars.php

Output:

Usage: /usr/bin/autocampars.php [--init] [--new] [--ignore-revision]
Initialize camera using saved parameters (usually at boot)

Source