提交 e06a8cec authored 作者: 汪显鹏's avatar 汪显鹏

增加人名控制

上级 c00b3df8
<?xml version="1.0" encoding="utf-8"?>
<PROJECT Name="[&quot;PROJECT&quot;, true]" ProjectCategory="[&quot;&quot;, true]" ProjectControlID="[&quot;&quot;, true]" ProjectDisplayName="[&quot;&quot;, true]" ProjectIOName="[&quot;&quot;, true]" ProjectModel="[&quot;&quot;, true]" ProjectPic="[&quot;&quot;, true]" ProjectSize="[[1200, 800], true]" ProjectStyle="[&quot;&quot;, true]" Startup="[&quot;BasicUsage&quot;, true]" UUID="[&quot;b858a0400f5a11e9a593d4258b878bb9&quot;, false]">
<DEVICES Name="[&quot;DEVICE&quot;, false]" UUID="[&quot;b859ffcf0f5a11e9aa32d4258b878bb9&quot;, false]">
<DEVICENODE Address="[&quot;192.168.1.234&quot;, true]" Name="[&quot;EC-8000&quot;, true]" UUID="[&quot;be2304700f5a11e9af68d4258b878bb9&quot;, false]">
<DEVICENODE Address="[&quot;192.168.1.148&quot;, true]" Name="[&quot;EC-8000&quot;, true]" UUID="[&quot;be2304700f5a11e9af68d4258b878bb9&quot;, false]">
<DEVICEIO IOIP="[&quot;&quot;, true]" IOName="[&quot;&quot;, true]" IOProtocol="[&quot;&quot;, true]" IOType="[&quot;irreader&quot;, false]" Name="[&quot;IRReader&quot;, false]" UUID="[&quot;be2304710f5a11e9aec3d4258b878bb9&quot;, false]"/>
<DEVICEIO IOIP="[&quot;&quot;, true]" IOName="[&quot;&quot;, true]" IOProtocol="[&quot;&quot;, true]" IOType="[&quot;ir&quot;, false]" Name="[&quot;IR1&quot;, false]" UUID="[&quot;be2304720f5a11e98362d4258b878bb9&quot;, false]"/>
<DEVICEIO IOIP="[&quot;&quot;, true]" IOName="[&quot;&quot;, true]" IOProtocol="[&quot;&quot;, true]" IOType="[&quot;ir&quot;, false]" Name="[&quot;IR2&quot;, false]" UUID="[&quot;be2304730f5a11e9b13cd4258b878bb9&quot;, false]"/>
......@@ -22,7 +22,7 @@
<DEVICEIO IOIP="[&quot;&quot;, true]" IOName="[&quot;&quot;, true]" IOProtocol="[&quot;&quot;, true]" IOType="[&quot;rs232&quot;, false]" Name="[&quot;COM8&quot;, false]" UUID="[&quot;be232b8c0f5a11e9a817d4258b878bb9&quot;, false]"/>
<DEVICEIO IOIP="[&quot;&quot;, true]" IOName="[&quot;&quot;, true]" IOProtocol="[&quot;&quot;, true]" IOType="[&quot;relay&quot;, false]" Name="[&quot;RELAY&quot;, false]" UUID="[&quot;be232b8d0f5a11e988f9d4258b878bb9&quot;, false]"/>
<DEVICEIO IOIP="[&quot;&quot;, true]" IOName="[&quot;&quot;, true]" IOProtocol="[&quot;&quot;, true]" IOType="[&quot;ioinput&quot;, false]" Name="[&quot;IO&quot;, false]" UUID="[&quot;be23528f0f5a11e9a5e3d4258b878bb9&quot;, false]"/>
<DEVICEIO IOIP="[&quot;TCP://192.168.1.203:12305&quot;, true]" IOName="[&quot;&quot;, true]" IOProtocol="[&quot;&quot;, true]" IOType="[&quot;network&quot;, false]" Name="[&quot;NET1&quot;, false]" UUID="[&quot;be2352900f5a11e9abdcd4258b878bb9&quot;, false]"/>
<DEVICEIO IOIP="[&quot;TCP://192.168.1.198:12305&quot;, true]" IOName="[&quot;&quot;, true]" IOProtocol="[&quot;&quot;, true]" IOType="[&quot;network&quot;, false]" Name="[&quot;NET1&quot;, false]" UUID="[&quot;be2352900f5a11e9abdcd4258b878bb9&quot;, false]"/>
<DEVICEIO IOIP="[&quot;&quot;, true]" IOName="[&quot;&quot;, true]" IOProtocol="[&quot;&quot;, true]" IOType="[&quot;network&quot;, false]" Name="[&quot;NET2&quot;, false]" UUID="[&quot;be2352910f5a11e9bc34d4258b878bb9&quot;, false]"/>
<DEVICEIO IOIP="[&quot;&quot;, true]" IOName="[&quot;&quot;, true]" IOProtocol="[&quot;&quot;, true]" IOType="[&quot;network&quot;, false]" Name="[&quot;NET3&quot;, false]" UUID="[&quot;be2352920f5a11e99cf0d4258b878bb9&quot;, false]"/>
<DEVICEIO IOIP="[&quot;&quot;, true]" IOName="[&quot;&quot;, true]" IOProtocol="[&quot;&quot;, true]" IOType="[&quot;network&quot;, false]" Name="[&quot;NET4&quot;, false]" UUID="[&quot;be2352930f5a11e98559d4258b878bb9&quot;, false]"/>
......@@ -57,6 +57,10 @@
<GUI Name="[&quot;GUI&quot;, false]" UUID="[&quot;b859ffd00f5a11e983edd4258b878bb9&quot;, false]">
<GUIGROUPNODE BackgroundSize="[[1200, 800], true]" Name="[&quot;NewGroup&quot;, true]" UUID="[&quot;770eac1e0f6311e9abe8d4258b878bb9&quot;, false]">
<GUINODE BackGroundImage="[&quot;images\\ImageBackGround.jpg&quot;, true]" Name="[&quot;BasicUsage&quot;, true]" Size="[[1200, 800], true]" UUID="[&quot;780800400f6311e981cdd4258b878bb9&quot;, false]" Z_Depth="[0, true]">
<IMAGEBUTTON Align="[0, true]" ButtonDownImage="[&quot;images\\ImageOnStates.png&quot;, true]" ButtonRepeatTime="[0, true]" ClickKeepCommandName="[&quot;&quot;, true]" ClickKeepCommandType="[0, true]" ClickUpCommandName="[&quot;&quot;, true]" ClickUpCommandType="[0, true]" CommandName="[&quot;&quot;, true]" CommandType="[1, true]" Font="[&quot;fonts\\simhei.ttf&quot;, true]" FontColor="[[0, 0, 0], true]" FontSize="[16, true]" ImagePic="[&quot;images\\ImageOffStates.png&quot;, true]" Movable="[0, true]" Name="[&quot;New Button&quot;, true]" OnClick="[&quot;hideLineStatus();&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[1028, 425], true]" Size="[[169, 87], true]" Text="[&quot;\u9690\u85cf\u72b6\u6001\u63d0\u793a&quot;, true]" UUID="[&quot;70c273f09d9211eb9da4001a7dda7111&quot;, false]"/>
<IMAGEBUTTON Align="[0, true]" ButtonDownImage="[&quot;images\\ImageOnStates.png&quot;, true]" ButtonRepeatTime="[0, true]" ClickKeepCommandName="[&quot;&quot;, true]" ClickKeepCommandType="[0, true]" ClickUpCommandName="[&quot;&quot;, true]" ClickUpCommandType="[0, true]" CommandName="[&quot;&quot;, true]" CommandType="[1, true]" Font="[&quot;fonts\\simhei.ttf&quot;, true]" FontColor="[[0, 0, 0], true]" FontSize="[16, true]" ImagePic="[&quot;images\\ImageOffStates.png&quot;, true]" Movable="[0, true]" Name="[&quot;New Button&quot;, true]" OnClick="[&quot;showLineStatus();&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[1025, 332], true]" Size="[[169, 87], true]" Text="[&quot;\u663e\u793a\u72b6\u6001\u63d0\u793a&quot;, true]" UUID="[&quot;6670b2e09d9211ebaf55001a7dda7111&quot;, false]"/>
<IMAGEBUTTON Align="[0, true]" ButtonDownImage="[&quot;images\\ImageOnStates.png&quot;, true]" ButtonRepeatTime="[0, true]" ClickKeepCommandName="[&quot;&quot;, true]" ClickKeepCommandType="[0, true]" ClickUpCommandName="[&quot;&quot;, true]" ClickUpCommandType="[0, true]" CommandName="[&quot;&quot;, true]" CommandType="[1, true]" Font="[&quot;fonts\\simhei.ttf&quot;, true]" FontColor="[[0, 0, 0], true]" FontSize="[16, true]" ImagePic="[&quot;images\\ImageOffStates.png&quot;, true]" Movable="[0, true]" Name="[&quot;New Button&quot;, true]" OnClick="[&quot;hideName();&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[1018, 215], true]" Size="[[169, 87], true]" Text="[&quot;\u9690\u85cf\u60ac\u6d6e\u5b57\u5e55\u4eba\u540d&quot;, true]" UUID="[&quot;4fe97ca09d9211ebbd13001a7dda7111&quot;, false]"/>
<IMAGEBUTTON Align="[0, true]" ButtonDownImage="[&quot;images\\ImageOnStates.png&quot;, true]" ButtonRepeatTime="[0, true]" ClickKeepCommandName="[&quot;&quot;, true]" ClickKeepCommandType="[0, true]" ClickUpCommandName="[&quot;&quot;, true]" ClickUpCommandType="[0, true]" CommandName="[&quot;&quot;, true]" CommandType="[1, true]" Font="[&quot;fonts\\simhei.ttf&quot;, true]" FontColor="[[0, 0, 0], true]" FontSize="[16, true]" ImagePic="[&quot;images\\ImageOffStates.png&quot;, true]" Movable="[0, true]" Name="[&quot;New Button&quot;, true]" OnClick="[&quot;showName();&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[1021, 124], true]" Size="[[169, 87], true]" Text="[&quot;\u663e\u793a\u60ac\u6d6e\u5b57\u5e55\u4eba\u540d&quot;, true]" UUID="[&quot;4d553d309d9211eba222001a7dda7111&quot;, false]"/>
<IMAGEBUTTON Align="[0, true]" ButtonDownImage="[&quot;images\\ImageOnStates.png&quot;, true]" ButtonRepeatTime="[0, true]" ClickKeepCommandName="[&quot;&quot;, true]" ClickKeepCommandType="[0, true]" ClickUpCommandName="[&quot;&quot;, true]" ClickUpCommandType="[1, true]" CommandName="[&quot;&quot;, true]" CommandType="[1, true]" Font="[&quot;fonts\\simhei.ttf&quot;, true]" FontColor="[[0, 0, 0], true]" FontSize="[16, true]" ImagePic="[&quot;images\\ImageOffStates.png&quot;, true]" Movable="[0, true]" Name="[&quot;New Button&quot;, true]" OnClick="[&quot;setPageShow('AdvancedUsage');&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[1018, 27], true]" Size="[[169, 87], true]" Text="[&quot;\u9ad8\u7ea7\u7528\u6cd5&quot;, true]" UUID="[&quot;a28f3c4150b911eb91531c1b0d7c67d5&quot;, false]"/>
<IMAGEBUTTON Align="[0, true]" ButtonDownImage="[&quot;images\\ImageOnStates.png&quot;, true]" ButtonRepeatTime="[0, true]" ClickKeepCommandName="[&quot;&quot;, true]" ClickKeepCommandType="[0, true]" ClickUpCommandName="[&quot;&quot;, true]" ClickUpCommandType="[0, true]" CommandName="[&quot;&quot;, true]" CommandType="[1, true]" Font="[&quot;fonts\\\u9ed1\u4f53.ttf&quot;, true]" FontColor="[[0, 0, 0], true]" FontSize="[16, true]" ImagePic="[&quot;images\\ImageOffStates.png&quot;, true]" Movable="[0, true]" Name="[&quot;New Button&quot;, true]" OnClick="[&quot;startSubTitle(1,\&quot;192.168.1.165:1883\&quot;);&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[839.951111111111, 402.54999999999995], true]" Size="[[169, 87], true]" Text="[&quot;\u8baf\u98de\u8bed\u97f32&quot;, true]" UUID="[&quot;badabf72c69b11eabdbc1c1b0d7c67d5&quot;, false]"/>
<IMAGEBUTTON Align="[0, true]" ButtonDownImage="[&quot;images\\ImageOnStates.png&quot;, true]" ButtonRepeatTime="[0, true]" ClickKeepCommandName="[&quot;&quot;, true]" ClickKeepCommandType="[0, true]" ClickUpCommandName="[&quot;&quot;, true]" ClickUpCommandType="[0, true]" CommandName="[&quot;&quot;, true]" CommandType="[1, true]" Font="[&quot;fonts\\\u9ed1\u4f53.ttf&quot;, true]" FontColor="[[0, 0, 0], true]" FontSize="[16, true]" ImagePic="[&quot;images\\ImageOffStates.png&quot;, true]" Movable="[0, true]" Name="[&quot;New Button&quot;, true]" OnClick="[&quot;setSubtitleModel(\&quot;center\&quot;,\&quot;multiLine\&quot;);&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[839.951111111111, 305.54999999999995], true]" Size="[[169, 87], true]" Text="[&quot;\u8bbe\u7f6e\u5b57\u5e55\u6a21\u5f0fcenter&quot;, true]" UUID="[&quot;73f05e51c69911ea90eb1c1b0d7c67d5&quot;, false]"/>
......@@ -77,7 +81,7 @@
<IMAGEBUTTON Align="[0, true]" ButtonDownImage="[&quot;images\\ImageOnStates.png&quot;, true]" ButtonRepeatTime="[0, true]" ClickKeepCommandName="[&quot;&quot;, true]" ClickKeepCommandType="[0, true]" ClickUpCommandName="[&quot;&quot;, true]" ClickUpCommandType="[0, true]" CommandName="[&quot;&quot;, true]" CommandType="[1, true]" Font="[&quot;fonts\\\u9ed1\u4f53.ttf&quot;, true]" FontColor="[[0, 0, 0], true]" FontSize="[16, true]" ImagePic="[&quot;images\\ImageOffStates.png&quot;, true]" Movable="[0, true]" Name="[&quot;New Button&quot;, true]" OnClick="[&quot;sendTtyRelayOpen();&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[851.6, 679.8], true]" Size="[[169, 87], true]" Text="[&quot;\u7ee7\u7535\u56681\u5f00&quot;, true]" UUID="[&quot;3bf95563464311e984ca001a7dda7111&quot;, false]"/>
<IMAGEBUTTON Align="[0, true]" ButtonDownImage="[&quot;images\\ImageOnStates.png&quot;, true]" ButtonRepeatTime="[0, true]" ClickKeepCommandName="[&quot;&quot;, true]" ClickKeepCommandType="[0, true]" ClickUpCommandName="[&quot;&quot;, true]" ClickUpCommandType="[0, true]" CommandName="[&quot;&quot;, true]" CommandType="[1, true]" Font="[&quot;fonts\\\u9ed1\u4f53.ttf&quot;, true]" FontColor="[[0, 0, 0], true]" FontSize="[16, true]" ImagePic="[&quot;images\\ImageOffStates.png&quot;, true]" Movable="[0, true]" Name="[&quot;New Button&quot;, true]" OnClick="[&quot;sendTtyS3CameraUp();&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[167.60000000000002, 679.8], true]" Size="[[169, 87], true]" Text="[&quot;\u6444\u50cf\u5934\u4e0a&quot;, true]" UUID="[&quot;68655ccf464211e9a254001a7dda7111&quot;, false]"/>
<IMAGEBUTTON Align="[0, true]" ButtonDownImage="[&quot;images\\ImageOnStates.png&quot;, true]" ButtonRepeatTime="[0, true]" ClickKeepCommandName="[&quot;&quot;, true]" ClickKeepCommandType="[0, true]" ClickUpCommandName="[&quot;&quot;, true]" ClickUpCommandType="[0, true]" CommandName="[&quot;&quot;, true]" CommandType="[1, true]" Font="[&quot;fonts\\\u9ed1\u4f53.ttf&quot;, true]" FontColor="[[0, 0, 0], true]" FontSize="[16, true]" ImagePic="[&quot;images\\ImageOffStates.png&quot;, true]" Movable="[0, true]" Name="[&quot;New Button&quot;, true]" OnClick="[&quot;sendTtyS3CameraDown();&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[3.5999999999999943, 679.8], true]" Size="[[169, 87], true]" Text="[&quot;\u6444\u50cf\u5934\u4e0b&quot;, true]" UUID="[&quot;66961b0f464211e9962e001a7dda7111&quot;, false]"/>
<IMAGEBUTTON Align="[0, true]" ButtonDownImage="[&quot;images\\ImageOnStates.png&quot;, true]" ButtonRepeatTime="[0, true]" ClickKeepCommandName="[&quot;&quot;, true]" ClickKeepCommandType="[0, true]" ClickUpCommandName="[&quot;&quot;, true]" ClickUpCommandType="[0, true]" CommandName="[&quot;&quot;, true]" CommandType="[1, true]" Font="[&quot;fonts\\\u9ed1\u4f53.ttf&quot;, true]" FontColor="[[0, 0, 0], true]" FontSize="[16, true]" ImagePic="[&quot;images\\ImageOffStates.png&quot;, true]" Movable="[0, true]" Name="[&quot;New Button&quot;, true]" OnClick="[&quot;startSubTitle(1,\&quot;192.168.1.146:8883\&quot;);&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[672.6, 128.54999999999995], true]" Size="[[169, 87], true]" Text="[&quot;\u8baf\u98de\u8bed\u97f3&quot;, true]" UUID="[&quot;f47b2290364311e98d84001a7dda7111&quot;, false]"/>
<IMAGEBUTTON Align="[0, true]" ButtonDownImage="[&quot;images\\ImageOnStates.png&quot;, true]" ButtonRepeatTime="[0, true]" ClickKeepCommandName="[&quot;&quot;, true]" ClickKeepCommandType="[0, true]" ClickUpCommandName="[&quot;&quot;, true]" ClickUpCommandType="[0, true]" CommandName="[&quot;&quot;, true]" CommandType="[1, true]" Font="[&quot;fonts\\\u9ed1\u4f53.ttf&quot;, true]" FontColor="[[0, 0, 0], true]" FontSize="[16, true]" ImagePic="[&quot;images\\ImageOffStates.png&quot;, true]" Movable="[0, true]" Name="[&quot;New Button&quot;, true]" OnClick="[&quot;startSubTitle(1,\&quot;192.168.1.118:8883\&quot;);&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[672.6, 128.54999999999995], true]" Size="[[169, 87], true]" Text="[&quot;\u8baf\u98de\u8bed\u97f3&quot;, true]" UUID="[&quot;f47b2290364311e98d84001a7dda7111&quot;, false]"/>
<IMAGEBUTTON Align="[0, true]" ButtonDownImage="[&quot;images\\ImageOnStates.png&quot;, true]" ButtonRepeatTime="[0, true]" ClickKeepCommandName="[&quot;&quot;, true]" ClickKeepCommandType="[0, true]" ClickUpCommandName="[&quot;&quot;, true]" ClickUpCommandType="[0, true]" CommandName="[&quot;&quot;, true]" CommandType="[1, true]" Font="[&quot;fonts\\\u9ed1\u4f53.ttf&quot;, true]" FontColor="[[0, 0, 0], true]" FontSize="[16, true]" ImagePic="[&quot;images\\ImageOffStates.png&quot;, true]" Movable="[0, true]" Name="[&quot;New Button&quot;, true]" OnClick="[&quot;startSubTitle(0,\&quot;10.0.0.2:12301\&quot;);&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[503.951111111111, 128.54999999999995], true]" Size="[[169, 87], true]" Text="[&quot;\u767e\u5ea6\u8bed\u97f3&quot;, true]" UUID="[&quot;e1a69411364311e99a86001a7dda7111&quot;, false]"/>
<IMAGEBUTTON Align="[0, true]" ButtonDownImage="[&quot;images\\ImageOnStates.png&quot;, true]" ButtonRepeatTime="[0, true]" ClickKeepCommandName="[&quot;&quot;, true]" ClickKeepCommandType="[0, true]" ClickUpCommandName="[&quot;&quot;, true]" ClickUpCommandType="[0, true]" CommandName="[&quot;&quot;, true]" CommandType="[1, true]" Font="[&quot;fonts\\\u9ed1\u4f53.ttf&quot;, true]" FontColor="[[0, 0, 0], true]" FontSize="[16, true]" ImagePic="[&quot;images\\ImageOffStates.png&quot;, true]" Movable="[0, true]" Name="[&quot;New Button&quot;, true]" OnClick="[&quot;shutDown();&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[337.6, 437.79999999999995], true]" Size="[[169, 87], true]" Text="[&quot;\u5173\u673a&quot;, true]" UUID="[&quot;a32ba64135cf11e983fb001a7dda7111&quot;, false]"/>
<IMAGEBUTTON Align="[0, true]" ButtonDownImage="[&quot;images\\ImageOnStates.png&quot;, true]" ButtonRepeatTime="[0, true]" ClickKeepCommandName="[&quot;&quot;, true]" ClickKeepCommandType="[0, true]" ClickUpCommandName="[&quot;&quot;, true]" ClickUpCommandType="[0, true]" CommandName="[&quot;&quot;, true]" CommandType="[1, true]" Font="[&quot;fonts\\\u9ed1\u4f53.ttf&quot;, true]" FontColor="[[0, 0, 0], true]" FontSize="[16, true]" ImagePic="[&quot;images\\ImageOffStates.png&quot;, true]" Movable="[0, true]" Name="[&quot;New Button&quot;, true]" OnClick="[&quot;doVideo();&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[2.5999999999999943, 437.79999999999995], true]" Size="[[169, 87], true]" Text="[&quot;\u5f00\u59cbHDMI&quot;, true]" UUID="[&quot;a54b5aa30fbf11e99171f8cab80fe439&quot;, false]"/>
......@@ -128,7 +132,7 @@
</GUIGROUPNODE>
</GUI>
<SCRIPTS Name="[&quot;SCRIPTS&quot;, false]" UUID="[&quot;b859ffd10f5a11e9801ad4258b878bb9&quot;, false]">
<SCRIPTNODE Name="[&quot;INIT&quot;, true]" Script="[&quot;const strStart = \&quot;UCOM\&quot;;\r\n\r\nconst strEnd = \&quot;UOFF\&quot;;\r\n\r\nsetComBaud('BUS', 9600, 'N', 8, 1);\r\n\r\nsetStringReceive('BUS', getReceiveBUS);\r\n\r\nfunction getReceiveBUS(vReceiveData) {\r\n // vReceiveData = setRemoveString(vReceiveData, \&quot;UCOM\&quot;);\r\n // var vLength = parseInt(vReceiveData.substr(0, 4), 10);\r\n //vReceiveData = vReceiveData.substr(4, vLength);\r\n\r\n // sendLog(\&quot;vReceiveData\&quot;, \&quot;L:\&quot;+vReceiveData);\r\n //var jsonData = JSON.parse(vReceiveData);\r\n //var btnData = jsonData.data\r\n //sendLog(\&quot;Data\&quot;, jsonData.data);\r\n sendLog(\&quot;Data\&quot;, vReceiveData);\r\n}\r\n\r\n\r\n//===========================================TCP\u65b9\u6cd5========================\r\n\r\n\r\n//\u63a5\u6536\u65b9\u6cd5\r\n\r\nsetStringReceive(NET1, receiveAi1000Data());\r\n\r\n/**\r\n * \u63a5\u53d7\u6765\u7740Ai1000 \u670d\u52a1\u7aef\u7684\u53cd\u9988\u6570\u636e\r\n * @param data\r\n */\r\nfunction receiveAi1000Data(data) {\r\n\r\n\r\n sendLog(\&quot;AI1000Tcp\&quot;, data)\r\n}\r\n\r\n//===========================================\u4e32\u53e3\u65b9\u6cd5========================\r\n\r\nvar strText;\r\n\r\n/**\r\n * \u4e32\u53e3\u65b9\u6cd5\r\n */\r\n\r\n//\u83b7\u53d6\u8bbe\u5907\u6240\u6709\u4e32\u53e3\r\nfunction getAllPort() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;serialPort\&quot;, \&quot;command\&quot;: \&quot;getPort\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n//\u6253\u5f00\u4e32\u53e3232\r\nfunction openTtyS3() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;serialPort\&quot;, \&quot;command\&quot;: \&quot;openPort\&quot;, \&quot;device\&quot;: \&quot;ttyS3\&quot;, \&quot;baudRate\&quot;: 19200};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n//\u5173\u95ed\u4e32\u53e3232\r\nfunction closeTtyS3() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;serialPort\&quot;, \&quot;command\&quot;: \&quot;closePort\&quot;, \&quot;device\&quot;: \&quot;ttyS3\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n//\u6253\u5f00\u4e32\u53e3485\r\nfunction openUSB() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;serialPort\&quot;, \&quot;command\&quot;: \&quot;openPort\&quot;, \&quot;device\&quot;: \&quot;ttyUSB0\&quot;, \&quot;baudRate\&quot;: 19200};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n//\u5173\u95ed\u4e32\u53e3458\r\nfunction closeUSB() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;serialPort\&quot;, \&quot;command\&quot;: \&quot;closePort\&quot;, \&quot;device\&quot;: \&quot;ttyUSB0\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n//\u6444\u50cf\u5934\u4e0b\r\nfunction sendTtyS3CameraDown() {\r\n strText = {\r\n \&quot;cmd\&quot;: \&quot;1\&quot;,\r\n \&quot;action\&quot;: \&quot;serialPort\&quot;,\r\n \&quot;command\&quot;: \&quot;sendPort\&quot;,\r\n \&quot;device\&quot;: \&quot;ttyS3\&quot;,\r\n \&quot;data\&quot;: \&quot;\\\\x81\\\\x01\\\\x06\\\\x01\\\\x05\\\\x04\\\\x03\\\\x01\\\\xFF\&quot;\r\n };\r\n //\u975eJson \u683c\u5f0f \u65e0\u6cd5\u89e3\u6790\u6570\u636e\r\n //strText = \&quot;{\\\&quot;cmd\\\&quot;:\\\&quot;1\\\&quot;,\\\&quot;action\\\&quot;:\\\&quot;serialPort\\\&quot;,\\\&quot;command\\\&quot;:\\\&quot;sendPort\\\&quot;,\\\&quot;device\\\&quot;:\\\&quot;ttyS3\\\&quot;,\\\&quot;data\\\&quot;:\\x81\\x01\\x06\\x01\\x05\\x04\\x03\\x01\\xFF\\\&quot;}\&quot;;\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n//\u6444\u50cf\u5934\u4e0a\r\nfunction sendTtyS3CameraUp() {\r\n strText = {\r\n \&quot;cmd\&quot;: \&quot;1\&quot;,\r\n \&quot;action\&quot;: \&quot;serialPort\&quot;,\r\n \&quot;command\&quot;: \&quot;sendPort\&quot;,\r\n \&quot;data\&quot;: \&quot;\\\\x81\\\\x01\\\\x06\\\\x01\\\\x05\\\\x04\\\\x03\\\\x02\\\\xFF\&quot;,\r\n \&quot;device\&quot;: \&quot;ttyS3\&quot;\r\n\r\n };\r\n //\u975eJson \u683c\u5f0f \u65e0\u6cd5\u89e3\u6790\u6570\u636e\r\n //strText = {\&quot;cmd\&quot;:\&quot;1\&quot;,\&quot;action\&quot;:\&quot;serialPort\&quot;,\&quot;command\&quot;:\&quot;sendPort\&quot;,\&quot;device\&quot;:\&quot;ttyS3\&quot;,\&quot;data\&quot;:\&quot;\\x81\\x01\\x06\\x01\\x05\\x04\\x03\\x02\\xFF\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\nfunction sendUSB() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;serialPort\&quot;, \&quot;command\&quot;: \&quot;sendPort\&quot;, \&quot;device\&quot;: \&quot;ttyUSB0\&quot;, \&quot;data\&quot;: \&quot;1B1\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n//\u6fc0\u6d3b\u9762\u677f\r\nfunction sendUSBBus() {\r\n strText = {\r\n \&quot;cmd\&quot;: \&quot;1\&quot;,\r\n \&quot;action\&quot;: \&quot;serialPort\&quot;,\r\n \&quot;command\&quot;: \&quot;sendPort\&quot;,\r\n \&quot;device\&quot;: \&quot;ttyUSB0\&quot;,\r\n \&quot;data\&quot;: \&quot;\\\\x02\\\\x06\\\\x10\\\\x03\\\\x00\\\\x24\\\\x7D\\\\x22\&quot;\r\n };\r\n //\u8fd9\u6837\u5199 Json \u683c\u5f0f\u5316\u9519\u8bef \u3002\r\n //strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;serialPort\&quot;, \&quot;command\&quot;: \&quot;sendPort\&quot;, \&quot;device\&quot;: \&quot;ttyUSB0\&quot;, \&quot;data\&quot;: \&quot;\\x02\\x06\\x10\\x03\\x00\\x24\\x7D\\x22\&quot;};\r\n\r\n sendBUSRoot(strText);\r\n}\r\n\r\n//\u6d4b\u8bd5\u5927\u4e8e127 \u7684\u4e32\u53e3\u547d\u4ee4\r\nfunction sendTtyS3(str) {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;serialPort\&quot;, \&quot;command\&quot;: \&quot;sendPort\&quot;, \&quot;device\&quot;: \&quot;ttyS3\&quot;, \&quot;data\&quot;: str};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n//\u6253\u5f00\u7ee7\u7535\u5668\r\nfunction sendTtyRelayOpen() {\r\n strText = {\r\n \&quot;cmd\&quot;: \&quot;1\&quot;,\r\n \&quot;action\&quot;: \&quot;serialPort\&quot;,\r\n \&quot;command\&quot;: \&quot;sendPort\&quot;,\r\n \&quot;device\&quot;: \&quot;ttyS3\&quot;,\r\n \&quot;data\&quot;: \&quot;[PR\\\\x30\\\\x30\\\\x31O1T0]\&quot;\r\n };\r\n sendBUSRoot(strText);\r\n}\r\n\r\nfunction sendTtyRelayOpenMTwo() {\r\n // \&quot;\\\\x5bPR\\\\x30\\\\x30\\\\x31O1T0]\&quot;;\r\n // \&quot;[PR\\\\x30\\\\x30\\\\x31O1T0\\\\x5b\&quot;;\r\n // \&quot;\\\\x5bPR\\\\x30\\\\x30\\\\x31O1T0\\\\x5b\&quot;;\r\n // \&quot;\\\\x5bPR0O1T0\\\\x5b\&quot;;\r\n strText = {\r\n \&quot;cmd\&quot;: \&quot;1\&quot;,\r\n \&quot;action\&quot;: \&quot;serialPort\&quot;,\r\n \&quot;command\&quot;: \&quot;sendPort\&quot;,\r\n \&quot;device\&quot;: \&quot;ttyS3\&quot;,\r\n \&quot;data\&quot;: \&quot;\\\\x5BPR\\\\x30\\\\x30\\\\x31O1T0\\\\x5D\&quot;\r\n };\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n//\u5173\u95ed\u7ee7\u7535\u5668\r\nfunction sendTtyRelayClose() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;serialPort\&quot;, \&quot;command\&quot;: \&quot;sendPort\&quot;, \&quot;device\&quot;: \&quot;ttyS3\&quot;, \&quot;data\&quot;: \&quot;[PR001C1T0]\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n/**\r\n * \u6539\u53d8APP \u7684\u65b9\u6cd5\r\n */\r\n\r\n\r\n/**\r\n * \u9690\u85cf\u5b57\u5e55\r\n */\r\nfunction hideSubtitle() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;hideSubtitle\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u663e\u793a\u5b57\u5e55\r\n *\r\n */\r\nfunction showSubtitle() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;showSubtitle\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n/**\r\n * \u79fb\u52a8\u5b57\u5e55\r\n */\r\nvar positionY=0;\r\n\r\n/**\r\n *\r\n * @param postionY\r\n * -1 \u5e95\u90e8\r\n * -2 \u4e2d\u90e8\r\n * -3 \u9876\u90e8\r\n * &gt; 0 \u4ece\u5f53\u4f4d\u7f6e \u4e0a\u79fb\u6216\u8005\u4e0b\u79fb\r\n *\r\n */\r\n\r\nfunction moveSubtitle(postionY) {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;moveSubtitle\&quot;,\&quot;positionY\&quot;:\&quot;\&quot;+postionY+\&quot;\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n/**\r\n * \u8bbe\u7f6e\u5b57\u5e55\u80cc\u666f\u8272 \u4ee5\u53ca\u80cc\u666f \u900f\u660e\u5ea6\r\n */\r\nfunction setTitleColor() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;subtitle\&quot;, \&quot;backgroundColor\&quot;: \&quot;#ffffff\&quot;, \&quot;alpha\&quot;: 0};\r\n sendBUSRoot(strText)\r\n}\r\n\r\n/**\r\n *\r\n * @param fontColor \u8bbe\u7f6e\u989c\u8272 \u9ed8\u8ba4 #ffffff \u767d\u8272\r\n * @param fontSize \u8bbe\u7f6e\u5b57\u4f53\u5927\u5c0f 30\r\n *\r\n * \u8bbe\u7f6e\u5b57\u5e55\u4e2d \u6587\u5b57 \u7ffb\u8bd1\u7684\u989c\u8272,\u5927\u5c0f\r\n */\r\nvar size=30;\r\nfunction setWordsColor(fontColor, fontSize) {\r\n\r\n if (isEmpty(fontColor)) {\r\n fontColor = \&quot;#ffffff\&quot;;\r\n }\r\n if (isEmpty(fontSize)) {\r\n fontSize = 30;\r\n }\r\n\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;words\&quot;, \&quot;fontColor\&quot;: \&quot;\&quot; + fontColor + \&quot;\&quot;, \&quot;fontSize\&quot;: \&quot;\&quot; + fontSize + \&quot;\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n/**\r\n * \u6539\u53d8\u5b57\u5e55\u80cc\u666f\u989c\u8272\r\n * backgroundColor \u80cc\u666f\u989c\u8272 ARGB A \u8868\u793a\u900f\u660e\u5ea6\r\n *\r\n */\r\nfunction setSubtitle() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;changeSubtitle\&quot;, \&quot;backgroundColor\&quot;: \&quot;#ff000000\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n/**\r\n * \u8bbe\u7f6e\u5b57\u5e55\u4f4d\u7f6e\r\n *\u5bf9\u9f50\u65b9\u5f0f :Alignment bottom(\u9ed8\u8ba4) center top\r\n *\r\n * \u5b57\u6570 : wordCount\r\n *\r\n * \u884c\u6570 : numberOfLines \u9ed8\u8ba4\u5355\u884c singleLine(\u5355\u884c) \uff0c multiLine(\u591a\u884c)\r\n */\r\nfunction setSubtitleModel(alignment, singleLine) {\r\n strText = {\r\n \&quot;cmd\&quot;: \&quot;1\&quot;,\r\n \&quot;action\&quot;: \&quot;setApp\&quot;,\r\n \&quot;command\&quot;: \&quot;SubtitleModel\&quot;,\r\n \&quot;Alignment\&quot;: alignment,\r\n \&quot;numberOfLines\&quot;: singleLine\r\n };\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n/**\r\n * @param \u53c2\u8003\u94fe\u63a5\r\n *\r\n * http://api.fanyi.baidu.com/api/trans/product/apidoc#languageList\r\n *\r\n */\r\n\r\nfunction setTranslate(str) {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;translate\&quot;, \&quot;language\&quot;: str};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u9690\u85cf\u6587\u5b57\r\n *\r\n */\r\nfunction hideWords() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;hideWords\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u663e\u793a\u6587\u5b57\r\n */\r\nfunction showWords() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;showWords\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u663e\u793a\u547d\u4ee4\u8bcd\r\n */\r\nfunction showCommand() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;showCommand\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u9690\u85cf\u547d\u4ee4\u8bcd\r\n */\r\nfunction hideCommand() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;hideCommand\&quot;};\r\n\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u9690\u85cf\u7ffb\u8bd1\r\n */\r\nfunction hideTranslate() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;hideTranslate\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u663e\u793a\u7ffb\u8bd1\r\n */\r\nfunction showTranslate() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;showTranslate\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u5f39\u51fa\u5de6\u4fa7\u52a9\u624b\r\n */\r\nfunction showAide() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;showAide\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u9690\u85cf\u52a9\u624b\r\n */\r\nfunction hideAide() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;hideAide\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u5f00\u59cbHDMI\u753b\u9762\r\n */\r\nfunction doVideo() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;doVideo\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u505c\u6b62HDMI\u753b\u9762\r\n */\r\nfunction stopVideo() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;stopVideo\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u83b7\u53d6android\u5f00\u53d1\u677f\u4fe1\u606f\r\n */\r\nfunction getAndroid() {\r\n var strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;system\&quot;, \&quot;command\&quot;: \&quot;getAndroid\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u53bb\u8bbe\u7f6e\u9875\u9762\r\n */\r\nfunction toSetPage() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;toSetPage\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n/**\r\n *\r\n * @param wordType 0\u8868\u793a\u767e\u5ea6\u8bed\u97f3 1 \u8868\u793a\u8baf\u98de\u8bed\u97f3\r\n * @param host \u4e3b\u673a\u5730\u5740\u548c\u7aef\u53e3 ( 192.168.1.2:8080 ) \u6388\u6743\u7801\r\n *\r\n * authorizationCode : \u4f1a\u8bae\u5ba4\u6388\u6743\u7801\r\n */\r\nfunction startSubTitle(wordType, host) {\r\n\r\n if (isEmpty(host)) {\r\n return\r\n }\r\n if (wordType == 0) {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;wordsSet\&quot;, \&quot;wordType\&quot;: 0, \&quot;host\&quot;: \&quot;\&quot; + host + \&quot;\&quot;};\r\n } else if (wordType == 1) {\r\n strText = {\r\n \&quot;cmd\&quot;: \&quot;1\&quot;,\r\n \&quot;action\&quot;: \&quot;setApp\&quot;,\r\n \&quot;command\&quot;: \&quot;wordsSet\&quot;,\r\n \&quot;wordType\&quot;: 1,\r\n \&quot;host\&quot;: \&quot;\&quot; + host + \&quot;\&quot;,\r\n \&quot;authorizationCode\&quot;: \&quot;ANW-SZUBJS-TDOG\&quot;\r\n };\r\n } else {\r\n //\u5982\u679c\u6ca1\u6709\u586b\u5199\u53c2\u6570\u6216\u8fd9\u4e2a \u53c2\u6570\u9519\u8bef \uff0c\u4e0d\u5f80\u4e0b\u6267\u884c!\r\n return\r\n }\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\nfunction separateRoom(conferenceRoomID) {\r\n if (isEmpty(conferenceRoomID)) {\r\n return\r\n }\r\n strText = {\r\n \&quot;cmd\&quot;: \&quot;1\&quot;,\r\n \&quot;action\&quot;: \&quot;setApp\&quot;,\r\n \&quot;command\&quot;: \&quot;separateRoom\&quot;,\r\n \&quot;conferenceRoomID\&quot;: \&quot;\&quot; + conferenceRoomID + \&quot;\&quot;\r\n };\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n\r\n/**\r\n * \u7cfb\u7edf\u8bbe\u7f6e\u65b9\u6cd5\r\n */\r\n\r\n/**\r\n *\r\n *\u5173\u673a\r\n */\r\nfunction shutDown() {\r\n var strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;system\&quot;, \&quot;command\&quot;: \&quot;shutDown\&quot;};\r\n sendBUSRoot(strText);\r\n\r\n}\r\n\r\n/**\r\n *\r\n *\u91cd\u542f\r\n */\r\nfunction reboot() {\r\n var strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;system\&quot;, \&quot;command\&quot;: \&quot;reboot\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u5378\u8f7d\u81ea\u5df1\r\n */\r\nfunction deleteSelf() {\r\n var strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;system\&quot;, \&quot;command\&quot;: \&quot;deleteSelf\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n/**\r\n *\u4e2d\u6587\u53c2\u6570\r\n */\r\nvar strJson;\r\nvar strLen;\r\n\r\n/**\r\n * \u64ad\u653e\u8bed\u97f3\r\n */\r\nfunction doAudio() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;doAudio\&quot;, \&quot;data\&quot;: \&quot;\u4e0d\u4ee5\u5c71\u6d77\u4e3a\u8fdc\uff0c\u4e2d\u56fd\u7279\u8272\u5927\u56fd\u5916\u4ea4\u4e4b\u8def\u8d8a\u8d70\u8d8a\u5bbd\u5e7f\&quot;};\r\n strJson = JSON.stringify(strText);\r\n strLen = getULen(strJson);\r\n sendCodeString('BUS', strStart + strLen + setGBK(strJson) + strEnd);\r\n}\r\n\r\n/**\r\n * \u6539\u53d8\u5de6\u4fa7\u52a9\u624b\u63d0\u793a\u6587\u5b57\r\n *\r\n */\r\n\r\nfunction aideData() {\r\n strText = {\r\n \&quot;cmd\&quot;: \&quot;1\&quot;,\r\n \&quot;data\&quot;: [{\&quot;data\&quot;: \&quot;\u6253\u5f00\u6240\u6709\u706f\u5149\&quot;, \&quot;iflytek\&quot;: \&quot;\&quot;, \&quot;itemType\&quot;: \&quot;0\&quot;, \&quot;person\&quot;: \&quot;\&quot;, \&quot;type\&quot;: 0}, {\r\n \&quot;data\&quot;: \&quot;\u6253\u5f00\u672c\u5730\u4f1a\u8bae\u6a21\u5f0f\u6d4b\u8bd5\&quot;,\r\n \&quot;iflytek\&quot;: \&quot;\&quot;,\r\n \&quot;itemType\&quot;: \&quot;0\&quot;,\r\n \&quot;person\&quot;: \&quot;\&quot;,\r\n \&quot;type\&quot;: 0\r\n }, {\&quot;data\&quot;: \&quot;\u547c\u53eb\u5317\u4eac\u3001\u4e0a\u6d77\u3001\u6df1\u5733\&quot;, \&quot;iflytek\&quot;: \&quot;\&quot;, \&quot;itemType\&quot;: \&quot;0\&quot;, \&quot;person\&quot;: \&quot;\&quot;, \&quot;type\&quot;: 0}, {\r\n \&quot;data\&quot;: \&quot;\u7a7a\u8c03\u8c03\u523025\u5ea6\&quot;,\r\n \&quot;iflytek\&quot;: \&quot;\&quot;,\r\n \&quot;itemType\&quot;: \&quot;0\&quot;,\r\n \&quot;person\&quot;: \&quot;\&quot;,\r\n \&quot;type\&quot;: 0\r\n }, {\&quot;data\&quot;: \&quot;\u4e2d\u5c4f\u663e\u793a\u524d\u684c\u63d2\&quot;, \&quot;iflytek\&quot;: \&quot;\&quot;, \&quot;itemType\&quot;: \&quot;0\&quot;, \&quot;person\&quot;: \&quot;\&quot;, \&quot;type\&quot;: 0}, {\r\n \&quot;data\&quot;: \&quot;\u6253\u5f00\u89c6\u9891\u4f1a\u8bae\u6a21\u5f0f\&quot;,\r\n \&quot;iflytek\&quot;: \&quot;\&quot;,\r\n \&quot;itemType\&quot;: \&quot;0\&quot;,\r\n \&quot;person\&quot;: \&quot;\&quot;,\r\n \&quot;type\&quot;: 0\r\n }, {\&quot;data\&quot;: \&quot;\u5f00\u542f\u6696\u5149\&quot;, \&quot;iflytek\&quot;: \&quot;\&quot;, \&quot;itemType\&quot;: \&quot;0\&quot;, \&quot;person\&quot;: \&quot;\&quot;, \&quot;type\&quot;: 0}, {\r\n \&quot;data\&quot;: \&quot;\u5e2e\u6211\u6765\u4e00\u676f\u5496\u5561\&quot;,\r\n \&quot;iflytek\&quot;: \&quot;\&quot;,\r\n \&quot;itemType\&quot;: \&quot;0\&quot;,\r\n \&quot;person\&quot;: \&quot;\&quot;,\r\n \&quot;type\&quot;: 0\r\n }, {\&quot;data\&quot;: \&quot;\u7ed3\u675f\u4f1a\u8bae\&quot;, \&quot;iflytek\&quot;: \&quot;\&quot;, \&quot;itemType\&quot;: \&quot;0\&quot;, \&quot;person\&quot;: \&quot;\&quot;, \&quot;type\&quot;: 0}],\r\n \&quot;action\&quot;: \&quot;setApp\&quot;,\r\n \&quot;command\&quot;: \&quot;aideData\&quot;\r\n }\r\n strJson = JSON.stringify(strText);\r\n strLen = getULen(strJson);\r\n sendCodeString('BUS', strStart + strLen + setGBK(strJson) + strEnd);\r\n}\r\n\r\n\r\n/**\r\n * \u5e95\u5c42\u53c2\u6570\uff0c\u4e0d\u9700\u8981\u4fee\u6539\r\n * @param str\r\n * @returns {string}\r\n */\r\nfunction getULen(str) {\r\n var l = str.length;\r\n var blen = 0;\r\n for (i = 0; i &lt; l; i++) {\r\n if ((str.charCodeAt(i) &amp; 0xff00) != 0) {\r\n blen++;\r\n }\r\n blen++;\r\n }\r\n\r\n var slen = blen.toString();\r\n if (slen.length == 0) {\r\n slen = \&quot;0000\&quot;;\r\n } else if (slen.length == 1) {\r\n slen = \&quot;000\&quot; + slen;\r\n } else if (slen.length == 2) {\r\n slen = \&quot;00\&quot; + slen;\r\n } else if (slen.length == 3) {\r\n slen = \&quot;0\&quot; + slen;\r\n }\r\n return slen;\r\n}\r\n\r\n/**\r\n *\r\n * @param vLen \u83b7\u53d6\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\r\n * @returns {string}\r\n */\r\nfunction getLength(vLen) {\r\n var len1 = vLen % 0x100;\r\n var len2 = vLen % 0x10000 / 0x100;\r\n var len3 = vLen % 0x1000000 / 0x10000;\r\n var len4 = vLen / 0x1000000;\r\n return String.fromCharCode(len4) + String.fromCharCode(len3) + String.fromCharCode(len2) + String.fromCharCode(len1);\r\n}\r\n\r\n//\u5224\u65ad\u5b57\u7b26\u662f\u5426\u4e3a\u7a7a\u7684\u65b9\u6cd5\r\nfunction isEmpty(obj) {\r\n if (typeof obj == \&quot;undefined\&quot; || obj == null || obj == \&quot;\&quot;) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n}\r\n\r\n\r\n/**\r\n *\r\n * @param json\r\n *\r\n * @param status \u521d\u59cb\u5316 \u9ed8\u8ba4\u4e3atrue\uff0c\u4f7f\u7528\u4e32\u53e3\u53d1\u9001\u6d88\u606f\r\n *\r\n *\u5f53 status \u4e3afalse \u4f7f\u7528 TCP Client \u53d1\u9001\u6570\u636e\u6d88\u606f\r\n *\r\n */\r\n\r\nvar status = true;\r\n\r\nfunction sendBUSRoot(json) {\r\n var strJson = JSON.stringify(json);\r\n var strLen = getULen(strJson);\r\n\r\n if (status) {\r\n sendCodeString('BUS', strStart + strLen + setGBK(strJson) + strEnd);\r\n } else {\r\n sendCodeString(NET1, strStart + strLen + setGBK(strJson) + strEnd + \&quot;\\n\&quot;);\r\n }\r\n}&quot;, false]" ScriptParamCount="[0, false]" UUID="[&quot;19633cde0f5d11e9a9c7d4258b878bb9&quot;, false]"/>
<SCRIPTNODE Name="[&quot;INIT&quot;, true]" Script="[&quot;const strStart = \&quot;UCOM\&quot;;\r\n\r\nconst strEnd = \&quot;UOFF\&quot;;\r\n\r\nsetComBaud('BUS', 9600, 'N', 8, 1);\r\n\r\nsetStringReceive('BUS', getReceiveBUS);\r\n\r\nfunction getReceiveBUS(vReceiveData) {\r\n // vReceiveData = setRemoveString(vReceiveData, \&quot;UCOM\&quot;);\r\n // var vLength = parseInt(vReceiveData.substr(0, 4), 10);\r\n //vReceiveData = vReceiveData.substr(4, vLength);\r\n\r\n // sendLog(\&quot;vReceiveData\&quot;, \&quot;L:\&quot;+vReceiveData);\r\n //var jsonData = JSON.parse(vReceiveData);\r\n //var btnData = jsonData.data\r\n //sendLog(\&quot;Data\&quot;, jsonData.data);\r\n sendLog(\&quot;Data\&quot;, vReceiveData);\r\n}\r\n\r\n\r\n//===========================================TCP\u65b9\u6cd5========================\r\n\r\n\r\n//\u63a5\u6536\u65b9\u6cd5\r\n\r\nsetStringReceive(NET1, receiveAi1000Data());\r\n\r\n/**\r\n * \u63a5\u53d7\u6765\u7740Ai1000 \u670d\u52a1\u7aef\u7684\u53cd\u9988\u6570\u636e\r\n * @param data\r\n */\r\nfunction receiveAi1000Data(data) {\r\n\r\n\r\n sendLog(\&quot;AI1000Tcp\&quot;, data)\r\n}\r\n\r\n//===========================================\u4e32\u53e3\u65b9\u6cd5========================\r\n\r\nvar strText;\r\n\r\n/**\r\n * \u4e32\u53e3\u65b9\u6cd5\r\n */\r\n\r\n//\u83b7\u53d6\u8bbe\u5907\u6240\u6709\u4e32\u53e3\r\nfunction getAllPort() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;serialPort\&quot;, \&quot;command\&quot;: \&quot;getPort\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n//\u6253\u5f00\u4e32\u53e3232\r\nfunction openTtyS3() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;serialPort\&quot;, \&quot;command\&quot;: \&quot;openPort\&quot;, \&quot;device\&quot;: \&quot;ttyS3\&quot;, \&quot;baudRate\&quot;: 19200};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n//\u5173\u95ed\u4e32\u53e3232\r\nfunction closeTtyS3() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;serialPort\&quot;, \&quot;command\&quot;: \&quot;closePort\&quot;, \&quot;device\&quot;: \&quot;ttyS3\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n//\u6253\u5f00\u4e32\u53e3485\r\nfunction openUSB() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;serialPort\&quot;, \&quot;command\&quot;: \&quot;openPort\&quot;, \&quot;device\&quot;: \&quot;ttyUSB0\&quot;, \&quot;baudRate\&quot;: 19200};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n//\u5173\u95ed\u4e32\u53e3458\r\nfunction closeUSB() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;serialPort\&quot;, \&quot;command\&quot;: \&quot;closePort\&quot;, \&quot;device\&quot;: \&quot;ttyUSB0\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n//\u6444\u50cf\u5934\u4e0b\r\nfunction sendTtyS3CameraDown() {\r\n strText = {\r\n \&quot;cmd\&quot;: \&quot;1\&quot;,\r\n \&quot;action\&quot;: \&quot;serialPort\&quot;,\r\n \&quot;command\&quot;: \&quot;sendPort\&quot;,\r\n \&quot;device\&quot;: \&quot;ttyS3\&quot;,\r\n \&quot;data\&quot;: \&quot;\\\\x81\\\\x01\\\\x06\\\\x01\\\\x05\\\\x04\\\\x03\\\\x01\\\\xFF\&quot;\r\n };\r\n //\u975eJson \u683c\u5f0f \u65e0\u6cd5\u89e3\u6790\u6570\u636e\r\n //strText = \&quot;{\\\&quot;cmd\\\&quot;:\\\&quot;1\\\&quot;,\\\&quot;action\\\&quot;:\\\&quot;serialPort\\\&quot;,\\\&quot;command\\\&quot;:\\\&quot;sendPort\\\&quot;,\\\&quot;device\\\&quot;:\\\&quot;ttyS3\\\&quot;,\\\&quot;data\\\&quot;:\\x81\\x01\\x06\\x01\\x05\\x04\\x03\\x01\\xFF\\\&quot;}\&quot;;\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n//\u6444\u50cf\u5934\u4e0a\r\nfunction sendTtyS3CameraUp() {\r\n strText = {\r\n \&quot;cmd\&quot;: \&quot;1\&quot;,\r\n \&quot;action\&quot;: \&quot;serialPort\&quot;,\r\n \&quot;command\&quot;: \&quot;sendPort\&quot;,\r\n \&quot;data\&quot;: \&quot;\\\\x81\\\\x01\\\\x06\\\\x01\\\\x05\\\\x04\\\\x03\\\\x02\\\\xFF\&quot;,\r\n \&quot;device\&quot;: \&quot;ttyS3\&quot;\r\n\r\n };\r\n //\u975eJson \u683c\u5f0f \u65e0\u6cd5\u89e3\u6790\u6570\u636e\r\n //strText = {\&quot;cmd\&quot;:\&quot;1\&quot;,\&quot;action\&quot;:\&quot;serialPort\&quot;,\&quot;command\&quot;:\&quot;sendPort\&quot;,\&quot;device\&quot;:\&quot;ttyS3\&quot;,\&quot;data\&quot;:\&quot;\\x81\\x01\\x06\\x01\\x05\\x04\\x03\\x02\\xFF\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\nfunction sendUSB() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;serialPort\&quot;, \&quot;command\&quot;: \&quot;sendPort\&quot;, \&quot;device\&quot;: \&quot;ttyUSB0\&quot;, \&quot;data\&quot;: \&quot;1B1\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n//\u6fc0\u6d3b\u9762\u677f\r\nfunction sendUSBBus() {\r\n strText = {\r\n \&quot;cmd\&quot;: \&quot;1\&quot;,\r\n \&quot;action\&quot;: \&quot;serialPort\&quot;,\r\n \&quot;command\&quot;: \&quot;sendPort\&quot;,\r\n \&quot;device\&quot;: \&quot;ttyUSB0\&quot;,\r\n \&quot;data\&quot;: \&quot;\\\\x02\\\\x06\\\\x10\\\\x03\\\\x00\\\\x24\\\\x7D\\\\x22\&quot;\r\n };\r\n //\u8fd9\u6837\u5199 Json \u683c\u5f0f\u5316\u9519\u8bef \u3002\r\n //strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;serialPort\&quot;, \&quot;command\&quot;: \&quot;sendPort\&quot;, \&quot;device\&quot;: \&quot;ttyUSB0\&quot;, \&quot;data\&quot;: \&quot;\\x02\\x06\\x10\\x03\\x00\\x24\\x7D\\x22\&quot;};\r\n\r\n sendBUSRoot(strText);\r\n}\r\n\r\n//\u6d4b\u8bd5\u5927\u4e8e127 \u7684\u4e32\u53e3\u547d\u4ee4\r\nfunction sendTtyS3(str) {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;serialPort\&quot;, \&quot;command\&quot;: \&quot;sendPort\&quot;, \&quot;device\&quot;: \&quot;ttyS3\&quot;, \&quot;data\&quot;: str};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n//\u6253\u5f00\u7ee7\u7535\u5668\r\nfunction sendTtyRelayOpen() {\r\n strText = {\r\n \&quot;cmd\&quot;: \&quot;1\&quot;,\r\n \&quot;action\&quot;: \&quot;serialPort\&quot;,\r\n \&quot;command\&quot;: \&quot;sendPort\&quot;,\r\n \&quot;device\&quot;: \&quot;ttyS3\&quot;,\r\n \&quot;data\&quot;: \&quot;[PR\\\\x30\\\\x30\\\\x31O1T0]\&quot;\r\n };\r\n sendBUSRoot(strText);\r\n}\r\n\r\nfunction sendTtyRelayOpenMTwo() {\r\n // \&quot;\\\\x5bPR\\\\x30\\\\x30\\\\x31O1T0]\&quot;;\r\n // \&quot;[PR\\\\x30\\\\x30\\\\x31O1T0\\\\x5b\&quot;;\r\n // \&quot;\\\\x5bPR\\\\x30\\\\x30\\\\x31O1T0\\\\x5b\&quot;;\r\n // \&quot;\\\\x5bPR0O1T0\\\\x5b\&quot;;\r\n strText = {\r\n \&quot;cmd\&quot;: \&quot;1\&quot;,\r\n \&quot;action\&quot;: \&quot;serialPort\&quot;,\r\n \&quot;command\&quot;: \&quot;sendPort\&quot;,\r\n \&quot;device\&quot;: \&quot;ttyS3\&quot;,\r\n \&quot;data\&quot;: \&quot;\\\\x5BPR\\\\x30\\\\x30\\\\x31O1T0\\\\x5D\&quot;\r\n };\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n//\u5173\u95ed\u7ee7\u7535\u5668\r\nfunction sendTtyRelayClose() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;serialPort\&quot;, \&quot;command\&quot;: \&quot;sendPort\&quot;, \&quot;device\&quot;: \&quot;ttyS3\&quot;, \&quot;data\&quot;: \&quot;[PR001C1T0]\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n/**\r\n * \u6539\u53d8APP \u7684\u65b9\u6cd5\r\n */\r\n\r\n\r\n/**\r\n * \u9690\u85cf\u5b57\u5e55\r\n */\r\nfunction hideSubtitle() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;hideSubtitle\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u663e\u793a\u5b57\u5e55\r\n *\r\n */\r\nfunction showSubtitle() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;showSubtitle\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n/**\r\n * \u79fb\u52a8\u5b57\u5e55\r\n */\r\nvar positionY=0;\r\n\r\n/**\r\n *\r\n * @param postionY\r\n * -1 \u5e95\u90e8\r\n * -2 \u4e2d\u90e8\r\n * -3 \u9876\u90e8\r\n * &gt; 0 \u4ece\u5f53\u4f4d\u7f6e \u4e0a\u79fb\u6216\u8005\u4e0b\u79fb\r\n *\r\n */\r\n\r\nfunction moveSubtitle(postionY) {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;moveSubtitle\&quot;,\&quot;positionY\&quot;:\&quot;\&quot;+postionY+\&quot;\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n/**\r\n * \u8bbe\u7f6e\u5b57\u5e55\u80cc\u666f\u8272 \u4ee5\u53ca\u80cc\u666f \u900f\u660e\u5ea6\r\n */\r\nfunction setTitleColor() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;subtitle\&quot;, \&quot;backgroundColor\&quot;: \&quot;#ffffff\&quot;, \&quot;alpha\&quot;: 0};\r\n sendBUSRoot(strText)\r\n}\r\n\r\n/**\r\n *\r\n * @param fontColor \u8bbe\u7f6e\u989c\u8272 \u9ed8\u8ba4 #ffffff \u767d\u8272\r\n * @param fontSize \u8bbe\u7f6e\u5b57\u4f53\u5927\u5c0f 30\r\n *\r\n * \u8bbe\u7f6e\u5b57\u5e55\u4e2d \u6587\u5b57 \u7ffb\u8bd1\u7684\u989c\u8272,\u5927\u5c0f\r\n */\r\nvar size=30;\r\nfunction setWordsColor(fontColor, fontSize) {\r\n\r\n if (isEmpty(fontColor)) {\r\n fontColor = \&quot;#ffffff\&quot;;\r\n }\r\n if (isEmpty(fontSize)) {\r\n fontSize = 30;\r\n }\r\n\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;words\&quot;, \&quot;fontColor\&quot;: \&quot;\&quot; + fontColor + \&quot;\&quot;, \&quot;fontSize\&quot;: \&quot;\&quot; + fontSize + \&quot;\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n/**\r\n * \u6539\u53d8\u5b57\u5e55\u80cc\u666f\u989c\u8272\r\n * backgroundColor \u80cc\u666f\u989c\u8272 ARGB A \u8868\u793a\u900f\u660e\u5ea6\r\n *\r\n */\r\nfunction setSubtitle() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;changeSubtitle\&quot;, \&quot;backgroundColor\&quot;: \&quot;#ff000000\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n/**\r\n * \u8bbe\u7f6e\u5b57\u5e55\u4f4d\u7f6e\r\n *\u5bf9\u9f50\u65b9\u5f0f :Alignment bottom(\u9ed8\u8ba4) center top\r\n *\r\n * \u5b57\u6570 : wordCount\r\n *\r\n * \u884c\u6570 : numberOfLines \u9ed8\u8ba4\u5355\u884c singleLine(\u5355\u884c) \uff0c multiLine(\u591a\u884c)\r\n */\r\nfunction setSubtitleModel(alignment, singleLine) {\r\n strText = {\r\n \&quot;cmd\&quot;: \&quot;1\&quot;,\r\n \&quot;action\&quot;: \&quot;setApp\&quot;,\r\n \&quot;command\&quot;: \&quot;SubtitleModel\&quot;,\r\n \&quot;Alignment\&quot;: alignment,\r\n \&quot;numberOfLines\&quot;: singleLine\r\n };\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n/**\r\n * @param \u53c2\u8003\u94fe\u63a5\r\n *\r\n * http://api.fanyi.baidu.com/api/trans/product/apidoc#languageList\r\n *\r\n */\r\n\r\nfunction setTranslate(str) {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;translate\&quot;, \&quot;language\&quot;: str};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u9690\u85cf\u6587\u5b57\r\n *\r\n */\r\nfunction hideWords() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;hideWords\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u663e\u793a\u6587\u5b57\r\n */\r\nfunction showWords() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;showWords\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u663e\u793a\u547d\u4ee4\u8bcd\r\n */\r\nfunction showCommand() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;showCommand\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u9690\u85cf\u547d\u4ee4\u8bcd\r\n */\r\nfunction hideCommand() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;hideCommand\&quot;};\r\n\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u9690\u85cf\u7ffb\u8bd1\r\n */\r\nfunction hideTranslate() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;hideTranslate\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u663e\u793a\u7ffb\u8bd1\r\n */\r\nfunction showTranslate() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;showTranslate\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u5f39\u51fa\u5de6\u4fa7\u52a9\u624b\r\n */\r\nfunction showAide() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;showAide\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u9690\u85cf\u52a9\u624b\r\n */\r\nfunction hideAide() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;hideAide\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u5f00\u59cbHDMI\u753b\u9762\r\n */\r\nfunction doVideo() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;doVideo\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u505c\u6b62HDMI\u753b\u9762\r\n */\r\nfunction stopVideo() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;stopVideo\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n/**\r\n * \u663e\u793a\u4eba\u540d\r\n */\r\nfunction showName() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;showName\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u9690\u85cf\u4eba\u540d\r\n */\r\nfunction hideName() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;hideName\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n\r\n/**\r\n * \u663e\u793a\u4eba\u540d\r\n */\r\nfunction showLineStatus() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;showLineStatus\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u9690\u85cf\u4eba\u540d\r\n */\r\nfunction hideLineStatus() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;hideLineStatus\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n/**\r\n * \u83b7\u53d6android\u5f00\u53d1\u677f\u4fe1\u606f\r\n */\r\nfunction getAndroid() {\r\n var strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;system\&quot;, \&quot;command\&quot;: \&quot;getAndroid\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u53bb\u8bbe\u7f6e\u9875\u9762\r\n */\r\nfunction toSetPage() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;toSetPage\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n/**\r\n *\r\n * @param wordType 0\u8868\u793a\u767e\u5ea6\u8bed\u97f3 1 \u8868\u793a\u8baf\u98de\u8bed\u97f3\r\n * @param host \u4e3b\u673a\u5730\u5740\u548c\u7aef\u53e3 ( 192.168.1.2:8080 ) \u6388\u6743\u7801\r\n *\r\n * authorizationCode : \u4f1a\u8bae\u5ba4\u6388\u6743\u7801\r\n */\r\nfunction startSubTitle(wordType, host) {\r\n\r\n if (isEmpty(host)) {\r\n return\r\n }\r\n if (wordType == 0) {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;wordsSet\&quot;, \&quot;wordType\&quot;: 0, \&quot;host\&quot;: \&quot;\&quot; + host + \&quot;\&quot;};\r\n } else if (wordType == 1) {\r\n strText = {\r\n \&quot;cmd\&quot;: \&quot;1\&quot;,\r\n \&quot;action\&quot;: \&quot;setApp\&quot;,\r\n \&quot;command\&quot;: \&quot;wordsSet\&quot;,\r\n \&quot;wordType\&quot;: 1,\r\n \&quot;host\&quot;: \&quot;\&quot; + host + \&quot;\&quot;,\r\n \&quot;authorizationCode\&quot;: \&quot;ANW-SZUBJS-TDOG\&quot;\r\n };\r\n } else {\r\n //\u5982\u679c\u6ca1\u6709\u586b\u5199\u53c2\u6570\u6216\u8fd9\u4e2a \u53c2\u6570\u9519\u8bef \uff0c\u4e0d\u5f80\u4e0b\u6267\u884c!\r\n return\r\n }\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\nfunction separateRoom(conferenceRoomID) {\r\n if (isEmpty(conferenceRoomID)) {\r\n return\r\n }\r\n strText = {\r\n \&quot;cmd\&quot;: \&quot;1\&quot;,\r\n \&quot;action\&quot;: \&quot;setApp\&quot;,\r\n \&quot;command\&quot;: \&quot;separateRoom\&quot;,\r\n \&quot;conferenceRoomID\&quot;: \&quot;\&quot; + conferenceRoomID + \&quot;\&quot;\r\n };\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n\r\n/**\r\n * \u7cfb\u7edf\u8bbe\u7f6e\u65b9\u6cd5\r\n */\r\n\r\n/**\r\n *\r\n *\u5173\u673a\r\n */\r\nfunction shutDown() {\r\n var strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;system\&quot;, \&quot;command\&quot;: \&quot;shutDown\&quot;};\r\n sendBUSRoot(strText);\r\n\r\n}\r\n\r\n/**\r\n *\r\n *\u91cd\u542f\r\n */\r\nfunction reboot() {\r\n var strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;system\&quot;, \&quot;command\&quot;: \&quot;reboot\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n/**\r\n * \u5378\u8f7d\u81ea\u5df1\r\n */\r\nfunction deleteSelf() {\r\n var strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;system\&quot;, \&quot;command\&quot;: \&quot;deleteSelf\&quot;};\r\n sendBUSRoot(strText);\r\n}\r\n\r\n\r\n/**\r\n *\u4e2d\u6587\u53c2\u6570\r\n */\r\nvar strJson;\r\nvar strLen;\r\n\r\n/**\r\n * \u64ad\u653e\u8bed\u97f3\r\n */\r\nfunction doAudio() {\r\n strText = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;doAudio\&quot;, \&quot;data\&quot;: \&quot;\u4e0d\u4ee5\u5c71\u6d77\u4e3a\u8fdc\uff0c\u4e2d\u56fd\u7279\u8272\u5927\u56fd\u5916\u4ea4\u4e4b\u8def\u8d8a\u8d70\u8d8a\u5bbd\u5e7f\&quot;};\r\n strJson = JSON.stringify(strText);\r\n strLen = getULen(strJson);\r\n sendCodeString('BUS', strStart + strLen + setGBK(strJson) + strEnd);\r\n}\r\n\r\n/**\r\n * \u6539\u53d8\u5de6\u4fa7\u52a9\u624b\u63d0\u793a\u6587\u5b57\r\n *\r\n */\r\n\r\nfunction aideData() {\r\n strText = {\r\n \&quot;cmd\&quot;: \&quot;1\&quot;,\r\n \&quot;data\&quot;: [{\&quot;data\&quot;: \&quot;\u6253\u5f00\u6240\u6709\u706f\u5149\&quot;, \&quot;iflytek\&quot;: \&quot;\&quot;, \&quot;itemType\&quot;: \&quot;0\&quot;, \&quot;person\&quot;: \&quot;\&quot;, \&quot;type\&quot;: 0}, {\r\n \&quot;data\&quot;: \&quot;\u6253\u5f00\u672c\u5730\u4f1a\u8bae\u6a21\u5f0f\u6d4b\u8bd5\&quot;,\r\n \&quot;iflytek\&quot;: \&quot;\&quot;,\r\n \&quot;itemType\&quot;: \&quot;0\&quot;,\r\n \&quot;person\&quot;: \&quot;\&quot;,\r\n \&quot;type\&quot;: 0\r\n }, {\&quot;data\&quot;: \&quot;\u547c\u53eb\u5317\u4eac\u3001\u4e0a\u6d77\u3001\u6df1\u5733\&quot;, \&quot;iflytek\&quot;: \&quot;\&quot;, \&quot;itemType\&quot;: \&quot;0\&quot;, \&quot;person\&quot;: \&quot;\&quot;, \&quot;type\&quot;: 0}, {\r\n \&quot;data\&quot;: \&quot;\u7a7a\u8c03\u8c03\u523025\u5ea6\&quot;,\r\n \&quot;iflytek\&quot;: \&quot;\&quot;,\r\n \&quot;itemType\&quot;: \&quot;0\&quot;,\r\n \&quot;person\&quot;: \&quot;\&quot;,\r\n \&quot;type\&quot;: 0\r\n }, {\&quot;data\&quot;: \&quot;\u4e2d\u5c4f\u663e\u793a\u524d\u684c\u63d2\&quot;, \&quot;iflytek\&quot;: \&quot;\&quot;, \&quot;itemType\&quot;: \&quot;0\&quot;, \&quot;person\&quot;: \&quot;\&quot;, \&quot;type\&quot;: 0}, {\r\n \&quot;data\&quot;: \&quot;\u6253\u5f00\u89c6\u9891\u4f1a\u8bae\u6a21\u5f0f\&quot;,\r\n \&quot;iflytek\&quot;: \&quot;\&quot;,\r\n \&quot;itemType\&quot;: \&quot;0\&quot;,\r\n \&quot;person\&quot;: \&quot;\&quot;,\r\n \&quot;type\&quot;: 0\r\n }, {\&quot;data\&quot;: \&quot;\u5f00\u542f\u6696\u5149\&quot;, \&quot;iflytek\&quot;: \&quot;\&quot;, \&quot;itemType\&quot;: \&quot;0\&quot;, \&quot;person\&quot;: \&quot;\&quot;, \&quot;type\&quot;: 0}, {\r\n \&quot;data\&quot;: \&quot;\u5e2e\u6211\u6765\u4e00\u676f\u5496\u5561\&quot;,\r\n \&quot;iflytek\&quot;: \&quot;\&quot;,\r\n \&quot;itemType\&quot;: \&quot;0\&quot;,\r\n \&quot;person\&quot;: \&quot;\&quot;,\r\n \&quot;type\&quot;: 0\r\n }, {\&quot;data\&quot;: \&quot;\u7ed3\u675f\u4f1a\u8bae\&quot;, \&quot;iflytek\&quot;: \&quot;\&quot;, \&quot;itemType\&quot;: \&quot;0\&quot;, \&quot;person\&quot;: \&quot;\&quot;, \&quot;type\&quot;: 0}],\r\n \&quot;action\&quot;: \&quot;setApp\&quot;,\r\n \&quot;command\&quot;: \&quot;aideData\&quot;\r\n }\r\n strJson = JSON.stringify(strText);\r\n strLen = getULen(strJson);\r\n sendCodeString('BUS', strStart + strLen + setGBK(strJson) + strEnd);\r\n}\r\n\r\n\r\n/**\r\n * \u5e95\u5c42\u53c2\u6570\uff0c\u4e0d\u9700\u8981\u4fee\u6539\r\n * @param str\r\n * @returns {string}\r\n */\r\nfunction getULen(str) {\r\n var l = str.length;\r\n var blen = 0;\r\n for (i = 0; i &lt; l; i++) {\r\n if ((str.charCodeAt(i) &amp; 0xff00) != 0) {\r\n blen++;\r\n }\r\n blen++;\r\n }\r\n\r\n var slen = blen.toString();\r\n if (slen.length == 0) {\r\n slen = \&quot;0000\&quot;;\r\n } else if (slen.length == 1) {\r\n slen = \&quot;000\&quot; + slen;\r\n } else if (slen.length == 2) {\r\n slen = \&quot;00\&quot; + slen;\r\n } else if (slen.length == 3) {\r\n slen = \&quot;0\&quot; + slen;\r\n }\r\n return slen;\r\n}\r\n\r\n/**\r\n *\r\n * @param vLen \u83b7\u53d6\u5b57\u7b26\u4e32\u7684\u957f\u5ea6\r\n * @returns {string}\r\n */\r\nfunction getLength(vLen) {\r\n var len1 = vLen % 0x100;\r\n var len2 = vLen % 0x10000 / 0x100;\r\n var len3 = vLen % 0x1000000 / 0x10000;\r\n var len4 = vLen / 0x1000000;\r\n return String.fromCharCode(len4) + String.fromCharCode(len3) + String.fromCharCode(len2) + String.fromCharCode(len1);\r\n}\r\n\r\n//\u5224\u65ad\u5b57\u7b26\u662f\u5426\u4e3a\u7a7a\u7684\u65b9\u6cd5\r\nfunction isEmpty(obj) {\r\n if (typeof obj == \&quot;undefined\&quot; || obj == null || obj == \&quot;\&quot;) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n}\r\n\r\n\r\n/**\r\n *\r\n * @param json\r\n *\r\n * @param status \u521d\u59cb\u5316 \u9ed8\u8ba4\u4e3atrue\uff0c\u4f7f\u7528\u4e32\u53e3\u53d1\u9001\u6d88\u606f\r\n *\r\n *\u5f53 status \u4e3afalse \u4f7f\u7528 TCP Client \u53d1\u9001\u6570\u636e\u6d88\u606f\r\n *\r\n */\r\n\r\nvar status = true;\r\n\r\nfunction sendBUSRoot(json) {\r\n var strJson = JSON.stringify(json);\r\n var strLen = getULen(strJson);\r\n\r\n if (status) {\r\n sendCodeString('BUS', strStart + strLen + setGBK(strJson) + strEnd);\r\n } else {\r\n sendCodeString(NET1, strStart + strLen + setGBK(strJson) + strEnd + \&quot;\\n\&quot;);\r\n }\r\n}&quot;, false]" ScriptParamCount="[0, false]" UUID="[&quot;19633cde0f5d11e9a9c7d4258b878bb9&quot;, false]"/>
</SCRIPTS>
<PREDEFINES Name="[&quot;PREDEFINES&quot;, false]" PredefineList="[&quot;[]&quot;, true]" UUID="[&quot;b859ffd20f5a11e9ae57d4258b878bb9&quot;, false]"/>
</PROJECT>
A1.ui.png

428.2 KB | W: | H:

A1.ui.png

447.3 KB | W: | H:

A1.ui.png
A1.ui.png
A1.ui.png
A1.ui.png
  • 2-up
  • Swipe
  • Onion skin
No preview for this file type
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论