-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
213 lines (198 loc) · 12.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#7090b7" />
<meta name="Description" content="Bürkert Connector">
<meta name="mobile-web-app-capable" content="yes">
<link rel="stylesheet" type="text/css" href="./StyleSheet.css" />
<link rel="manifest" href="A2HS_Manifest.json" />
<link rel="icon" href=icon/buerkert_logo_icon_144x144.png sizes="144x144" type="image/png">
<meta name="apple-mobile-web-app-capable" content="yes">
<link rel="apple-touch-icon" href=icon/buerkert_logo_icon_144x144.png sizes="144x144" type="image/png">
<title>Bürkert Connector Webpage</title>
</head>
<body>
<div class="Header">
<a href="https://www.burkert.com/en"><img src="images/Buerkert_Logo.png" alt="Bürkert"></a>
<h1>Connector</h1>
</div>
<div class="NavMenu">
<a href="./index.html" class="activeTab">Main</a>
<a href="./Help.html" class="inactiveTab">Help</a>
</div>
<div class="Main">
<h1>Bluetooth Connect</h1>
<button type="button" id="Connect" style="width:100%" class="inactiveTab">Bluetooth Connect</button>
<div id="IfConnected" hidden="hidden">
<button id="Disconnect" style="width:100%" class="inactiveTab">Disconnect</button>
<button id="GUIButtonSimpleAccess" style="width:33.33%;float:left" class="activeTab">Read</button>
<button id="GUIButtonFullAccess" style="width:33.33%;float:left" class="inactiveTab">All messages </button>
<button id="TerminalButton" style="width:33.33%;float:left" class="inactiveTab">Terminal</button>
<div id="GUIContainerSimpleAccess" class="GUIContainer">
<form onsubmit="return (FormularSimpleRead(this) && false)">
<p>nodeID</p><input name="nodeId" type="number" min="0" required />
<p>index</p><input name="index" type="number" min="0" required />
<p>subIndex</p><input name="subIndex" type="number" min="0" required>
<input type="submit" value="Submit">
</form>
</div>
<div class="GUIContainer" id="GUIContainerFullAccess" hidden="hidden">
<select id="PBList" style="width:100%">
<option>SDO</option>
<option>PDO</option>
<option>Event</option>
<option>AddNote</option>
<option>RemoveNode</option>
<option>Command</option>
<option>SYNC</option>
<option>SdoProcess</option>
<option>Request</option>
<option>RequestProcess</option>
<option>RawData</option>
<option>CanMeasure</option>
</select>
<form id="SDO" onsubmit="return (FormularPBFunction(this) && false)">
<p>nodeID</p><input name="nodeId" type="number" min="0" required />
<p>index</p><input name="index" type="number" min="0" required />
<p>subIndex</p><input name="subIndex" type="number" min="0" required />
<p>control</p>
<select name="control" required>
<option value="0">READ</option>
<option value="1">WRITE</option>
<option value="2">RESPONSE</option>
<option value="3">ABORT</option>
<option value="4">READ_BLOCK</option>
<option value="5">WRITE_BLOCK</option>
</select>
<p>data</p><input name="data" />
<p>totalBlockLen</p><input name="totalBlockLen" type="number" min="0" />
<p>timestamp</p><input name="timestamp" type="number" min="0" />
<input type="submit" value="Submit">
</form>
<form id="PDO" onsubmit="return (FormularPBFunction(this) && false)" hidden="hidden">
<p>nodeID</p><input name="nodeId" type="number" min="0" required />
<p>pdoNumber</p><input name="pdoNumber" type="number" min="0" required />
<p>data</p><input name="data" required />
<p>timestamp</p><input name="timestamp" type="number" min="0" required />
<input type="submit" value="Submit">
</form>
<form id="Event" onsubmit="return (FormularPBFunction(this) && false)" hidden="hidden">
<p>nodeID</p><input name="nodeId" type="number" min="0" required />
<p>data</p><input name="data" required />
<p>timestamp</p><input name="timestamp" type="number" min="0" required />
<p>eventType</p>
<select name="eventType" required>
<option value="0">EMERGENCY</option>
<option value="1">BDO</option>
<option value="2">SERVERINFO</option>
<option value="3">SERVERERROR</option>
<option value="4">NMT</option>
</select>
<input type="submit" value="Submit">
</form>
<form id="AddNote" onsubmit="return (FormularPBFunction(this) && false)" hidden="hidden">
<p>nodeID</p><input name="nodeId" type="number" min="0" required />
<p>deviceStatus</p><input name="deviceStatus" type="number" min="0" />
<input type="submit" value="Submit">
</form>
<form id="RemoveNode" onsubmit="return (FormularPBFunction(this) && false)" hidden="hidden">
<p>nodeID</p><input name="nodeId" type="number" min="0" required />
<input type="submit" value="Submit">
</form>
<form id="Command" onsubmit="return (FormularPBFunction(this) && false)" hidden="hidden">
<p>eventType</p>
<select name="eventType" required>
<option value="0">SHUTDOWN</option>
<option value="1">RESTART_SOCKET</option>
</select>
<input type="submit" value="Submit">
</form>
<form id="SYNC" onsubmit="return (FormularPBFunction(this) && false)" hidden="hidden">
<p>flags</p><input name="flags" type="number" min="0" required />
<input type="submit" value="Submit">
</form>
<form id="SdoProcess" onsubmit="return (FormularPBFunction(this) && false)" hidden="hidden">
<p>nodeID</p><input name="nodeId" type="number" min="0" required />
<p>index</p><input name="index" type="number" min="0" required />
<p>subIndex</p><input name="subIndex" type="number" min="0" required>
<p>value</p><input name="value" type="number" min="0" required>
</form>
<form id="Request" onsubmit="return (FormularPBFunction(this) && false)" hidden="hidden">
<p>requestType</p>
<select name="requestType" required>
<option value="0">Complete</option>
<option value="1">SearchCANopenDevices</option>
<option value="2">GetLSS_Slave</option>
<option value="3">CnfLSS_Slave</option>
<option value="4">CanRawData</option>
<option value="5">CanMeasure</option>
</select>
<p>nodeID</p><input name="nodeId" type="number" min="0" />
<p>baudrate</p><input name="baudrate" type="number" min="0" />
<p>result</p><input name="result" type="number" min="0" />
<p>vendorID</p><input name="vendorID" type="number" min="0" />
<p>productCode</p><input name="productCode" type="number" min="0" />
<p>revisionNumber</p><input name="revisionNumber" type="number" min="0" />
<p>serialNumber</p><input name="serialNumber" type="number" min="0" />
<p>rawDataActive</p><input name="rawDataActive" type="number" min="0" />
<p>canMeasureActive</p><input name="canMeasureActive" type="number" min="0" />
<input type="submit" value="Submit">
</form>
<form id="RequestProcess" onsubmit="return (FormularPBFunction(this) && false)" hidden="hidden">
<p>value</p><input name="value" type="number" min="0" required>
<input type="submit" value="Submit">
</form>
<form id="RawData" onsubmit="return (FormularPBFunction(this) && false)" hidden="hidden">
<p>cobId</p><input name="cobId" type="number" min="0" required />
<p>data</p><input name="data" required />
<p>timeStamp</p><input name="timeStamp" type="number" min="0" required>
<p>direction</p><input name="direction" type="checkbox">
<input type="submit" value="Submit">
</form>
<form id="CanMeasure" onsubmit="return (FormularPBFunction(this) && false)" hidden="hidden">
<p>errorFlags</p><input name="errorFlags" type="number" min="0" required>
<p>canHRise</p><input name="canHRise" type="number" min="0" required>
<p>canHFall</p><input name="canHFall" type="number" min="0" required>
<p>canLRise</p><input name="canLRise" type="number" min="0" required>
<p>canLFall</p><input name="canLFall" type="number" min="0" required>
<input type="submit" value="Submit">
</form>
</div>
<div id="TerminalContainer" hidden="hidden">
<p id="DevName" style="width:100%;text-align:center;"></p>
<p><br /></p>
<div class="Terminal" id="Terminal"></div>
<input type="text" id="SendData" style="width:75%;float:left" autocomplete="off" placeholder="Send THIS..." />
<button type="button" id="SendButton" style="width:25%;float:left">Send</button>
</div>
</div>
<p><br /><br /></p>
<h1>Scan QR-Code</h1>
<button id="qr-Button" style="width:100%" class="inactiveTab">Use QR Scanner</button>
<div id="qr-Container" hidden="hidden">
<button id="qr-cam-change" class="inactiveTab" hidden="hidden" style="width:100%">Switch camera</button>
<video muted autoplay playsinline id="qr-video" style="width:80%;margin-left:10%"></video>
<b>Last QR-code: </b>
<p id="qr-result">...</p>
</div>
<p><br /><br /></p>
</div>
<div class="Footer">
<p><br /><br /> <b>Bürkert Fluid Control Systems</b> <br /> Bürkert Werke GmbH & Co. KG<p>
<p style="float:left"> </p>
<a href="https://www.facebook.com/Buerkert.Fluidtechnik"><img src="icon/Facebook.png" alt="Facebook"></a>
<a href="https://twitter.com/buerkertfluid"><img src="icon/Twitter.png" alt="Twitter"></a>
<a href="https://plus.google.com/u/0/111656923746589474222/posts"><img src="icon/GooglePlus.png" alt="GooglePlus"></a>
<a href="https://www.linkedin.com/company/burkert-fluid-control-systems"><img src="icon/LinkedIn.png" alt="LinkedIn"></a>
<a href="https://www.xing.com/companies/b%C3%BCrkertfluidcontrolsystems"><img src="icon/Xing.png" alt="Xing"></a>
<a href="https://www.youtube.com/user/BuerkertFluid"><img src="icon/Youtube.png" alt="Youtube"></a>
</div>
<script src="protobuf/protobuf.js" type="text/javascript"></script>
<script src="Bluetooth_Transfer_Protobuf.js" type="text/javascript"></script>
<script src="QR-Scanner/instascan.min.js" type="text/javascript"></script>
<script src="QR-Scanner/QR-Scanner.js" type="text/javascript"></script>
<script src="Page1Logic.js" type="text/javascript"></script>
</body>
</html>