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

增加Ai1000 TCP Server

分离多字幕通道
可以移动自动
上级 66952c25
<?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="[[1920, 1200], true]" ProjectStyle="[&quot;&quot;, true]" Startup="[&quot;Main&quot;, true]" UUID="[&quot;b858a0400f5a11e9a593d4258b878bb9&quot;, false]">
<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.148&quot;, true]" Name="[&quot;EC-8000&quot;, true]" UUID="[&quot;be2304700f5a11e9af68d4258b878bb9&quot;, false]">
<DEVICENODE Address="[&quot;192.168.1.234&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;&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.236: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]"/>
......@@ -55,15 +55,15 @@
</DEVICENODE>
</DEVICES>
<GUI Name="[&quot;GUI&quot;, false]" UUID="[&quot;b859ffd00f5a11e983edd4258b878bb9&quot;, false]">
<GUIGROUPNODE BackgroundSize="[[1920, 1200], true]" Name="[&quot;NewGroup&quot;, true]" UUID="[&quot;770eac1e0f6311e9abe8d4258b878bb9&quot;, false]">
<GUINODE BackGroundImage="[&quot;images\\ImageBackGround.jpg&quot;, true]" Name="[&quot;Main&quot;, true]" Size="[[1920, 1200], true]" UUID="[&quot;780800400f6311e981cdd4258b878bb9&quot;, false]" Z_Depth="[0, true]">
<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="[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]"/>
<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;top\&quot;,\&quot;singleLine\&quot;);&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[841.951111111111, 212.54999999999995], true]" Size="[[169, 87], true]" Text="[&quot;\u8bbe\u7f6e\u5b57\u5e55\u6a21\u5f0fTop&quot;, true]" UUID="[&quot;ad507432c69111eab29b1c1b0d7c67d5&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;setSubtitle();&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[840.951111111111, 117.54999999999995], true]" Size="[[169, 87], true]" Text="[&quot;\u8bbe\u7f6e\u80cc\u666f\u989c\u8272&quot;, true]" UUID="[&quot;f6d16c42c67311ea9f2a1c1b0d7c67d5&quot;, false]"/>
<IMAGE ImagePic="[&quot;images\\ImageStates.png&quot;, true]" MediaUrl="[&quot;&quot;, true]" Movable="[0, true]" Name="[&quot;ChangeImage&quot;, true]" Pos="[[1009, 455], true]" Size="[[151, 146], true]" UUID="[&quot;7166cc21f8a711e9a2fa001a7dda7111&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="[[255, 0, 128], true]" FontSize="[16, true]" ImagePic="[&quot;images\\ImageOffStates.png&quot;, true]" Movable="[0, true]" Name="[&quot;ChangName&quot;, true]" OnClick="[&quot;setImage(\&quot;ChangeName\&quot;,\&quot;ImageBackGround.jpg\&quot;);&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[846.6, 592.45], true]" Size="[[169, 87], true]" Text="[&quot;\u6587\u5b57&quot;, true]" UUID="[&quot;546861cff8a511e9ade5001a7dda7111&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="[[255, 0, 128], true]" FontSize="[16, true]" ImagePic="[&quot;images\\ImageOffStates.png&quot;, true]" Movable="[0, true]" Name="[&quot;New Button&quot;, true]" OnClick="[&quot;hideCommand();&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[842.6, 506.45000000000005], true]" Size="[[169, 87], true]" Text="[&quot;\u9690\u85cf\u63a7\u5236\u6587\u5b57&quot;, true]" UUID="[&quot;afdf398ff22311e9bc75001a7dda7111&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="[[255, 0, 128], true]" FontSize="[16, true]" ImagePic="[&quot;images\\ImageOffStates.png&quot;, true]" Movable="[0, true]" Name="[&quot;New Button&quot;, true]" OnClick="[&quot;hideCommand();&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[844.6, 503.45000000000005], true]" Size="[[169, 87], true]" Text="[&quot;\u9690\u85cf\u63a7\u5236\u6587\u5b57&quot;, true]" UUID="[&quot;afdf398ff22311e9bc75001a7dda7111&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="[[255, 0, 128], true]" FontSize="[16, true]" ImagePic="[&quot;images\\ImageOffStates.png&quot;, true]" Movable="[0, true]" Name="[&quot;New Button&quot;, true]" OnClick="[&quot;showCommand();&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, 233.45000000000005], true]" Size="[[169, 87], true]" Text="[&quot;\u663e\u793a\u63a7\u5236\u6587\u5b57&quot;, true]" UUID="[&quot;4e7490b2f22311e9a950001a7dda7111&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;setTranslate(\&quot;en\&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, 560.8], true]" Size="[[169, 87], true]" Text="[&quot;\u8bbe\u7f6e\u8bed\u8a00(\u82f1)&quot;, true]" UUID="[&quot;7ac9863196e711e9814a001a7dda7111&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;setTranslate(\&quot;zh\&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, 560.8], true]" Size="[[169, 87], true]" Text="[&quot;\u8bbe\u7f6e\u8bed\u8a00(\u4e2d)&quot;, true]" UUID="[&quot;026e05af966c11e9b5b7001a7dda7111&quot;, false]"/>
......@@ -77,7 +77,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.162: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.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(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]"/>
......@@ -93,7 +93,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;doAudio();&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, 332.54999999999995], true]" Size="[[169, 87], true]" Text="[&quot;\u8bed\u97f3\u64ad\u653e&quot;, true]" UUID="[&quot;87f5969f0fbf11e9b63ef8cab80fe439&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;showAide();&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, 31.450000000000045], true]" Size="[[169, 87], true]" Text="[&quot;\u5f39\u51fa\u8bed\u97f3\u52a9\u624b&quot;, true]" UUID="[&quot;85b914220fbf11e9b8aff8cab80fe439&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;showTranslate();&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, 332.54999999999995], true]" Size="[[169, 87], true]" Text="[&quot;\u663e\u793a\u7ffb\u8bd1&quot;, true]" UUID="[&quot;83bfb5220fbf11e9a8b6f8cab80fe439&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;setWordsColor();&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, 332.54999999999995], true]" Size="[[169, 87], true]" Text="[&quot;\u8bbe\u7f6e\u5b57\u4f53\u989c\u8272&quot;, true]" UUID="[&quot;81c2aca10fbf11e991a6f8cab80fe439&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;setWordsColor(\&quot;#fffdf8\&quot;,50);&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, 332.54999999999995], true]" Size="[[169, 87], true]" Text="[&quot;\u8bbe\u7f6e\u5b57\u4f53\u989c\u8272&quot;, true]" UUID="[&quot;81c2aca10fbf11e991a6f8cab80fe439&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;closeTtyS3();&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, 31.450000000000045], true]" Size="[[169, 87], true]" Text="[&quot;\u5173\u95edTtyS3&quot;, true]" UUID="[&quot;7edc7c9f0fbf11e9a0c6f8cab80fe439&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;showSubtitle();&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, 233.45000000000005], true]" Size="[[169, 87], true]" Text="[&quot;\u663e\u793a\u60ac\u6d6e\u5b57\u5e55&quot;, true]" UUID="[&quot;7cee412e0fbf11e99ffaf8cab80fe439&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;closeUSB();&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, 128.54999999999995], true]" Size="[[169, 87], true]" Text="[&quot;\u5173\u95ed\u4e32\u53e3USB&quot;, true]" UUID="[&quot;798685230fbf11e9890ff8cab80fe439&quot;, false]"/>
......@@ -105,6 +105,22 @@
<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="[24, true]" ImagePic="[&quot;images\\ImageOffStates.png&quot;, true]" Movable="[0, true]" Name="[&quot;New Button&quot;, true]" OnClick="[&quot;openTtyS3();&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, 31.450000000000045], true]" Size="[[169, 87], true]" Text="[&quot;\u6253\u5f00TtyS3\u4e32\u53e3&quot;, true]" UUID="[&quot;91a05c300f6511e9a371d4258b878bb9&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;sendTtyS3(\&quot;ABCDEF\\xFF\\xFF\\x80\\x81\\x82\&quot;);&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[336.6, 679.8], true]" Size="[[169, 87], true]" Text="[&quot;\u53d1\u9001\u6570\u636e(\u5927\u4e8e80)&quot;, true]" UUID="[&quot;8d2bfd010f6311e996a0d4258b878bb9&quot;, false]"/>
</GUINODE>
<GUINODE BackGroundImage="[&quot;images\\ImageBackGround.jpg&quot;, true]" Name="[&quot;AdvancedUsage&quot;, true]" Size="[[1024, 768], true]" UUID="[&quot;61330ec050b911eba6e11c1b0d7c67d5&quot;, false]" Z_Depth="[0, true]">
<TEXT Align="[1, true]" Font="[&quot;fonts\\simhei.ttf&quot;, true]" FontColor="[[0, 0, 0], true]" FontSize="[16, true]" Movable="[0, true]" Name="[&quot;New Text&quot;, true]" Pos="[[34, 18], true]" Size="[[391, 36], true]" Text="[&quot;\u8bbe\u7f6e\u53d1\u9001\u6570\u636e\u6a21\u5f0f(\u4e32\u53e3\u6216\u8005TCP\u6a21\u5f0f\uff0c\u9ed8\u8ba4\u4e32\u53e3\u6a21\u5f0f)&quot;, true]" UUID="[&quot;7a29f74f517b11eba5dc1c1b0d7c67d5&quot;, false]"/>
<TEXT Align="[1, true]" Font="[&quot;fonts\\simhei.ttf&quot;, true]" FontColor="[[0, 0, 0], true]" FontSize="[16, true]" Movable="[0, true]" Name="[&quot;New Text&quot;, true]" Pos="[[34, 157], true]" Size="[[269, 34], true]" Text="[&quot;\u8bbe\u7f6eMQTT \u901a\u9053,\u5206\u79bb\u4f1a\u8bae\u5ba4&quot;, true]" UUID="[&quot;5d56d0cf517b11eb82111c1b0d7c67d5&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;separateRoom(\&quot;3d1dcc56-505c-4990-b43f-e933b7bd1533\&quot;);&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[225.0, 199], true]" Size="[[169, 87], true]" Text="[&quot;\u4f1a\u8bae\u5ba4\u4e8c&quot;, true]" UUID="[&quot;3efb0e82517b11eb98991c1b0d7c67d5&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;setPageShow('BasicUsage');&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[855.0, 672.0], true]" Size="[[169, 87], true]" Text="[&quot;\u8fd4\u56de&quot;, true]" UUID="[&quot;01dced0250c411ebae5c1c1b0d7c67d5&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;status=true;&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[225.0, 58], true]" Size="[[169, 87], true]" Text="[&quot;\u4e32\u53e3\u53d1\u9001\u6d88\u606f&quot;, true]" UUID="[&quot;f60803d350c211eb8a2a1c1b0d7c67d5&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;status=false;&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[33, 58], true]" Size="[[169, 87], true]" Text="[&quot;TCP\u53d1\u9001\u6d88\u606f&quot;, true]" UUID="[&quot;eadd6eee50c211eb8e271c1b0d7c67d5&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;moveSubtitle(5);&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[225.0, 545], true]" Size="[[169, 87], true]" Text="[&quot;\u5b57\u5e55\u4e0b\u79fb&quot;, true]" UUID="[&quot;7212dcae50ba11eb892c1c1b0d7c67d5&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;moveSubtitle(-5);&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[32, 546], true]" Size="[[169, 87], true]" Text="[&quot;\u5b57\u5e55\u4e0a\u79fb&quot;, true]" UUID="[&quot;6ae1bc9050ba11eb91161c1b0d7c67d5&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;moveSubtitle(-3);&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[443.0, 427.0], true]" Size="[[169, 87], true]" Text="[&quot;\u5b57\u5e55\u9876\u90e8&quot;, true]" UUID="[&quot;611e0aae50ba11eb93c51c1b0d7c67d5&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;moveSubtitle(-2);&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[225.0, 427.0], true]" Size="[[169, 87], true]" Text="[&quot;\u5b57\u5e55\u4e2d\u90e8&quot;, true]" UUID="[&quot;5f94366350ba11eb960f1c1b0d7c67d5&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;moveSubtitle(-1);&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[32, 427], true]" Size="[[169, 87], true]" Text="[&quot;\u5b57\u5e55\u5e95\u90e8&quot;, true]" UUID="[&quot;53e7040150ba11eb8bce1c1b0d7c67d5&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;size-=5;\r\nsetWordsColor(\&quot;#fffdf8\&quot;,size);&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[225.0, 307], true]" Size="[[169, 87], true]" Text="[&quot;\u6587\u5b57\u5927\u5c0f\u51cf\u5c0f&quot;, true]" UUID="[&quot;48b458cf50ba11ebbf9d1c1b0d7c67d5&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;size+=5;\r\nsetWordsColor(\&quot;#fffdf8\&quot;,size);&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[31, 304], true]" Size="[[169, 87], true]" Text="[&quot;\u6587\u5b57\u5927\u5c0f\u589e\u52a0&quot;, true]" UUID="[&quot;2521719f50ba11eb85921c1b0d7c67d5&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;separateRoom(\&quot;4dde5bf3-aa3b-49c7-8a32-3c4c4fbcc4e0\&quot;);&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[33, 202], true]" Size="[[169, 87], true]" Text="[&quot;\u4f1a\u8bae\u5ba4\u4e00&quot;, true]" UUID="[&quot;134d8a4150ba11eb96d21c1b0d7c67d5&quot;, false]"/>
</GUINODE>
<GUINODE BackGroundImage="[&quot;&quot;, true]" Name="[&quot;pDisConnect&quot;, true]" Size="[[1920, 1200], true]" UUID="[&quot;c8a4428ff6f511eaab7f1c1b0d7c67d5&quot;, false]" Z_Depth="[0, true]">
<IMAGEBAR BarNodeDirection="[0, true]" BarNodePosition="[1.0, true]" ButtonDownImage="[&quot;images\\ImageBar2.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="[0, true]" ImagePic="[&quot;images\\ImageBar1.png&quot;, true]" Movable="[0, true]" Name="[&quot;New Image Bar&quot;, true]" OnBarChange="[&quot;&quot;, true]" OnClick="[&quot;&quot;, true]" OnClickKeep="[&quot;&quot;, true]" OnClickKeepRemote="[&quot;&quot;, true]" OnClickRemote="[&quot;&quot;, true]" OnClickUp="[&quot;&quot;, true]" OnClickUpRemote="[&quot;&quot;, true]" Pos="[[544, 197], true]" Size="[[73, 396], true]" UUID="[&quot;d1ad1e01f6f711eab4441c1b0d7c67d5&quot;, false]"/>
<IMAGE ImagePic="[&quot;images\\ImageBackGround.jpg&quot;, true]" MediaUrl="[&quot;&quot;, true]" Movable="[0, true]" Name="[&quot;New Image&quot;, true]" Pos="[[413, 133], true]" Size="[[687, 493], true]" UUID="[&quot;25d7f880f6f611eabaee1c1b0d7c67d5&quot;, false]"/>
......@@ -112,7 +128,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\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/**\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\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 * \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 * \u8bbe\u7f6e\u5b57\u5e55\u4e2d \u6587\u5b57 \u7ffb\u8bd1\u7684\u989c\u8272,\u5927\u5c0f\r\n */\r\nfunction setWordsColor() {\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;#fffdf8\&quot;, \&quot;fontSize\&quot;: 50};\r\n sendBUSRoot(strText);\r\n}\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 = {\&quot;cmd\&quot;: \&quot;1\&quot;, \&quot;action\&quot;: \&quot;setApp\&quot;, \&quot;command\&quot;: \&quot;SubtitleModel\&quot;, \&quot;Alignment\&quot;: alignment,\&quot;numberOfLines\&quot;:singleLine};\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\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\r\n return false;\r\n }\r\n}\r\n\r\n\r\nfunction sendBUSRoot(json) {\r\n var strJson = JSON.stringify(json);\r\n var strLen = getULen(strJson);\r\n sendCodeString('BUS', strStart + strLen + setGBK(strJson) + strEnd);\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 * \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

438.7 KB | W: | H:

A1.ui.png

428.2 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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论