Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
elphel-web-393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
elphel-web-393
Commits
8861af0a
Commit
8861af0a
authored
Sep 26, 2016
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
debugging for 10359 multiplexer
parent
1728e6c0
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
383 additions
and
253 deletions
+383
-253
Makefile
src/php_top/Makefile
+2
-1
framepars.php
src/php_top/framepars.php
+23
-5
i2c.php
src/php_top/i2c.php
+355
-245
parsedit.php
src/php_top/parsedit.php
+3
-2
No files found.
src/php_top/Makefile
View file @
8861af0a
...
@@ -9,7 +9,8 @@ CONFS= autocampars.xml
...
@@ -9,7 +9,8 @@ CONFS= autocampars.xml
SYSCONFDIR
=
/etc
SYSCONFDIR
=
/etc
CONFDIR
=
$(SYSCONFDIR)
/elphel393
CONFDIR
=
$(SYSCONFDIR)
/elphel393
PHP_SCRIPTS
=
camvars.php
\
PHP_SCRIPTS
=
i2c.php
\
camvars.php
\
ccam.php
\
ccam.php
\
diag_utils.php
\
diag_utils.php
\
framepars.php
\
framepars.php
\
...
...
src/php_top/framepars.php
View file @
8861af0a
...
@@ -450,14 +450,32 @@ CAPTION;
...
@@ -450,14 +450,32 @@ CAPTION;
elphel_set_P_value
(
$sensor_port
,
ELPHEL_VIGNET_C
,
0x8000
,
$frame
+
4
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
elphel_set_P_value
(
$sensor_port
,
ELPHEL_VIGNET_C
,
0x8000
,
$frame
+
4
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
elphel_set_P_value
(
$sensor_port
,
ELPHEL_VIGNET_SHL
,
1
,
$frame
+
4
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
elphel_set_P_value
(
$sensor_port
,
ELPHEL_VIGNET_SHL
,
1
,
$frame
+
4
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
elphel_set_P_value
(
$sensor_port
,
ELPHEL_SENSOR_RUN
,
2
,
$frame
+
4
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
elphel_set_P_value
(
$sensor_port
,
ELPHEL_SENSOR_RUN
,
2
,
$frame
+
4
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
elphel_set_P_value
(
$sensor_port
,
ELPHEL_COMPRESSOR_RUN
,
2
,
$frame
+
4
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
// / run compressor
//
elphel_set_P_value ( $sensor_port, ELPHEL_COMPRESSOR_RUN, 2, $frame + 4, ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC ); // / run compressor
elphel_set_P_value
(
$sensor_port
,
ELPHEL_DCM_HOR
,
1
,
$frame
+
4
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
// / run compressor
elphel_set_P_value
(
$sensor_port
,
ELPHEL_DCM_HOR
,
1
,
$frame
+
4
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
elphel_set_P_value
(
$sensor_port
,
ELPHEL_DCM_VERT
,
1
,
$frame
+
4
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
// / run compressor
elphel_set_P_value
(
$sensor_port
,
ELPHEL_DCM_VERT
,
1
,
$frame
+
4
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
elphel_set_P_value
(
$sensor_port
,
ELPHEL_BIN_HOR
,
1
,
$frame
+
4
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
// / run compressor
elphel_set_P_value
(
$sensor_port
,
ELPHEL_BIN_HOR
,
1
,
$frame
+
4
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
elphel_set_P_value
(
$sensor_port
,
ELPHEL_BIN_VERT
,
1
,
$frame
+
4
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
// / run compressor
elphel_set_P_value
(
$sensor_port
,
ELPHEL_BIN_VERT
,
1
,
$frame
+
4
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
// elphel_set_P_value ( $sensor_port, ELPHEL_COMPRESSOR_RUN, 2, $frame + 5, ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC ); // / run compressor
// elphel_set_P_value ( $sensor_port, ELPHEL_COMPRESSOR_RUN, 2, $frame + 8, ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC ); // / run compressor
elphel_set_P_value
(
$sensor_port
,
ELPHEL_COMPRESSOR_RUN
,
2
,
$frame
+
9
,
ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC
);
// / run compressor
// elphel_set_P_value ( $sensor_port, ELPHEL_COMPRESSOR_RUN, 2, $frame + 13, ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC ); // / run compressor
// Turn external trigger at 4fps
/*
elphel_set_P_value ( $sensor_port, ELPHEL_TRIG_PERIOD, 25000000, $frame + 4, ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC ); //0.25 s
elphel_set_P_value ( $sensor_port, ELPHEL_TRIG_BITLENGTH, 31, $frame + 4, ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC ); //0.32 usec
elphel_set_P_value ( $sensor_port, ELPHEL_TRIG_DELAY, 0, $frame + 4, ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC ); // no delay
elphel_set_P_value ( $sensor_port, ELPHEL_EXTERN_TIMESTAMP, 1, $frame + 4, ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC ); // use external timestamp when available
elphel_set_P_value ( $sensor_port, ELPHEL_XMIT_TIMESTAMP, 1, $frame + 4, ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC ); // transmit timestamps, not just pulse
elphel_set_P_value ( $sensor_port, ELPHEL_TRIG_OUT, 0x65555, $frame + 4, ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC ); // 0x56555 - ext connector, 0x65555 - internal connector 0x66555 - both, 0x55555 - none
/// change to "internal" (0x8000) when wired
elphel_set_P_value ( $sensor_port, ELPHEL_TRIG_CONDITION, 0, $frame + 4, ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC ); // 0x0 - from FPGA, 0x80000 - ext, 0x8000 - int, 0x88000 - any, 0x95555 - add ext, 0x59999 - add int
// elphel_set_P_value ( $sensor_port, ELPHEL_TRIG, 0x4, $frame + 6, ELPHEL_CONST_FRAMEPAIR_FORCE_NEWPROC ); // 0 - free running, 4 - extrnal ERS, 5 - external GRR
*/
$xml
->
addChild
(
'frame_after'
.
strval
(
$sensor_port
),
elphel_get_frame
(
$sensor_port
));
$xml
->
addChild
(
'frame_after'
.
strval
(
$sensor_port
),
elphel_get_frame
(
$sensor_port
));
fclose
(
$framepars_file
);
fclose
(
$framepars_file
);
$gamma
=
57
;
$gamma
=
57
;
$black
=
10
;
$black
=
10
;
...
...
src/php_top/i2c.php
View file @
8861af0a
This diff is collapsed.
Click to expand it.
src/php_top/parsedit.php
View file @
8861af0a
...
@@ -247,7 +247,7 @@ function printDefaultPage() {
...
@@ -247,7 +247,7 @@ function printDefaultPage() {
.
"&EXTERN_TIMESTAMP=1"
/// Use external timestamp when available
.
"&EXTERN_TIMESTAMP=1"
/// Use external timestamp when available
.
"&BITS=8"
/// 8 bit data mode
.
"&BITS=8"
/// 8 bit data mode
.
"&QUALITY=80"
/// 80 percent JPEG image quality
.
"&QUALITY=80"
/// 80 percent JPEG image quality
.
"&COLOR=
1
"
/// regular color mode (not mono or JP4 flavors)
.
"&COLOR=
0
"
/// regular color mode (not mono or JP4 flavors)
.
"&COLOR_SATURATION_BLUE=200"
/// 2.0 (200% blue/green color saturation (to compensate for effect of non-unity gamma)
.
"&COLOR_SATURATION_BLUE=200"
/// 2.0 (200% blue/green color saturation (to compensate for effect of non-unity gamma)
.
"&COLOR_SATURATION_RED=200"
/// 2.0 (200% blue/green color saturation
.
"&COLOR_SATURATION_RED=200"
/// 2.0 (200% blue/green color saturation
.
"&BAYER=0"
/// No bayer shift
.
"&BAYER=0"
/// No bayer shift
...
@@ -414,8 +414,9 @@ $url_ext_trigger=$url_port."embed=0.1&title=External+trigger+controls"
...
@@ -414,8 +414,9 @@ $url_ext_trigger=$url_port."embed=0.1&title=External+trigger+controls"
/// bit 1 - enable(1) or disable(0) external trigger to stop clip
/// bit 1 - enable(1) or disable(0) external trigger to stop clip
/// bit 2 - async (snapshot, ext trigger) mode, 0 - continuous NOTE: Only this bit is used now !
/// bit 2 - async (snapshot, ext trigger) mode, 0 - continuous NOTE: Only this bit is used now !
/// bit 3 - no overlap, single frames: program - acquire/compress same frame
/// bit 3 - no overlap, single frames: program - acquire/compress same frame
/// bit 4 - Global reset release mode
.
"&TRIG_PERIOD=2
0000000"
/// 0.2 sec @96
MHz output sync period (32 bits, in pixel clocks)
.
"&TRIG_PERIOD=2
5000000"
/// 0.25 sec @100
MHz output sync period (32 bits, in pixel clocks)
/// >=256 repetitive with specified period.
/// >=256 repetitive with specified period.
/// NOTE: Currently there is no verification that period is longer than sensor/compressor can handle
/// NOTE: Currently there is no verification that period is longer than sensor/compressor can handle
.
"&TRIG_DELAY"
/// trigger delay, 32 bits in pixel clocks (needed when multiple cameras are synchronized)
.
"&TRIG_DELAY"
/// trigger delay, 32 bits in pixel clocks (needed when multiple cameras are synchronized)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment