agl-service-unicens: modify commands in web-ui 05/17105/1
authorTobias Jahnke <tobias.jahnke@microchip.com>
Tue, 9 Oct 2018 13:48:22 +0000 (15:48 +0200)
committerTobias Jahnke <tobias.jahnke@microchip.com>
Tue, 9 Oct 2018 13:48:22 +0000 (15:48 +0200)
Bug-AGL: SPEC-1759

- Modifies microphone front-end commands in web-ui
- new: set color scheme, get direction of audio
- modified: set mode, set direction

Change-Id: I203d1add6a1ce65662aac6d373e978ed424b7d79
Signed-off-by: Tobias Jahnke <tobias.jahnke@microchip.com>
htdocs/UNICENS.html

index 8badf8d..624052e 100644 (file)
     <br>
 
     <h1>Microphone Front-End</h1>
-    <h2>Mode</h2>
-    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1000, data:'AQA='})">Off</button><!--01 00 -->
-    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1000, data:'AQE='})">Idle</button><!--01 01 -->
-    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1000, data:'AQI='})">Listening</button><!--01 02 -->
-    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1000, data:'AQM='})">Processing</button><!--01 03 -->
-    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1000, data:'AQQ='})">Error</button><!--01 04 -->
-    <h2>Direction</h2>
-    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1001, data:'AQAA'})">0</button><!--01 00 00 -->
-    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1001, data:'AQBa'})">90</button><!--01 00 5A -->
-    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1001, data:'AQC0'})">180</button><!--01 00 B4 -->
-    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1001, data:'AQEO'})">270</button><!--01 01 0E -->
-
+    <h2>Set Color Scheme</h2>
+    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1000, data:'AMwAzDP/mf8AAA=='})">#1</button><!--00 CC 00 CC 33 FF 99 FF 00 00 --><!--00 99 33 FF 33 FF 99 FF 00 00 -->
+    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1000, data:'ADOZ/5n/M/9mZg=='})">#2</button><!--00 33 99 FF 99 FF 33 FF 66 66 -->
+    <h2>Set Mode</h2>
+    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1001, data:'AAA='})">Off</button><!--00 00 -->
+    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1001, data:'AAE='})">Idle</button><!--00 01 -->
+    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1001, data:'AAI='})">Listening</button><!--00 02 -->
+    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1001, data:'AAM='})">Processing</button><!--00 03 -->
+    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1001, data:'AAQ='})">Error</button><!--00 04 -->
+    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1001, data:'AAY='})">DOA</button><!--00 06 -->
+    <h2>Set Direction LED</h2>
+    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1002, data:'AAAA'})">0</button><!--00 00 00 -->
+    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1002, data:'AABa'})">90</button><!--00 00 5A -->
+    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1002, data:'AAC0'})">180</button><!--00 00 B4 -->
+    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1002, data:'AAEO'})">270</button><!--00 01 0E -->
+    <h2>Get Direction Of Audio (DOA)</h2>
+    <button class="ucsCtrlButton" onclick="callbinder('UNICENS','sendmessage', {node: 0x520, msgid: 0x1003, data:'AQ=='})">Get DOA</button><!--01 -->
     <h1>Fiberdyne Amplifier Controls (Node 0x510)</h1>
     <div class="divTable">
     <div class="divTableBody">