-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
70 lines (66 loc) · 2.23 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
<!DOCTYPE html>
<html>
<head>
<title>Data Over Audio</title>
<link rel="stylesheet" type="text/css" href="style.css" />
<script src="index.js" type="module" type="text/javascript"></script>
</head>
<body>
<h1>Data Over Audio</h1>
<div class="panels" id="panel-container">
<div>
<h2>Data</h2>
<div>
Original Bytes: <span id="original-byte-count"></span><br>
Packetization Bytes: <span id="packetization-byte-count"></span><br>
Packetization Bits: <span id="packetization-bit-count"></span><br>
Packet Count: <span id="packet-count"></span><br>
Total Segments: <span id="total-segments"></span><br>
<h3>Utilization</h3>
Unused bits in last packet: <span id="last-packet-unused-bit-count"></span><br>
</div>
</div>
<div>
<h2>Decoded</h2>
<div>
Bytes: <span id="received-packet-original-bytes">N/A</span><br>
Length CRC: <span id="received-packet-original-bytes-crc">N/A</span><br>
Data CRC: <span id="received-packet-original-data-crc">N/A</span><br>
<h4>Errors</h4>
Encoded Segments: <span id="received-raw-bits-error-percent">N/A</span>%<br>
Encoded Packets: <span id="received-encoded-bits-error-percent">N/A</span>%<br>
Decoded Packets: <span id="received-decoded-bits-error-percent">N/A</span>%<br />
</div>
</div>
<div>
<h2>Selected</h2>
<div>
Channel: <span id="selected-channel">N/A</span><br>
Segment: <span id="selected-segment">N/A</span><br>
Bit: <span id="selected-bit">N/A</span><br>
<div id="selected-samples"></div>
</div>
</div>
<div>
<h2>Audio Spectrum</h2>
<div>
Frequency Resolution: <span id="frequency-resolution">N/A</span><br>
Frequency Count: <span id="frequency-count">N/A</span><br>
Sample Rate: <span id="audio-context-sample-rate">N/A</span> per second.<br />
</div>
</div>
<div>
<h2>Receiving</h2>
<div>
Samples Per Bit: <span id="samples-per-bit">0</span><br>
</div>
</div>
<div>
<h2>Channel Tuning</h2>
<div>
<canvas id="channel-frequency-graph" width="160" height="160"></canvas>
</div>
</div>
</div>
</body>
</html>