Difference between revisions of "Elphel Camera Sandbox"

From ElphelWiki
Jump to: navigation, search
(buttonless camera)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Image:Sandbox.jpg|thumb|Elphel Camera Sandbox connection schema]]
+
[[Image:Sandbox.jpg|thumb|Elphel Camera Sandbox connection diagram]]
  
This section describe some ideas on how to build a Sandbox of Elphel 3xx Network Reconfigurable Cameras.
+
 
 +
This section describe how to use the Sandbox of Elphel 3xx Network Reconfigurable Cameras.
  
 
Please feel free to contribute and discuss on the proposed architecture.
 
Please feel free to contribute and discuss on the proposed architecture.
  
=Needed hardware=
+
=Hardware=
  
To build our Sandbox we need:
+
Our Sandbox is based on:
  
* a manageable POE switch
+
* a router/firewall
* a server with at least one HD, Core2duo CPU suporting VT instructions, 4 GB RAM, 2 network cards, DVDROM
+
<s>* a manageable POE switch: Linksys SRW2008MP</s> - did not work reliably, use our regular midspan PS with remote power on/off relay
 +
* a PC with an HD, x86 CPU 2 GB RAM, 2 network cards, DVDROM
 
* different combinations of Elphel 3xx cameras connected to the POE switch
 
* different combinations of Elphel 3xx cameras connected to the POE switch
 +
** one Elphel 353 connected to the POE switch and by serial console to the PC for debugging
  
 
=The server=
 
=The server=
  
The server will be installed under some virtualisation solution. (the reason for CPU supporting VT) We can use Xen, Vmware, virtualbox, Bosh, KVM, ...
+
The server will run a modified version of [[ElphelSoftwareKit]]
 
 
Virtualisation will allow us a flexible way to manage LiveDVD sessions .
 
 
 
The server will comport minimum 3 virtual servers:
 
 
 
==Resident web server==
 
  
In fact it's not only a web server. It's just a installed virtual server with a global interface and scripts to control the Sandbox.
+
the distribution is be modified to allow:
  
The web interface should present those futures:
+
* to reserve an exclusive access to sandbox of a camera or of a LiveDVD distribution or both
 
 
 
 
* to reserve an access to sandbox of a camera or of a LiveDVD distribution or both.
 
* control the firewall and open or close connections to cameras / virtual servers.
 
 
* control the POE switch (power up/down cameras, why not some statistics from the switch, like traffic, POE consumption, ...)
 
* control the POE switch (power up/down cameras, why not some statistics from the switch, like traffic, POE consumption, ...)
 
* soft (reflash.php) and hard ("pressed" button and power up/down)
 
* soft (reflash.php) and hard ("pressed" button and power up/down)
* store/restore users/developers configs from cameras / LiveDVD on the resident server.
+
* store/restore users/developers configs from cameras / LiveDVD on some server
 
* reboot a LiveDVD session
 
* reboot a LiveDVD session
 
* bug report
 
* bug report
 
==Firewall==
 
 
What's why the computer need 2 network cards, one of the virtual servers will act as firewall. He will be connected to both Internet and the dedicated Sandbox network.
 
 
A part of the firewall rules will be controlled truth the global web interface to allow temporary connection to chosen cameras and Virtual servers.
 
 
==LiveDVD==
 
 
Where can be one or more LiveDVD running modified versions of Knoppix or Ubuntu.
 
 
The LiveDVD session can be saved/restored/reseted truth the global web interface
 
 
Some HD space is temporary dedicated for compilation and recording tests.
 
  
 
=Elphel Network Cameras=
 
=Elphel Network Cameras=
Line 54: Line 33:
 
Different models or combinations of boards can be connected to the switch.  
 
Different models or combinations of boards can be connected to the switch.  
  
We can map on the switch different ports to different VLANs and map them to different LiveDVD sessions.
+
Actually one Elphel 353 camera with IDE zif HD connected to 10349 board is available:
 
+
http://sandboxcam1.elphel.com
 
 
=Hardware reflashing unit=
 
 
 
This is just an idea.
 
 
 
Andrey, pls tell me if it's realistic and how to do it.
 
 
 
The idea is to connect a 10333 / 10353 + some custom board connected under the button to allow to simulate button pressure on one or several cameras truth network. Coupled with the POE control it's a perfect solution to reflash a  camera what is not correctly booted or configured...
 
--[[User:Polto|Polto]] 21:31, 30 November 2007 (CST)
 
 
 
I believe it is enough to program "without button" and consider requirement to reflash as an abnormal condition (maybe analyzing logs can help to find out  - what went wrong). So that will require human attention that I believe is OK in that case.--[[User:Andrey.filippov|Andrey.filippov]] 21:31, 30 November 2007 (CST)
 
 
 
 
 
Ok, we can start like what. But it is sufficient to miss a something for example in init scripts or in network config to make it unavailable.
 
--[[User:Polto|Polto]] 21:58, 30 November 2007 (CST)
 
  
== Buttonless camera ==
+
HTTP, FTP and telnet are available.
Actually, thank you. I thought a little bit and our next camera revision will have no buttons at all. Four  small components taking the same PCB area as a switch will do the job (2 capacitors, dual diode and a MOSFET transistor). To turn camera in programming mode you'll have to power-cycle it ~5 times (in a minute or so). A very simple and robust solution, no problems with broken buttons, easy to do manually or with the PoE switch, will not happen accidentally.--[[User:Andrey.filippov|Andrey.filippov]] 23:28, 30 November 2007 (CST)
 

Latest revision as of 20:10, 1 June 2008

Elphel Camera Sandbox connection diagram


This section describe how to use the Sandbox of Elphel 3xx Network Reconfigurable Cameras.

Please feel free to contribute and discuss on the proposed architecture.

Hardware

Our Sandbox is based on:

  • a router/firewall

* a manageable POE switch: Linksys SRW2008MP - did not work reliably, use our regular midspan PS with remote power on/off relay

  • a PC with an HD, x86 CPU 2 GB RAM, 2 network cards, DVDROM
  • different combinations of Elphel 3xx cameras connected to the POE switch
    • one Elphel 353 connected to the POE switch and by serial console to the PC for debugging

The server

The server will run a modified version of ElphelSoftwareKit

the distribution is be modified to allow:

  • to reserve an exclusive access to sandbox of a camera or of a LiveDVD distribution or both
  • control the POE switch (power up/down cameras, why not some statistics from the switch, like traffic, POE consumption, ...)
  • soft (reflash.php) and hard ("pressed" button and power up/down)
  • store/restore users/developers configs from cameras / LiveDVD on some server
  • reboot a LiveDVD session
  • bug report

Elphel Network Cameras

Different models or combinations of boards can be connected to the switch.

Actually one Elphel 353 camera with IDE zif HD connected to 10349 board is available: http://sandboxcam1.elphel.com

HTTP, FTP and telnet are available.