[Elphel-support] change camera parameters through Telnet

support-list support-list at support.elphel.com
Thu Dec 13 10:02:32 PST 2012


Hello Biel,

By "through telnet" you mean "from the command line"?

The simplest way is to use wget, like we do in init scripts, here is an example:
 wget "http://localhost/i2c.php?bus=1&raw=0x2000&data=0x7f" -O /dev/null >/dev/null 2>&1

You see - changing parameters otherwise is tricky - there are no "current parameters" in the camera because of the pipeline operation. For example, if you change the sensor resolution,  then sensor, FPGA and the software work with different values - sensor is sent new values first, FPGA uses "old values" until the sensor is expected to provide frame with new width/height, and software in the camera creates the new JPEG header when the compressed data is being sent out or recorded. It is all realtime and relies on tight cooperation between camera parts, even with relatively slow processor - it uses both FPGA and software code to implement this, and PHP extension has support for these features.

BTW, do you know that there is the method to do opposite to what you asked for - issue command line parameters through the URL in the browser?
Like reboot the camera
http://192.168.0.9/phpshell.php?command=reboot+-f
or reflash it (provided the current parameters are in the /etc/reflash.conf):
http://192.168.0.9/phpshell.php?command=reflash

Andrey


---- On Thu, 13 Dec 2012 07:23:07 -0800 Biel Bestué de Luna<7318.tk at gmail.com> wrote ---- 


is there a way to change the camera parameters and their values through Telnet without using the php? just like you change the type of pixel binning the camera use with a Telnet command, how could I change the EXPOS value with Telnet without the need of php or wget?
 _______________________________________________ 
Support-list mailing list 
Support-list at support.elphel.com 
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://support.elphel.com/pipermail/support-list_support.elphel.com/attachments/20121213/27638313/attachment-0002.html>


More information about the Support-list mailing list