This repository has been archived by the owner on May 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks.txt
167 lines (143 loc) · 5.66 KB
/
tasks.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
1. Load current configuration for all echosounders from backend on startup, go directly to status menu
Requirement:
Please, attach sample configuration for all echosounders. Which I will receive on startup.
See startup_json.txt
2. Larger buttons for changing window and record status.
3. Button Add /Edit:
Requirement:
After a user clicks the button:A request will be send to backend to retrieve latest list of echosounders.
Please, attach sample response
See echosounder_list_json_format.txt
4. A dropdown with echosounder type (cageeye or merdøye) is needed. If cageeye is selected, there should be a dropdown with device id. (as is done in current implementation)
Queries:
Is there going to be transducer form for merdoye.?
Yes. But it will not include a setting for ping interval or mode.
The transmit power will be 20W, 40W and 70W.
5. When selecting a device, get current configuration for this specific echosounder from back-end, and display it. Submit will reconfigure and send update to status page.
6. Depth in configuration is no longer needed, it should be removed
7. Fix possible bug with up/down configuration button. It always sends false? Increase button size, and add a text description.
8. Larger button to enable a transducer.
9. When selecting a device, get current configuration for this specific echosounder from back-end, and display it. Submit will reconfigure and send update to status page.
Format will be like startup_json.txt but will only include a single echosounder
from json rpc "result":
{
"CageEye mk.III":{
"4111-0004": {
"deviceStatus": true,
"transmitPower": 50,
"pingMode": "Auto",
"pingInterval": 100,
"transducers": [
{
"name": "tet",
"hardware_channel": 1,
"software_channel": 1,
"recording": false,
"window": false
},
{
"name": "tete",
"hardware_channel": 2,
"software_channel": 2,
"recording": false,
"window": false
},
{
"name": "tet",
"hardware_channel": 3,
"software_channel": 3,
"recording": false,
"window": false
},
{
"name": "tete",
"hardware_channel": 4,
"software_channel": 4,
"recording": false,
"window": false
},
{
"name": "tete",
"hardware_channel": 5,
"software_channel": 5,
"recording": false,
"window": false
},
{
"name": "tete",
"hardware_channel": 6,
"software_channel": 6,
"recording": false,
"window": false
}
]
}
},
"Merdøye mk.II": {
"deviceStatus": true,
"transmitPower": 20,
"transducers": [
{
"name": "tet",
"hardware_channel": 1,
"software_channel": 1,
"recording": false,
"window": false
},
{
"name": "tete",
"hardware_channel": 2,
"software_channel": 2,
"recording": false,
"window": false
},
{
"name": "tet",
"hardware_channel": 3,
"software_channel": 3,
"recording": false,
"window": false
},
{
"name": "tete",
"hardware_channel": 4,
"software_channel": 4,
"recording": false,
"window": false
},
{
"name": "tete",
"hardware_channel": 5,
"software_channel": 5,
"recording": false,
"window": false
},
{
"name": "tete",
"hardware_channel": 6,
"software_channel": 6,
"recording": false,
"window": false
}
]
}
}
"{"jsonrpc":"2.0","result":"{\r\n \"CageEye mk.III\": [\r\n \"4100-0000\",\r\n \"4111-0000\",\r\n \"4111-0001\"\r\n ],\r\n \"Merdøye mk.II\": \"RS232 prototype\",\r\n \"EK15\": \"not available (contact us)\"\r\n}","id":"2"}"
// requiremnts ------------------------------------
1.
get-echosounder_configuration
jsonrpc_method.id = ?
2. working of play/stop button
on click on play stop button :
a json rpc request wuill be sent
method : set_status
method.id =?
params={
"echosounderName":"CageEye mk.III";
"echosounder": {"4111-0004":{"deviceStatus":true,"transmitPower":50,"pingMode":"Auto","pingInterval":100,"transducers":[{"name":"tet","hardware_channel":1,"software_channel":1,"recording":false,"window":false},{"name":"tete","hardware_channel":2,"software_channel":2,"recording":false,"window":false},{"name":"tet","hardware_channel":3,"software_channel":3,"recording":false,"window":false},{"name":"tete","hardware_channel":4,"software_channel":4,"recording":false,"window":false},{"name":"tete","hardware_channel":5,"software_channel":5,"recording":false,"window":false},{"name":"tete","hardware_channel":6,"software_channel":6,"recording":false,"window":false}]} };
//info of selected echosounder
"deviceName":"4111-0004";// will not be present for "Merdøye mk.I"
"newStatus": false // new status to be set
}
and following response is expected
{"4111-0004":{"deviceStatus":false,"transmitPower":50,"pingMode":"Auto","pingInterval":100,"transducers":[{"name":"tet","hardware_channel":1,"software_channel":1,"recording":false,"window":false},{"name":"tete","hardware_channel":2,"software_channel":2,"recording":false,"window":false},{"name":"tet","hardware_channel":3,"software_channel":3,"recording":false,"window":false},{"name":"tete","hardware_channel":4,"software_channel":4,"recording":false,"window":false},{"name":"tete","hardware_channel":5,"software_channel":5,"recording":false,"window":false},{"name":"tete","hardware_channel":6,"software_channel":6,"recording":false,"window":false}]}