Thanks, that fixed it. Find the bad XML attached.

Linden

On Fri, Oct 5, 2012 at 1:30 PM, Oleg <support-list@support.elphel.com>wrote:

> Linden,
>
> 1. Could you please send the current /etc/autocampars.xml?
> 2. Meanwhile, you can rename the current file and regenerate the dafault
> one:
>
>> php autocampars.php --init
>
> It should create a new /etc/autocampars.xml if it doesn't exist. You might
> need to reboot the camera afterwards for a cleaner effect.
> The same thing will happen if you just reboot w/o this file in place.
>
> On 5 October 2012 12:56, Linden Mills-Connery <lmil...@gmail.com> wrote:
>
>> I am not sure what triggered the issue as I was not operating the camera.
>> But yes I change several parameters between getting the camera set-up and
>> putting it in line-scan (recording) mode. I am curious what would be
>> the recommended way of changing parameters with HTTP requests. Currently I
>> am emulating the HTTP request made by autocampars.php to change parameters.
>>
>> Output of that call:
>> [root@Elphel353 /usr/html]788# php autocampars.php --init
>> X-Powered-By: PHP/5.2.9
>> Content-type: text/html
>>
>> <br />
>>  <b>Warning</b>:  simplexml_load_file() [<a
>> href='function.simplexml-load-file'>f
>>                                     unction.simplexml-load-file</a>]:
>> /etc/autocampars.xml:74: parser error : Premat
>>                                               ure end of data in tag GAINR
>> line 74 in <b>/mnt/flash/html/autocampars.php</b> o
>>                                                   n line <b>954</b><br />
>> <br />
>> <b>Warning</b>:  simplexml_load_file() [<a
>> href='function.simplexml-load-file'>f
>>                                     unction.simplexml-load-file</a>]: ABLE
>> is enabled this overall gain is split bet
>>                                         ween the sensor analog gain and di
>> in <b>/mnt/flash/html/autocampars.php</b> on
>>                                              line <b>954</b><br />
>> <br />
>> <b>Warning</b>:  simplexml_load_file() [<a
>> href='function.simplexml-load-file'>f
>>                                     unction.simplexml-load-file</a>]:
>>
>>                                                                         ^
>> in <b>/mnt/flash/html/autocampars.php</b> on
>>                                              line <b>954</b><br />
>> <br />
>> <b>Warning</b>:  simplexml_load_file() [<a
>> href='function.simplexml-load-file'>f
>>                                     unction.simplexml-load-file</a>]:
>> /etc/autocampars.xml:74: parser error : Premat
>>                                               ure end of data in tag
>> descriptions line 11 in <b>/mnt/flash/html/autocampars.ph
>>                                                             p</b> on line
>> <b>954</b><br />
>> <br />
>> <b>Warning</b>:  simplexml_load_file() [<a
>> href='function.simplexml-load-file'>f
>>                                     unction.simplexml-load-file</a>]: ABLE
>> is enabled this overall gain is split bet
>>                                         ween the sensor analog gain and di
>> in <b>/mnt/flash/html/autocampars.php</b> on
>>                                              line <b>954</b><br />
>> <br />
>> <b>Warning</b>:  simplexml_load_file() [<a
>> href='function.simplexml-load-file'>f
>>                                     unction.simplexml-load-file</a>]:
>>
>>                                                                         ^
>> in <b>/mnt/flash/html/autocampars.php</b> on
>>                                              line <b>954</b><br />
>> <br />
>> <b>Warning</b>:  simplexml_load_file() [<a
>> href='function.simplexml-load-file'>f
>>                                     unction.simplexml-load-file</a>]:
>> /etc/autocampars.xml:74: parser error : Premat
>>                                               ure end of data in tag
>> autocampars line 3 in <b>/mnt/flash/html/autocampars.php<
>>                                                         /b> on line
>> <b>954</b><br />
>> <br />
>> <b>Warning</b>:  simplexml_load_file() [<a
>> href='function.simplexml-load-file'>f
>>                                     unction.simplexml-load-file</a>]: ABLE
>> is enabled this overall gain is split bet
>>                                         ween the sensor analog gain and di
>> in <b>/mnt/flash/html/autocampars.php</b> on
>>                                              line <b>954</b><br />
>> <br />
>> <b>Warning</b>:  simplexml_load_file() [<a
>> href='function.simplexml-load-file'>f
>>                                     unction.simplexml-load-file</a>]:
>>
>>                                                                         ^
>> in <b>/mnt/flash/html/autocampars.php</b> on
>>                                              line <b>954</b><br />
>> <br />
>> <b>Fatal error</b>:  Call to a member function children() on a non-object
>> in <b>
>>       /mnt/flash/html/autocampars.php</b> on line <b>958</b><br />
>>
>> Is this as simple as re-flashing the original  /etc/autocampars.xml file?
>>
>> Thanks,
>>
>> Linden
>>
>> On Fri, Oct 5, 2012 at 12:34 PM, support-list <
>> support-list@support.elphel.com> wrote:
>>
>>> **
>>> Hello Linden,
>>>
>>> How did camera stop working did you modify (and save any parameters)?
>>> It seems the camera could not finish initialization
>>> /usr/local/html/autocampars.php --init
>>> It may be caused by /etc/autocampars.xml parameters
>>> You may try "/usr/local/html/autocampars.php --init" manually and see
>>> what it will output.
>>>
>>> Andrey
>>>
>>> ---- On Fri, 05 Oct 2012 11:09:00 -0700 *Linden Mills-Connery <
>>> lmil...@gmail.com>* wrote ----
>>>
>>> Having a problem with the camera sensor no longer recording any images.
>>> I can access the cameras web interface fine but any images are all the
>>> blank 1x1 frames.
>>>
>>> I have attached the system report hoping that this will shed some light
>>> on the issue.
>>>
>>> Thanks,
>>>
>>> Linden
>>> _______________________________________________
>>> Support-list mailing list
>>> Support-list@support.elphel.com
>>>
>>> http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com
>>>
>>>
>>>
>>
>> _______________________________________________
>> Support-list mailing list
>> Support-list@support.elphel.com
>> http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com
>>
>>
>
>
> --
> Best regards,
> Oleg Dzhimiev
> Electronics Engineer
> phone: +1 801 783 5555 x124
> Elphel, Inc.
>
<?xml version="1.0" standalone="yes"?>
<!-- This file is generated by /usr/html/autocampars.php -->
  <autocampars>
