Difference between revisions of "10393 manual"

From ElphelWiki
Jump to: navigation, search
Line 1: Line 1:
==Connections==
+
==<font color="blue">Connections</font>==
 
* Connect [[FPC_cables|sensors to system board]] - FPC cables are not symmetrical
 
* Connect [[FPC_cables|sensors to system board]] - FPC cables are not symmetrical
 
* Ports:
 
* Ports:
Line 5: Line 5:
 
|[[File:NC393-CS marked ports.jpeg|thumb|200px]]
 
|[[File:NC393-CS marked ports.jpeg|thumb|200px]]
 
|}
 
|}
==Defaults==
+
==<font color="blue">Defaults</font>==
 
IP addr: 192.168.0.8
 
IP addr: 192.168.0.8
  
Line 12: Line 12:
 
* The address is set in the ''init_elphel393.sh'' script on the card's FAT32 partition.
 
* The address is set in the ''init_elphel393.sh'' script on the card's FAT32 partition.
  
==init_elphel393.sh==
+
==<font color="blue">init_elphel393.sh</font>==
 
* Before boot set SENSOR_TYPE:
 
* Before boot set SENSOR_TYPE:
 
** SENSOR_TYPE=5 - for 5MPix sensors
 
** SENSOR_TYPE=5 - for 5MPix sensors
Line 19: Line 19:
 
* Change the default IP address
 
* Change the default IP address
  
==Boot==
+
==<font color="blue">Boot</font>==
 
* on power-on boots from NAND flash: u-boot, device tree and kernel.
 
* on power-on boots from NAND flash: u-boot, device tree and kernel.
 
devicetree has "chosen = ...root=/dev/mmcblk0p2..." - rootfs is on the micro SD card second partition.
 
devicetree has "chosen = ...root=/dev/mmcblk0p2..." - rootfs is on the micro SD card second partition.
  
==Command line access==
+
==<font color="blue">Command line access</font>==
 
ssh root@192.168.0.8
 
ssh root@192.168.0.8
  
==Serial console access==
+
==<font color="blue">Serial console access</font>==
 
* Use microUSB-USB cable to connect to PC - the cable's end should be thin enough otherwise interferes with the micro SD card.
 
* Use microUSB-USB cable to connect to PC - the cable's end should be thin enough otherwise interferes with the micro SD card.
  
Line 32: Line 32:
 
(setup the device and speed - default settings might just work: /dev/ttyUSB0, 115200 8N1, No for hardware/software flow control)
 
(setup the device and speed - default settings might just work: /dev/ttyUSB0, 115200 8N1, No for hardware/software flow control)
  
==Get images==
+
==<font color="blue">Get images</font>==
 
channel 1: http://192.168.0.8:2323/noexif/img
 
channel 1: http://192.168.0.8:2323/noexif/img
  
Line 41: Line 41:
 
channel 4: http://192.168.0.8:2326/noexif/img
 
channel 4: http://192.168.0.8:2326/noexif/img
  
==Change parameters==
+
==<font color="blue">Change parameters</font>==
 
* http://192.168.0.8/controls.html - previews and basic parameters:
 
* http://192.168.0.8/controls.html - previews and basic parameters:
 
** Exposure - the values are in the sensor lines.
 
** Exposure - the values are in the sensor lines.
Line 58: Line 58:
 
|}
 
|}
  
==Temperature monitor==
+
==<font color="blue">Temperature monitor</font>==
 
* http://192.168.0.8/hwmon.html:
 
* http://192.168.0.8/hwmon.html:
 
** T<sub>shutdown</sub> - automatic shutdown temperature level
 
** T<sub>shutdown</sub> - automatic shutdown temperature level
Line 65: Line 65:
 
|}
 
|}
  
==Proper shutdown==
+
==<font color="blue">Proper shutdown</font>==
 
  shutdown -hP now
 
  shutdown -hP now
  
==Firmware image==
+
==<font color="blue">Firmware image</font>==
 
* [http://community.elphel.com/files/393/20160526/ 20160526 (new)]
 
* [http://community.elphel.com/files/393/20160526/ 20160526 (new)]
 
* [http://community.elphel.com/files/393/20160524/ 20160524 (old)]
 
* [http://community.elphel.com/files/393/20160524/ 20160524 (old)]
 
* [http://community.elphel.com/files/393/20160519/ 20160519 (old)]
 
* [http://community.elphel.com/files/393/20160519/ 20160519 (old)]
  
==Known problems==
+
==<font color="blue">Known problems</font>==
 
* Vertical artifacts in jpegs. Images are ok at 100% quality. Fixed, testing.
 
* Vertical artifacts in jpegs. Images are ok at 100% quality. Fixed, testing.
 
* http://192.168.0.8:232x/noexif/mimg - multipart jpeg displays corrupted frames from time to time. Reason: network bandwidth?
 
* http://192.168.0.8:232x/noexif/mimg - multipart jpeg displays corrupted frames from time to time. Reason: network bandwidth?

Revision as of 10:58, 31 May 2016

Connections

NC393-CS marked ports.jpeg

Defaults

IP addr: 192.168.0.8

user / pwd: root / <empty>

  • The address is set in the init_elphel393.sh script on the card's FAT32 partition.

init_elphel393.sh

  • Before boot set SENSOR_TYPE:
    • SENSOR_TYPE=5 - for 5MPix sensors
    • SENSOR_TYPE=14 - for 14MPix

NOTE: 5 & 14 MPix sensors cannot be mixed - require different bitstreams.

  • Change the default IP address

Boot

  • on power-on boots from NAND flash: u-boot, device tree and kernel.

devicetree has "chosen = ...root=/dev/mmcblk0p2..." - rootfs is on the micro SD card second partition.

Command line access

ssh root@192.168.0.8

Serial console access

  • Use microUSB-USB cable to connect to PC - the cable's end should be thin enough otherwise interferes with the micro SD card.
  • Terminal: minicom -c on

(setup the device and speed - default settings might just work: /dev/ttyUSB0, 115200 8N1, No for hardware/software flow control)

Get images

channel 1: http://192.168.0.8:2323/noexif/img

channel 2: http://192.168.0.8:2324/noexif/img

channel 3: http://192.168.0.8:2325/noexif/img

channel 4: http://192.168.0.8:2326/noexif/img

Change parameters

  • http://192.168.0.8/controls.html - previews and basic parameters:
    • Exposure - the values are in the sensor lines.
    • WB - r,g,b gains
    • Quality - compression quality - individual for compressor but common for the buffer driver - it's better to have the same value for all channels.
  • For 5MPix the startup settings are defined int the /usr/local/verilog/startup5 on the micro SD card, FAT32 partition:
...
-c write_sensor_i2c  all 1 0 0x9009001e (exposure)
-c write_sensor_i2c  all 1 0 0x9035000a (set all gains to 0xa)
-c write_sensor_i2c  all 1 0 0x902c000e (blue gain to 0xe)
-c write_sensor_i2c  all 1 0 0x9009001d (red gain to 0xd)
...
10393 controls.jpeg

Temperature monitor

10393 hwmon.jpeg

Proper shutdown

shutdown -hP now

Firmware image

Known problems

  • Vertical artifacts in jpegs. Images are ok at 100% quality. Fixed, testing.
  • http://192.168.0.8:232x/noexif/mimg - multipart jpeg displays corrupted frames from time to time. Reason: network bandwidth?
  • Sometimes on power-on (NAND flash boot) cannot mount the card's rootfs partition. Kernel Panics. Power off/on. Soft "reboot -f" works ok.
  • Changing exposure/quality/gains - can corrupt images - needs testing.