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
3ed8b3eb
Commit
3ed8b3eb
authored
Jul 04, 2023
by
Andrey Filippov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
intermediate working versio with debug enabled
parent
5d1ca452
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
366 additions
and
127 deletions
+366
-127
index.html
src/lwir16/index.html
+43
-18
lwir16.ini
src/lwir16/lwir16.ini
+17
-11
lwir16.php
src/lwir16/lwir16.php
+191
-65
Makefile
src/php_top/Makefile
+1
-0
capture_range.php
src/php_top/capture_range.php
+114
-33
No files found.
src/lwir16/index.html
View file @
3ed8b3eb
...
@@ -18,12 +18,16 @@ var debug;// = 0;
...
@@ -18,12 +18,16 @@ var debug;// = 0;
var
sequence_num
;
// = 0;
var
sequence_num
;
// = 0;
var
last_ffc
;
// = 0;
var
last_ffc
;
// = 0;
var
time_to_ffc
;
// = 0;
var
time_to_ffc
;
// = 0;
var
left_capture
;
var
capture_run
;
// = 0;
var
capture_run
;
// = 0;
var
capture_wait
;
// wait sequence end to stop
var
capture_wait_was
=
0
;
var
want_run
;
var
want_run
;
var
request_num
=
0
;
var
request_num
=
0
;
var
update_editable
=
true
;
var
update_editable
=
true
;
var
apply_pending
=
false
;
var
apply_pending
=
false
;
console
.
log
(
"self.location.host="
+
self
.
location
.
host
);
function
parse_response
(
resp
){
function
parse_response
(
resp
){
var
result
=
""
;
var
result
=
""
;
console
.
log
(
"parse_response(), resp="
+
resp
);
console
.
log
(
"parse_response(), resp="
+
resp
);
...
@@ -58,7 +62,7 @@ function send_request(rq,callback){
...
@@ -58,7 +62,7 @@ function send_request(rq,callback){
function
sendStatusRequest
(){
function
sendStatusRequest
(){
console
.
log
(
"sendStatusRequest()"
);
console
.
log
(
"sendStatusRequest()"
);
var
url
=
"http://
192.168.0.41
/lwir16/lwir16.php?daemon=status"
;
var
url
=
"http://
"
+
self
.
location
.
host
+
"
/lwir16/lwir16.php?daemon=status"
;
if
(
apply_pending
)
{
if
(
apply_pending
)
{
console
.
log
(
"sendStatusRequest(), apply_pending"
);
console
.
log
(
"sendStatusRequest(), apply_pending"
);
var
mod_pars
=
modParameters
();
var
mod_pars
=
modParameters
();
...
@@ -74,7 +78,7 @@ function sendStatusRequest(){
...
@@ -74,7 +78,7 @@ function sendStatusRequest(){
function
sendRestartRequest
(){
function
sendRestartRequest
(){
console
.
log
(
"sendRestartRequest()"
);
console
.
log
(
"sendRestartRequest()"
);
var
url
=
"http://
192.168.0.41
/lwir16/lwir16.php?daemon=restart&cmd=STATUS"
;
var
url
=
"http://
"
+
self
.
location
.
host
+
"
/lwir16/lwir16.php?daemon=restart&cmd=STATUS"
;
send_request
(
url
,
parseStatusResponse
);
send_request
(
url
,
parseStatusResponse
);
}
}
...
@@ -144,13 +148,23 @@ function parseStatusResponse(resp){
...
@@ -144,13 +148,23 @@ function parseStatusResponse(resp){
time_to_ffc
=
parseFloat
(
resp
.
getElementsByTagName
(
"time_to_ffc"
)[
0
].
childNodes
[
0
].
nodeValue
);
time_to_ffc
=
parseFloat
(
resp
.
getElementsByTagName
(
"time_to_ffc"
)[
0
].
childNodes
[
0
].
nodeValue
);
document
.
getElementById
(
"idtime_to_ffc"
).
value
=
time_to_ffc
;
document
.
getElementById
(
"idtime_to_ffc"
).
value
=
time_to_ffc
;
}
}
if
(
resp
.
getElementsByTagName
(
"left_capture"
).
length
!=
0
){
left_capture
=
parseFloat
(
resp
.
getElementsByTagName
(
"left_capture"
)[
0
].
childNodes
[
0
].
nodeValue
);
document
.
getElementById
(
"idleft_capture"
).
value
=
left_capture
;
}
if
(
resp
.
getElementsByTagName
(
"capture_run"
).
length
!=
0
){
if
(
resp
.
getElementsByTagName
(
"capture_run"
).
length
!=
0
){
capture_run
=
parseInt
(
resp
.
getElementsByTagName
(
"capture_run"
)[
0
].
childNodes
[
0
].
nodeValue
);
capture_run
=
parseInt
(
resp
.
getElementsByTagName
(
"capture_run"
)[
0
].
childNodes
[
0
].
nodeValue
);
document
.
getElementById
(
"idcapture_run"
).
checked
=
capture_run
>
0
;
if
(
resp
.
getElementsByTagName
(
"capture_wait"
).
length
!=
0
){
if
(
update_editable
)
{
capture_wait_was
=
capture_wait
;
document
.
getElementById
(
"idStartStop"
).
innerHTML
=
capture_run
?
"Stop"
:
"Start"
;
capture_wait
=
parseInt
(
resp
.
getElementsByTagName
(
"capture_wait"
)[
0
].
childNodes
[
0
].
nodeValue
);
document
.
getElementById
(
"idStartStop"
).
disabled
=
false
;
}
document
.
getElementById
(
"idcapture_run"
).
checked
=
(
capture_run
>
0
)
||
(
capture_wait
>
0
);
// still waiting
// if (update_editable || (want_run != capture_run)) {
if
(
update_editable
||
(
capture_wait_was
&&
!
capture_wait
))
{
document
.
getElementById
(
"idStartStop"
).
innerHTML
=
capture_run
?
"Stop"
:(
capture_wait
?
"Waiting"
:
"Start"
);
document
.
getElementById
(
"idStartStop"
).
disabled
=
capture_wait
;
//false;
want_run
=
capture_run
;
want_run
=
capture_run
;
}
}
}
}
...
@@ -227,6 +241,13 @@ function clickedApply(){
...
@@ -227,6 +241,13 @@ function clickedApply(){
setPending
();
setPending
();
}
}
function
clickedAbort
(){
setPending
();
want_run
=
false
;
console
.
log
(
"sendAbortRequest()"
);
var
url
=
"http://"
+
self
.
location
.
host
+
"/lwir16/lwir16.php?daemon=status&cmd=ABORT"
;
send_request
(
url
,
parseStatusResponse
);
}
</script>
</script>
</head>
</head>
...
@@ -236,6 +257,7 @@ function clickedApply(){
...
@@ -236,6 +257,7 @@ function clickedApply(){
<tr><td>
<tr><td>
<button
id=
"idStartStop"
name =
"nStartStop"
onclick=
"clickedRun()"
disabled=
"true"
>
???
</button>
<button
id=
"idStartStop"
name =
"nStartStop"
onclick=
"clickedRun()"
disabled=
"true"
>
???
</button>
<button
id=
"idAbort"
name =
"nAbort"
onclick=
"clickedAbort()"
>
Abort
</button>
</td><td>
</td><td>
<button
id=
"idApply"
name =
"nApply"
onclick=
"clickedApply()"
disabled =
"true"
>
???
</button>
<button
id=
"idApply"
name =
"nApply"
onclick=
"clickedApply()"
disabled =
"true"
>
???
</button>
</td><td>
</td>
<td>
</td><td>
</td>
</td><td>
</td>
<td>
</td><td>
</td>
...
@@ -249,26 +271,26 @@ function clickedApply(){
...
@@ -249,26 +271,26 @@ function clickedApply(){
<tr><td>
Sequence length (@60Hz)
</td><td>
<tr><td>
Sequence length (@60Hz)
</td><td>
<input
id=
"idduration"
name=
"nduration"
size=
"10"
maxlength=
"10"
value=
"?"
type=
"text"
>
<input
id=
"idduration"
name=
"nduration"
size=
"10"
maxlength=
"10"
value=
"?"
type=
"text"
>
</td><td>
frames
</td><td>
Request coun
t
</td><td>
</td><td>
frames
</td><td>
Frames lef
t
</td><td>
<input
id=
"id
request_num"
name=
"nrequest_num
"
size=
"10"
maxlength=
"10"
value=
"?"
type=
"text"
disabled
>
<input
id=
"id
left_capture"
name=
"nleft_capture
"
size=
"10"
maxlength=
"10"
value=
"?"
type=
"text"
disabled
>
</td><td>
</td></tr>
</td><td>
</td></tr>
<tr><td>
Sequence length (@10Hz)
</td><td>
<tr><td>
Sequence length (@10Hz)
</td><td>
<input
id=
"idduration_eo"
name=
"nduration_eo"
size=
"10"
maxlength=
"10"
value=
"?"
type=
"text"
>
<input
id=
"idduration_eo"
name=
"nduration_eo"
size=
"10"
maxlength=
"10"
value=
"?"
type=
"text"
>
</td><td>
frames
</td><td>
Capture run
</td><td>
</td><td>
frames
</td><td>
Request count
</td><td>
<input
id=
"idcapture_run"
name=
"ncapture_run"
type=
"checkbox"
disabled
>
<input
id=
"idrequest_num"
name=
"nrequest_num"
size=
"10"
maxlength=
"10"
value=
"?"
type=
"text"
disabled
>
</td><td>
</td></tr>
</td><td>
</td></tr>
<tr><td>
FFC
</td><td>
<tr><td>
FFC
</td><td>
<input
id=
"idffc"
name=
"nffc"
type=
"checkbox"
>
<input
id=
"idffc"
name=
"nffc"
type=
"checkbox"
>
</td><td>
</td><td>
Last FFC
</td><td>
</td><td>
</td><td>
Capture run
</td><td>
<input
id=
"idlast_ffc"
name=
"nlast_ffc"
size=
"10"
maxlength=
"10"
value=
"?"
type=
"text"
disabled
>
<input
id=
"idcapture_run"
name=
"ncapture_run"
type=
"checkbox"
disabled
>
</td><td>
sec
</td></tr>
</td><td>
</td></tr>
<tr><td>
FFC period
</td><td>
<tr><td>
FFC period
</td><td>
<input
id=
"idffc_period"
name=
"nffc_period"
size=
"10"
maxlength=
"10"
value=
"?"
type=
"text"
>
<input
id=
"idffc_period"
name=
"nffc_period"
size=
"10"
maxlength=
"10"
value=
"?"
type=
"text"
>
</td><td>
sec
</td><td>
Time to
FFC
</td><td>
</td><td>
sec
</td><td>
Last
FFC
</td><td>
<input
id=
"id
time_to_ffc"
name=
"ntime_to
_ffc"
size=
"10"
maxlength=
"10"
value=
"?"
type=
"text"
disabled
>
<input
id=
"id
last_ffc"
name=
"nlast
_ffc"
size=
"10"
maxlength=
"10"
value=
"?"
type=
"text"
disabled
>
</td><td>
sec
</td></tr>
</td><td>
sec
</td></tr>
<tr><td>
FFC groups
</td><td>
<tr><td>
FFC groups
</td><td>
...
@@ -277,8 +299,11 @@ function clickedApply(){
...
@@ -277,8 +299,11 @@ function clickedApply(){
<option
value=
"2"
>
2
</option>
<option
value=
"2"
>
2
</option>
<option
value=
"4"
selected=
"selected"
>
4
</option>
<option
value=
"4"
selected=
"selected"
>
4
</option>
</select>
</select>
</td><td>
</td><td>
</td><td>
</td><td>
</td></tr>
</td><td>
</td>
<td>
Time to FFC
</td><td>
<input
id=
"idtime_to_ffc"
name=
"ntime_to_ffc"
size=
"10"
maxlength=
"10"
value=
"?"
type=
"text"
disabled
>
</td><td>
sec
</td></tr>
<tr><td>
FFC frames
</td><td>
<tr><td>
FFC frames
</td><td>
<input
id=
"idffc_frames"
name=
"nffc_frames"
size=
"10"
maxlength=
"10"
value=
"?"
type=
"text"
>
<input
id=
"idffc_frames"
name=
"nffc_frames"
size=
"10"
maxlength=
"10"
value=
"?"
type=
"text"
>
</td><td>
frames
</td><td>
</td><td>
</td><td>
</td></tr>
</td><td>
frames
</td><td>
</td><td>
</td><td>
</td></tr>
...
...
src/lwir16/lwir16.ini
View file @
3ed8b3eb
...
@@ -7,18 +7,24 @@ multicam_conf = "/etc/elphel393/multicamconf.xml"
...
@@ -7,18 +7,24 @@ multicam_conf = "/etc/elphel393/multicamconf.xml"
ips
=
"192.168.0.41,192.168.0.42,192.168.0.43,192.168.0.44,192.168.0.45"
ips
=
"192.168.0.41,192.168.0.42,192.168.0.43,192.168.0.44,192.168.0.45"
port_masks
=
"15,15,15,15,15"
port_masks
=
"15,15,15,15,15"
duration
=
100
#1 - run/stop, 2 - continuous, 0 do not use
pre_delay
=
3.0
run_modes
=
"1,1,1,1,2"
ffc_period
=
30.0
lwir_fps
=
59.98
ffc_groups
=
2
eo_decimate_m1
=
5
ffc_frames
=
8
duration
=
500
ffc
=
1
pre_delay
=
2.0
tiff_telem
=
1
ffc_period
=
180.0
tiff_mn
=
0
ffc_groups
=
2
tiff_mx
=
65535
ffc_frames
=
8
ffc
=
1
tiff_telem
=
1
tiff_mn
=
0
tiff_mx
=
65535
tiff_bin_shift
=
1
tiff_bin_shift
=
1
tiff_auto
=
0
tiff_auto
=
0
debug
=
1
frames_idle
=
10
frames_wait
=
20
debug
=
1
output_log
=
/var/log/lwir16.log
output_log
=
/var/log/lwir16.log
# no spaces around commas!
# no spaces around commas!
CMD
=
INIT,START
CMD
=
INIT,START
\ No newline at end of file
src/lwir16/lwir16.php
View file @
3ed8b3eb
This diff is collapsed.
Click to expand it.
src/php_top/Makefile
View file @
3ed8b3eb
...
@@ -16,6 +16,7 @@ PHP_SCRIPTS=i2c.php \
...
@@ -16,6 +16,7 @@ PHP_SCRIPTS=i2c.php \
ccam.php
\
ccam.php
\
diag_utils.php
\
diag_utils.php
\
framepars.php
\
framepars.php
\
frame_to_ts.php
\
parsedit.php
\
parsedit.php
\
phpinfo.php
\
phpinfo.php
\
raw.php
\
raw.php
\
...
...
src/php_top/capture_range.php
View file @
3ed8b3eb
This diff is collapsed.
Click to expand it.
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