<!-- File version -->
    <version>1.29</version>
<!-- Number of parameter page that will be used as default (i.e. after camera boot) -->
    <defaultPage>0</defaultPage>
<!-- Number of parameter page that will be next used to save parameters (if not specified) -->
    <nextPage>1</nextPage>
<!-- Descriptions of the parameters -->
    <descriptions>
      <comment>init</comment>
      <timestamp>init</timestamp>
      <SENSOR>Sensor ID number is determined by driver. Writing 0 to this location will re-start sensor identification</SENSOR>
      <SENSOR_RUN>Sensor can be stopped (0), acquire a single frame (1) or run continuously (2)</SENSOR_RUN>
      <SENSOR_SINGLE>Pseudo-register to write SENSOR_RUN_SINGLE here. Same as SENSOR_RUN, just the command will not propagate to the next frames</SENSOR_SINGLE>
      <ACTUAL_WIDTH>Actual image size (appropriately divided when decimation is used) - readonly</ACTUAL_WIDTH>
      <ACTUAL_HEIGHT>Actual image height (appropriately divided when decimation is used) - readonly</ACTUAL_HEIGHT>
      <BAYER>Bayer mosaic shift 0..3 (+1 - swap horisontally,+2 - swap vertically)</BAYER>
      <PERIOD>Frame period in pixel clock cycles - readonly</PERIOD>
      <FP1000SLIM>FPS limit as integer number of frames per 1000 seconds</FP1000SLIM>
      <FRAME>Absolute frame number, counted by the sensor frame sync pulses. Includes the frames that are not compressed and never appeared in the circbuf.</FRAME>
      <CLK_FPGA>Sensor clock in HZ (so 96MHz is 96000000)</CLK_FPGA>
      <CLK_SENSOR>FPGA compressor/memory clock in HZ (so 1600Hz is 160000000)</CLK_SENSOR>
      <FPGA_XTRA>Extra clock cycles compressor needs to compress a frame in addition to the number of compressed pixels (for non-jp4 images each sensor pixel needs 3 FPGA clock cycles, for some of the jp4 modes - 2 clocks/pixel</FPGA_XTRA>
      <TRIG>Trigger mode. currently 0 - free running, 4 - triggered by external signal or FPGA timing generator.</TRIG>
      <EXPOS>Exposure time in microseconds. Sensor driver modifies the value of this parameter to be multiple of sensor scan line times (see VEXPOS)</EXPOS>
      <BGFRAME></BGFRAME>
      <IMGSZMEM></IMGSZMEM>
      <PAGE_ACQ></PAGE_ACQ>
      <PAGE_READ></PAGE_READ>
      <OVERLAP></OVERLAP>
      <VIRT_KEEP>Preserve \"virtual window\" size when resizing the window of interest (WOI) if non-zero. That will preserve the same FPS when resizing WOI</VIRT_KEEP>
      <VIRT_WIDTH>Width of the virtual window defines the time of reading out 1 sensor scan line. Normally this parameter is determined by the driver automatically, but may be manually modified.</VIRT_WIDTH>
      <VIRT_HEIGHT>Height of the virtual window defines the frame duration in scan lines. Readout period (in free-running, not externally triggered mode) is equal to the product of VIRT_WIDTH * VIRT_HEIGHT. Normally this parameter is determined by the driver automatically, but may be manually modified.</VIRT_HEIGHT>
      <WOI_LEFT>Window of interest left margin. Should be even number</WOI_LEFT>
      <WOI_TOP>Window of interest top margin. Should be even number</WOI_TOP>
      <WOI_WIDTH>Window of interest width. Should be multiple of 16 (divided by decimation if any). This parameter is modified by the driver according to the sensor capabilities, so if you put 10000 this value will be reduced to the full sensor width.</WOI_WIDTH>
      <WOI_HEIGHT>Window of interest height. Should be multiple of 16 (divided by decimation if any). This parameter is modified by the driver according to the sensor capabilities, so if you put 10000 this value will be reduced to the full sensor width.</WOI_HEIGHT>
      <FLIPH>Mirroring (flipping) the image horizontally. Driver is aware of the sensor orientation in Elphel cameras so value 0 is used for normal image orientation when captured by the camera (contrary to the previously released software)</FLIPH>
      <FLIPV>Mirroring (flipping) the image vertically. Driver is aware of the sensor orientation in Elphel cameras so value 0 is used for normal image orientation when captured by the camera (contrary to the previously released software)</FLIPV>
      <FPSFLAGS>FPS limit mode - bit 0 - limit fps (not higher than), bit 1 - maintain fps (not lower than)</FPSFLAGS>
      <DCM_HOR>Horizontal decimation of the image (as supported by the sensor). Actual number of pixels read from the senor will is divided (from the WOI size) by this value (0 considered to be the same as 1)</DCM_HOR>
      <DCM_VERT>Vertical decimation of the image (as supported by the sensor). Actual number of pixels read from the senor will is divided (from the WOI size) by this value (0 considered to be the same as 1)</DCM_VERT>
      <BIN_HOR>Horizontal binning (adding/averaging) of several adjacent  pixels  of the same color (so odd and even pixels are processed separately) as supported by the sensor.</BIN_HOR>
      <BIN_VERT>Vertical binning (adding/averaging) of several adjacent  pixels  of the same color (so odd and even pixels are processed separately) as supported by the sensor.</BIN_VERT>
      <FPGATEST>Replace the image from the sensor with the internally generated test pattern. Currently only two values are supported: 0 - npormal image, 1 horizontal gradient.</FPGATEST>
      <TESTSENSOR>Sensor internal test modes: 0x10000 - enable, lower bits - test mode value</TESTSENSOR>
      <COLOR>Compressor modes (only modes 0..2 can be processed with standard libjpeg):`
               0 - mono6, monochrome (color YCbCr 4:2:0 with zeroed out color componets)`
               1 - color, YCbCr 4:2:0, 3x3 pixels`
               2 - jp46 - original jp4, encoded as 4:2:0 with zeroed color components`
               3 - jp46dc, modified jp46 so each color component uses individual DC diffenential encoding`
               4 - reserved for color with 5x5 conversion (not yet implemented)`
               5 - jp4 with ommitted color components (4:0:0)`
               6 - jp4dc, similar to jp46dc encoded as 4:0:0`
               7 - jp4diff, differential where (R-G), G, (G2-G) and (B-G) components are encoded as 4:0:0`
               8 - jp4hdr, (R-G), G, G2,(B-G) are encoded so G2 can be used with high gain`
               9 - jp4fiff2, (R-G)/2, G,(G2-G)/2, (B-G)/2 to avoid possible overflow in compressed values`
              10 - jp4hdr2, (R-G)/2, G,G2,(B-G)/2`
              14 - mono,  monochrome with ommitted color components (4:0:0)</COLOR>
      <FRAMESYNC_DLY>not used, should be 0</FRAMESYNC_DLY>
      <PF_HEIGHT>Height of the strip in photofinish mode (not functional)</PF_HEIGHT>
      <BITS>data width stored from the sensor - can be either 8 or 16. 16 bit mode bypasses gamma-conversion, but it is not supported by the compressor</BITS>
      <SHIFTL>not used, should be 0</SHIFTL>
      <FPNS>FPN correction subtract scale - not yet supported by current software</FPNS>
      <FPNM>FPN correction multiply scale - not yet supported by current software</FPNM>
      <VEXPOS>Exposure measured in sensor native units - number of scan lines, it can be any integer number, while the EXPOS measured in microseconds is modified by the driver to make it multiple of scan lines. Both VEXPOS and EXPOS can be used to specify exposure.</VEXPOS>
      <VIRTTRIG>Not used, should be 0</VIRTTRIG>
      <PERIOD_MIN>Minimal frame period (in pixel clock cycles) calculated by the driver from the user and hardware limitations (readonly)</PERIOD_MIN>
      <PERIOD_MAX>Maximal frame period (in pixel clock cycles) calculated by the driver from the user and hardware limitations  (readonly)</PERIOD_MAX>
      <SENSOR_PIXH>Pixels to be read from the sensor, horizontal,incliding margins, excluding embedded timestamps (readonly)</SENSOR_PIXH>
      <SENSOR_PIXV>Pixels to be read from the sensor, vertical, incliding margins (readonly)</SENSOR_PIXV>
      <GAINR>Red channel sensor overall (analog and digital) gain multiplied by 0x10000, so 0x10000 corresponds to  x1.0 gain. If ANA_GAIN_ENABLE is enabled this overall gain is split between the sensor analog gain and di
_______________________________________________
Support-list mailing list
Support-list@support.elphel.com
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com

Reply via email to