-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathindex.html
286 lines (275 loc) · 18.9 KB
/
index.html
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
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
<!DOCTYPE html>
<!--
Copyright 2022 by Michael Ammann (@mazgch)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="profile" href="http://www.w3.org/1999/xhtml/vocab">
<meta name="MobileOptimized" content="width">
<meta name="HandheldFriendly" content="true">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>mazg.ch - HPG Monitor</title>
<meta property="og:site_name" content="mazgch">
<meta property="og:type" content="website">
<meta property="og:title" content="HPG Monitor">
<meta property="og:url" content="http://hpg.mazg.ch">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@mazgch">
<meta name="twitter:creator" content="@mazgch">
<meta name="twitter:title" content="HPG Monitor">
<meta name="twitter:url" content="http://hpg.mazg.ch">
<meta name="theme-color" content="#ffffff">
<link rel="canonical" href="http://hpg.mazg.ch">
<link rel="shortlink" href="http://hpg.mazg.ch">
<link rel="icon" href="/favicon.ico" sizes="any">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="manifest" href="/site.webmanifest">
<!-- All js & css minified -->
<!-- https://cdn.jsdelivr.net/combine/gh/mazgch/hpg/docs/js/console.min.js,gh/mazgch/hpg/docs/js/monitor.min.js,gh/mazgch/hpg/docs/js/device.min.js,gh/mazgch/hpg/docs/js/device.min.js,npm/[email protected]/dist/feather.min.js,npm/[email protected]/dist/chart.min.js,npm/[email protected]/dist/ol.js,npm/[email protected]/src-min-noconflict/ace.js
https://cdn.jsdelivr.net/combine/gh/mazgch/hpg/docs/css/monitor.min.css,/npm/[email protected]/dist/ol.css -->
<!-- Third party js & css -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/feather.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.umd.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/src-min-noconflict/ace.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/ol.min.js"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/ol.min.css" type="text/css" rel="stylesheet">
<!-- My own js & css -->
<script src="js/console.js"></script>
<script src="js/monitor.js"></script>
<script src="js/device.js"></script>
<script src="js/engine.js"></script>
<link href="css/monitor.css" type="text/css" rel="stylesheet" media="all">
</head>
<body>
<div id="crash-message"></div>
<div class="page">
<div style="margin-top: 1em; padding-top:1em;" class="section">
<svg style="vertical-align:middle; display:inline;" id="mazgch_logo" width="3em" height="3em" viewBox="0 0 600 600" stroke-linecap="round" stroke-width="20" fill="none" stroke="null" xmlns="http://www.w3.org/2000/svg">
<defs>
<g id="sv">
<path id="sb" stroke="#eb0000" d="m50,300c0,-138.12156 111.87845,-250 250,-250"/>
<circle id="sc" fill="#eb0000" cx="300" cy="50" r="25"/>
</g>
</defs>
<title>mazgch</title>
<circle id="rb" fill="#eb0000" cx="300" cy="300" r="200" />
<g id="rs">
<use id="r1" x="0" y="0" href="#sv" transform="rotate(45 300 300)"/>
<use id="r2" x="0" y="0" href="#sv" transform="rotate(165 300 300)"/>
<use id="r3" x="0" y="0" href="#sv" transform="rotate(285 300 300)"/>
</g>
<g id="w">
<circle id="wb" fill="#fff" cx="230" cy="370" r="50" />
<g id="ws" stroke="#fff" >
<path id="w1" d="m230,280c50,0 90,40 90,90" />
<path id="w2" d="m230,230c77.5,0 140,62.5 140,140" />
<path id="w3" d="m230,180c105,0 190,85.0 190,190" />
</g>
</g>
</svg>
<h1 style="vertical-align:middle; display:inline">mazg.ch - HPG Monitor</h1>
<div class="overlay_ctrl" style="top:0.5em;right:0.5em;">
<div class="overlay_button" onclick="window.clickLink('https://twitter.com/mazgch/');" title="Twitter @mazgch"><i data-feather="twitter"></i></div>
<div class="overlay_button" onclick="window.clickLink('https://www.linkedin.com/in/michael-ammann/');" title="LinkedIn"><i data-feather="linkedin"></i></div>
<div class="overlay_button" onclick="window.clickLink('https://github.com/mazgch/hpg');" title="Github Project Documentation"><i data-feather="github"></i></div>
<div class="overlay_button" onclick="window.clickLink('https://youtube.com/playlist?list=PL2_anu1A0T7t96QxOAa9ln5qbBdUn92Uo');" title="Youtube"><i data-feather="youtube"></i></div>
</div>
</div>
<div id="tile_device">
<h2>Device</h2>
<p>This section provides useful information about the device and its software.</p>
<div hidden id="discover" class="modal">
<div class="page">
<div class="modal-content">
<div id="modal-close" class="overlay_ctrl" style="top:0.5em;right:0.5em;">
<i class="overlay_button" data-feather="x"></i>
</div>
<h2>Discover Devices</h2>
<p>Scan your local network for HPG solution devices and their assigned IP address.
Local networks may have IP addresses in these ranges: 10.0.0.0 - 10.255.255.255, 172.16.0.0 - 172.31.255.255 or 192.168.0.0 - 192.168.255.255.</p>
<fieldset>
<input type="radio" id="ios" name="scan-ips" value="172.20.10.0 - 15"><label for="ios"> <b>iOS Personal Hotspot:</b>172.20.10.0 - 15</label><br>
<input type="radio" id="android" name="scan-ips" value="192.168.42.2 - 254"><label for="android"> <b>Android Hotspot or Tethering:</b>192.168.42.2 - 254</label><br>
<input type="radio" id="windows" name="scan-ips" value="192.168.137.2 - 254"><label for="windows"> <b>Windows Mobile Hotspot:</b>192.168.137.2 - 254</label><br>
<input type="radio" id="local" name="scan-ips" value="scan-range" checked><label for="local"> <b>Local IP range:</b></label>
<input id="scan-range" type="text" value="192.168.0.2 - 254" pattern="\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\s*(-\s*\d{1,3})?(:\d{1,5})?(\/ws)?"
placeholder="192.168.0.from[-to]:port/ws" oninput="if (typeof this.reportValidity === 'function') {this.reportValidity();}" ><br>
</fieldset>
<p style="text-align: center;"><button id="scan-devices" >Start discovery scan</button></p>
<table class="table"><tr hidden id='scan-results'><th>Device</th><th>IP</th><th> </th><th> </th></tr></table>
<p>If your device in undiscoverable, contact your network administrator or connect the USB port of the to device to a computer.
You can observe the assigned IP using a serial terminal application on the console output of the device (serial port: CP210x USB to UART Bridge, baud rate: 115'200). </p>
</div>
</div>
</div>
<div class="section">
<table class="table" style="table-layout:fixed">
<tr>
<th style="width:40%;">Parameter</th>
<th style="width:60%;">Value</th>
</tr>
<tr hidden><td>Device name</td> <td class="dbvalue" id="dev_name"></td></tr>
<tr> <td>Device status</td> <td class="dbvalue" id="dev_status"></td></tr>
<tr> <td>Device IP</td> <td class="dbvalue" id="dev_ip"></td></tr>
<tr> <td>Device socket</td> <td class="dbvalue" id="dev_socket"></td></tr>
<tr hidden><td>Technology</td> <td class="dbvalue" id="dev_tech"></td></tr>
<tr hidden><td>Product / series</td> <td class="dbvalue" id="dev_prod"></td></tr>
<tr hidden><td>Image</td> <td class="dbvalue" id="dev_img"></td></tr>
<tr hidden><td>Description</td> <td class="dbvalue" id="dev_descr"></td></tr>
<tr hidden><td>Module</td> <td class="dbvalue" id="dev_mod"></td></tr>
<tr hidden><td>Type number</td> <td class="dbvalue" id="dev_typenum"></td></tr>
<tr hidden><td>Hardware version</td> <td class="dbvalue" id="dev_hw"></td></tr>
<tr hidden><td>Rom version</td> <td class="dbvalue" id="dev_rom"></td></tr>
<tr hidden><td>Flash version</td> <td class="dbvalue" id="dev_flash"></td></tr>
<tr hidden><td>Software extension</td> <td class="dbvalue" id="dev_ext"></td></tr>
<tr hidden><td>Protocol version</td> <td class="dbvalue" id="dev_prot"></td></tr>
<tr hidden><td>IMEI number</td> <td class="dbvalue" id="dev_imei"></td></tr>
<tr hidden><td>ICCID number</td> <td class="dbvalue" id="dev_iccid"></td></tr>
<tr hidden><td>IMSI number</td> <td class="dbvalue" id="dev_imsi"></td></tr>
<tr hidden><td>RSSI</td> <td class="dbvalue" id="dev_rssi"></td></tr>
<tr hidden><td>BER</td> <td class="dbvalue" id="dev_ber"></td></tr>
<tr hidden><td>Available networks</td> <td class="dbvalue" id="dev_net"></td></tr>
<tr hidden><td>BT/BLE MAC address</td> <td class="dbvalue" id="dev_mac_bt"></td></tr>
<tr hidden><td>WIFI STA MAC address</td> <td class="dbvalue" id="dev_mac_sta"></td></tr>
<tr hidden><td>WIFI AP MAC address</td> <td class="dbvalue" id="dev_mac_ap"></td></tr>
<tr hidden><td>Ethernet MAC address</td> <td class="dbvalue" id="dev_mac_eth"></td></tr>
</table>
<div class="overlay_ctrl" style="top:0.5em;right:0.5em;">
<div class="overlay_button" onclick="Device.action('discover');" title="Discover devices in your local network"><i data-feather="search"></i></div>
<div class="overlay_button" onclick="Device.action('settings');" title="Device Configuration Portal"><i data-feather="settings"></i></div>
<div class="overlay_button" onclick="Device.action('identify');" title="Identify device and get version information"><i data-feather="info"></i></div>
</div>
</div>
</div>
<div hidden id="tile_parameter">
<h2>Interface</h2>
<p>In this section you to explore parameters of the device interface. Click on a row to reveal its statistics or a graph of an item.</p>
<div class="section">
<table class="table" style="table-layout:fixed">
<tr id="dbInt">
<th style="width:40%;">Parameter</th>
<th style="width:25%;" class="right">Value</th>
<th style="width:35%;">Unit</th>
</tr>
</table>
<div class="overlay_ctrl" style="top:0.5em;right:0.5em;">
<div class="overlay_button" title="Communication activity"><i id="status_led" data-feather="circle"></i></div>
</div>
</div>
</div>
<div hidden id="tile_message">
<h2>Messages & Protocols</h2>
<p>This application communicates with the device using messages. You can explore the individual messages and protocols that are received from or sent to the device. Click on a message to reveal the details or binary data. The filter box allows you to quickly search the most recent messages. To send a message to a device, simply start typing the message and press enter. You can also export the data as files that can be easily shared with experts in the <a target="_blank" href="https://portal.u-blox.com">u-blox support portal</a> or analysed with <a target="_blank" href="https://www.u-blox.com/en/evk-search?product_class=Evaluation%2520software">u-blox evaluation tools</a>.</p>
<div class="section textfield">
<label for="console_filter">Filter messages<span class="form-required"
title="Examples:
AT to filter only AT messages
/UBX|NMEA/ to filter for any NMEA or UBX messages.
/^(?!.*(RTCM|UNKNOWN))/ messages containing not RTCM and UNKNOWN">*</span> using <a target="_blank" href="https://developer.mozilla.org/docs/Web/JavaScript/Guide/Regular_Expressions">regular expressions</a></label>
<input id="console_filter" type="text" size="512" maxlength="512" class="preformated"
autocomplete="off" autocapitalize="off" spellcheck="false">
</div>
<div class="section">
<div class="framed console" id="console_data" style="height:30em;"></div>
<div class="overlay_ctrl" style="top:0.5em;right:1.2em;" >
<div class="overlay_button" id="console_logfile" title="Export as Unicode text file"><i data-feather="file-text"></i></div>
<div class="overlay_button" id="console_ubxfile" title="Export as UBX binary file (u-center compatible)"><i data-feather="file"></i></div>
<div class="overlay_button" id="console_clear" title="Clear the console"><i data-feather="trash"></i></div>
<div class="overlay_button" id="console_down" hidden title="Scroll to latest message"><i data-feather="chevrons-down"></i></div>
</div>
</div>
<div class="autocomplete section textfield">
<label for="console_send">Send TEXT, AT, NMEA or UBX messages<span class="form-required"
title="Create a TEXT or AT message by simply writing the text.
The carriage return will be appended automatically.
Create a NMEA message by starting with a $ followed by the text.
The checksum, carriage return and line feed sequence can be omitted
and will be appended automatically.
Create a UBX message by UBX-CLS-ID followed by the payload in one of
these formats:
"text" a quoted string
[ byte, ... ] an array of bytes use values 0-255, hex allowed 0x
{ key:number, key:"text"... } a key/value specification
The UBX header and checksum are automatically calculated and added
to the payload.
Pressing enter in this field will send any message.">*</span></label>
<input id="console_send" type="text" size="512" maxlength="512" class="preformated"
autocomplete="off" autocapitalize="off" spellcheck="false">
</div>
</div>
<div hidden id="tile_automate">
<h2>JavaScript Automation</h2>
<p>You can run useful automation tasks and examples in this section.</p>
<div class="section">
<label for="console_template">Template</label>
<select id="console_template" class="form-item"></select>
</div>
<div class="section">
<div class="form-item framed editor" id="console_editor" style="height:30em;"></div>
<div class="overlay_ctrl" style="left:0.5em;bottom:0.5em;">
<div class="overlay_button" id="console_execute" title="Execute"><i data-feather="play-circle"></i></div>
<div class="overlay_button" hidden id="console_abort" title="Abort execution"><i data-feather="stop-circle"></i></div>
</div>
</div>
</div>
<div hidden id="tile_position">
<h2>Position Information</h2>
<p>This section shows you the different parameters that are relevant to a positioning function. Click on a row in the table to reveal its statistics or a graph of an item.</p>
<div hidden class="section framed" id="map" style="height:30em;"></div>
<div class="section">
<table class="table" style="table-layout:fixed">
<tr id="db">
<th style="width:40%;">Parameter</th>
<th style="width:25%;" class="right">Value</th>
<th style="width:35%;">Unit</th>
</tr>
</table>
<div class="overlay_ctrl" style="top:0.5em;right:0.5em;">
<div class="overlay_button" id="db_save" title="Export values as csv/Excel file"><i data-feather="file-plus"></i></div>
<div class="overlay_button" id="db_kml" title="Export values as kml/Google Earth file"><i data-feather="map"></i></div>
<div class="overlay_button" id="db_clear" title="Clear values"><i data-feather="trash"></i></div>
</div>
</div>
</div>
<div hidden id="tile_satellite">
<h2>Satellite Information</h2>
<p>Many positioning devices such as GPS/GNSS receivers use satellites to determine location of the antenna of the device. In this section you can explore the status of the different signals received and perform a restart of the positioning function. In case your device does not receive any signals make sure you have the antenna connected and placed outdoors in a location with good visibility to the sky.</p>
<div class="section framed" style="display:flex;justify-content:center;">
<canvas id="svs2" style="height:30em;max-height:30em"></canvas>
</div>
<div class="section framed">
<canvas id="svs" style="height:30em;max-height:30em;padding-left:7px;"></canvas>
<div class="overlay_ctrl" style="top:0.5em;left:0.5em;">
<div class="overlay_button" onclick="Device.action('hotstart');" title="Hot start" ><i style="fill:rgb(160, 40, 70);" data-feather="thermometer"></i></div>
<div class="overlay_button" onclick="Device.action('warmstart');" title="Warm start"><i style="fill:rgb(255, 190, 40);" data-feather="thermometer"></i></div>
<div class="overlay_button" onclick="Device.action('coldstart');" title="Cold start"><i style="fill:rgb(70, 100, 180);" data-feather="thermometer"></i></div>
</div>
</div>
<div class="section">
<table class="table">
<tr>
<th>System</th>
<th class="center">Satellite</th>
<th class="center">Used</th>
<th class="center">Signal</th>
<th class="right">Elev</th>
<th class="right">Azim</th>
</tr>
<tbody id='sv_list'></tbody>
</table>
</div>
</div>
</div>
</body>
</html>