10359 in dual sensor setup
This is not yet an official manual page, this is a page describing my personal tests. Listed materials should *NOT* be considered as safe to use or user-friendly. It is just some experimentation I list on User:Polto#.C2.A0testing to get participation from other developers.
In my tests I use 2 sensors connected to a 10359 board and a 10353.
To be able to simply visualize the difference I connected 1 color and one monochrome sensor.
For simplicity and better hardware protection I just hacked 2 standard camera cases. It's not perfect at all, but allow a clean setup without many work.
The monochrome sensor is connected with a 12" flat cable. This sensor will need individual phase adjustment.
Configure the sensor & 10359 and request a single frame
1) I telnet to the camera and do:
cp /usr/html/camera_demo.php /var/html/
2) I modify in /var/html/camera_demo.php:
//!start compressor: elphel_compressor_run(); //! or just acquire a single frame //elphel_compressor_frame();
//!start compressor: //elphel_compressor_run(); //! or just acquire a single frame elphel_compressor_frame();
3) I call http://192.168.0.9/var/camera_demo.php from a browser. The page will be loaded, but the image do not appear. At this moment I open http://192.168.0.9/359/sensors_init.php and in another tab, the image appear in http://192.168.0.9:8081/last/save/wait/img
Request a single frame
I can request more images by executing a custom script get1frame.php:
<?php //! just acquire a single frame elphel_compressor_frame(); echo "<img src=\"http://" . $_SERVER["SERVER_ADDR"] . ":8081/last/save/wait/img \>" ?>
I can get refreshed images from the first sensor (color).
- Uhhhh* I have the previous image at each refresh
Switch between sensors
I can now switch to the second (monochrome) sensor: http://192.168.0.9/359/reg_write.php?adr=0x835&data=2
data parameter is the sensor number (1, 2 or 3)
to get an image from this sensor I call again my script http://192.168.0.13/var/get1frame.php