e2505aeac8ada109e6164c9ae25fdba28241352c
[apps/agl-service-unicens.git] / htdocs / UNICENS.html
1 <html>
2 <head>
3     <title>Unicens Simple Test</title>
4
5     <link rel="stylesheet" href="Ucs2Binding.css">
6     <script type="text/javascript" src="AFB-websock.js"></script>
7     <script type="text/javascript" src="Ucs2Binding.js"></script>
8
9 <body onload="init('ucs2_config','unicens', 'listconfig');">
10     <h1>Unicens Simple Test</h1>
11
12     <button id="connected" onclick="init('ucs2_config','unicens', 'listconfig')">Binder WS Fail</button>
13     <br><br>
14     <b>Selected HAL </b>
15     <select id='ucs2_config'></select>
16     <br>
17
18     <ol>
19     <li><button onclick="callbinder('UNICENS','subscribe', {})">Subscribe to network events</button></li>
20     <li><button onclick="callbinder('UNICENS','subscriberx', {})">Subscribe to Rx message events</button></li>
21     <li><button onclick="callbinder('UNICENS','initialise', {filename:ucs2_config})">Parse XML and Start UNICENS</button></li>
22     </ol>
23     <br>
24     <!--
25     <ol>
26     <li><button onclick="callbinder('UNICENS','writei2c', [{node: 0x270, data:[0x07,0x01,0x00]}, {node: 0x271, data:[0x07,0x01,0x00]}, {node: 0x272, data:[0x07,0x01,0x00]}] )">WriteI2c Master (100%)</button></li>
27     <li><button onclick="callbinder('UNICENS','writei2c', [{node: 0x270, data:[0x07,0x01,0x99]}, {node: 0x271, data:[0x07,0x01,0x99]}, {node: 0x272, data:[0x07,0x01,0x99]}] )">WriteI2c Master (80%)</button></li>
28     <li><button onclick="callbinder('UNICENS','writei2c', [{node: 0x270, data:[0x07,0x02,0x32]}, {node: 0x271, data:[0x07,0x02,0x32]}, {node: 0x272, data:[0x07,0x02,0x32]}] )">WriteI2c Master (60%)</button></li>
29     <li><button onclick="callbinder('UNICENS','writei2c', [{node: 0x270, data:[0x07,0x02,0xCB]}, {node: 0x271, data:[0x07,0x02,0xCB]}, {node: 0x272, data:[0x07,0x02,0xCB]}] )">WriteI2c Master (40%)</button></li>
30     <li><button onclick="callbinder('UNICENS','writei2c', [{node: 0x270, data:[0x07,0x03,0x64]}, {node: 0x271, data:[0x07,0x03,0x64]}, {node: 0x272, data:[0x07,0x03,0x64]}] )">WriteI2c Master (20%)</button></li>
31     <li><button onclick="callbinder('UNICENS','writei2c', [{node: 0x270, data:[0x07,0x03,0xFF]}, {node: 0x271, data:[0x07,0x03,0xFF]}, {node: 0x272, data:[0x07,0x03,0xFF]}] )">WriteI2c Master (0%)</button></li>
32     </ol>
33     -->
34     <br>
35     <ol>
36     <li><button onclick="callbinder('UNICENS','writei2c', {node: 0x270, data:[0x07,0x03,0xFF]})">WriteI2c to 0x270 (mute)</button></li>
37     <li><button onclick="callbinder('UNICENS','writei2c', {node: 0x271, data:[0x07,0x03,0xFF]})">WriteI2c to 0x271 (mute)</button></li>
38     <li><button onclick="callbinder('UNICENS','writei2c', {node: 0x272, data:[0x07,0x03,0xFF]})">WriteI2c to 0x272 (mute)</button></li>
39     </ol>
40     <ol>
41     <li><button onclick="callbinder('UNICENS','sendmessage', {node: 0x270, msgid: 0x5AC4, data:[0x01,0x02,0xFF]})">Send ControlMsg to 0x270</button></li>
42     </ol>
43     <br>
44     <br>
45     <div id="main" style="visibility:hidden">
46     <ol>
47     <li>Question <pre id="question"></pre>
48     <li>Response <pre id="output"></pre>
49     <li>Events: <pre id="outevt"></pre>
50     </ol>
51     </div>