Difference between revisions of "Autocampars 393"
From ElphelWiki
(→command line) |
(→Notes) |
||
(6 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
* The camera system type is stored in the EEPROM of the 10389 extension board and is not reset by software updates | * 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/''': | * Depending on the initialized ports the configuration files are stored in '''/etc/elphel393/''': | ||
− | /etc/elphel393/autocampars0.xml | + | http://192.168.0.9/autocampars.php?sensor_port=0 -> /etc/elphel393/autocampars0.xml |
− | /etc/elphel393/autocampars1.xml | + | http://192.168.0.9/autocampars.php?sensor_port=1 -> /etc/elphel393/autocampars1.xml |
− | /etc/elphel393/autocampars2.xml | + | http://192.168.0.9/autocampars.php?sensor_port=2 -> /etc/elphel393/autocampars2.xml |
− | /etc/elphel393/autocampars3.xml | + | http://192.168.0.9/autocampars.php?sensor_port=3 -> /etc/elphel393/autocampars3.xml |
+ | * '''Storing parameters is done individually per port (access and hit save 4x times).''' | ||
* If the configuration for a port not found on boot but it was initialized - a new default configuration is created | * 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: | * If accessed from a browser supports: | ||
Line 21: | Line 22: | ||
====web==== | ====web==== | ||
* http://192.168.0.9/autocampars.php (Fig.1) | * 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 top table gives access to change the camera/sensor parameters through parsedit.php interface. The parameters are split into groups. Select groups of interest then follow ''View/Edit current'' link. |
− | ** 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 ''' | + | ** 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==== | ====command line==== | ||
+ | * only to (re)create new config | ||
Terminal: | Terminal: | ||
$ ssh root@192.168.0.9 | $ ssh root@192.168.0.9 | ||
Line 32: | Line 34: | ||
Initialize camera using saved parameters (usually at boot) | Initialize camera using saved parameters (usually at boot) | ||
− | ==<font color="blue"> | + | ==<font color="blue">Source</font>== |
+ | * [https://git.elphel.com/Elphel/elphel-apps-autocampars elphel-apps-autocampars] is integrated and built using the [https://git.elphel.com/Elphel/elphel393 elphel393] project that sets up the build environment and pulls all projects. | ||
− | + | [[Category:393]] | |
− |
Latest revision as of 08:08, 27 September 2018
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/:
http://192.168.0.9/autocampars.php?sensor_port=0 -> /etc/elphel393/autocampars0.xml http://192.168.0.9/autocampars.php?sensor_port=1 -> /etc/elphel393/autocampars1.xml http://192.168.0.9/autocampars.php?sensor_port=2 -> /etc/elphel393/autocampars2.xml http://192.168.0.9/autocampars.php?sensor_port=3 -> /etc/elphel393/autocampars3.xml
- Storing parameters is done individually per port (access and hit save 4x times).
- 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
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. Select groups of interest then follow View/Edit current link.
- 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
- elphel-apps-autocampars is integrated and built using the elphel393 project that sets up the build environment and pulls all projects.