YZProjectCloud/yanzhu-modules/yanzhu-led/docs/doc/bx05-0.0.5-SNAPSHOT_javadoc/onbon/bx05/package-summary.html

403 lines
15 KiB
HTML
Raw Normal View History

2026-01-04 15:32:09 +08:00
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_79) on Wed Jan 18 13:20:46 CST 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>onbon.bx05</title>
<meta name="date" content="2017-01-18">
<link rel="stylesheet" type="text/css" href="../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="onbon.bx05";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-use.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev Package</li>
<li><a href="../../onbon/bx05/area/package-summary.html">Next Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?onbon/bx05/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<div class="header">
<h1 title="Package" class="title">Package&nbsp;onbon.bx05</h1>
<div class="docSummary">
<div class="block">BX 五代卡函数库。<br>
<br>
使用 API 前,先利用 Bx5GEnv.initial() 初始化应用程式环境,之后使用 Bx5GScreenClient 对控制器进行相关作业。<br>
<br>
1.</div>
</div>
<p>See:&nbsp;<a href="#package_description">Description</a></p>
</div>
<div class="contentContainer">
<ul class="blockList">
<li class="blockList">
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Interface Summary table, listing interfaces, and an explanation">
<caption><span>Interface Summary</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Interface</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GRequestCmd.html" title="interface in onbon.bx05">Bx5GRequestCmd</a>&lt;T extends onbon.bx05.message.Response&gt;</td>
<td class="colLast">
<div class="block">BX5G 请求命令。</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GServerListener.html" title="interface in onbon.bx05">Bx5GServerListener</a></td>
<td class="colLast">
<div class="block">服务器模式监听程式。<br>
程式会透过此介面通知外系统控制器连线或断线事件。 <br>
 * 不论连线还是断线,事件讯息包含三部分:<br>
 * 1.</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Class Summary table, listing classes, and an explanation">
<caption><span>Class Summary</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Class</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GBrightnessClockEnv.html" title="class in onbon.bx05">Bx5GBrightnessClockEnv</a></td>
<td class="colLast">
<div class="block">時間亮度設定。</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GBrightnessSensorEnv.html" title="class in onbon.bx05">Bx5GBrightnessSensorEnv</a></td>
<td class="colLast">
<div class="block">客制化传感器亮度設定。</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GController.html" title="class in onbon.bx05">Bx5GController</a></td>
<td class="colLast">
<div class="block">BX5G 五代系列控制器。</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GControllerClient.html" title="class in onbon.bx05">Bx5GControllerClient</a></td>
<td class="colLast">
<div class="block">BX5G TCP Socket Client 控制器。</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GControllerRS.html" title="class in onbon.bx05">Bx5GControllerRS</a></td>
<td class="colLast">
<div class="block">BX5G RS232 控制器。<br>
本程式進能運行在 32 位元環境,同時<br>
1.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GControllerServer.html" title="class in onbon.bx05">Bx5GControllerServer</a></td>
<td class="colLast">
<div class="block">BX5G TCP Socket Server 控制器。</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GEnv.html" title="class in onbon.bx05">Bx5GEnv</a></td>
<td class="colLast">
<div class="block">BX5G API 环境。</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GMessageMgr.html" title="class in onbon.bx05">Bx5GMessageMgr</a></td>
<td class="colLast">
<div class="block">BX5G 协议管理程式。</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GMessageMgrSvr.html" title="class in onbon.bx05">Bx5GMessageMgrSvr</a></td>
<td class="colLast">
<div class="block">BX5G 协议管理程式。</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GResponseCmd.html" title="class in onbon.bx05">Bx5GResponseCmd</a>&lt;T extends onbon.bx05.message.Response&gt;</td>
<td class="colLast">
<div class="block">BX5G 回应命令。</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GScreen.html" title="class in onbon.bx05">Bx5GScreen</a></td>
<td class="colLast">
<div class="block">屏幕控制程式。</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GScreenClient.html" title="class in onbon.bx05">Bx5GScreenClient</a></td>
<td class="colLast">
<div class="block">屏幕控制程式 (TCP Socket Client 模式)。<br>
本类可以快速操作控制器并读取或下载节目与屏幕参数。<br></div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GScreenProfile.html" title="class in onbon.bx05">Bx5GScreenProfile</a></td>
<td class="colLast">
<div class="block">屏幕规格。</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GScreenRS.html" title="class in onbon.bx05">Bx5GScreenRS</a></td>
<td class="colLast">
<div class="block">屏幕控制程式 (RS232 模式)。<br>
本类可以快速操作控制器并读取或下载节目与屏幕参数。<br></div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GScreenServer.html" title="class in onbon.bx05">Bx5GScreenServer</a></td>
<td class="colLast">
<div class="block">屏幕控制程式 (TCP Socket Server 模式)。</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GServer.html" title="class in onbon.bx05">Bx5GServer</a></td>
<td class="colLast">
<div class="block">BX5G 服务器主程式。<br>
程式会于启动后监听是否有屏幕与服务程式建立连线,并于连线建立后透过监听器通知外部。 <br>
 * 当屏幕于一分钟内没有收到任何心跳包,或没有进行任何操作,程式会自动切断该屏幕的连线,并透过监听器通知外部。 <br></div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../onbon/bx05/CheckHealthIn.html" title="class in onbon.bx05">CheckHealthIn</a></td>
<td class="colLast">
<div class="block">处理控制器于服务器模式下的网路心跳包。</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../onbon/bx05/GRPSHealthIn.html" title="class in onbon.bx05">GRPSHealthIn</a></td>
<td class="colLast">
<div class="block">处理 GPRS 的心跳包。</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../onbon/bx05/GRPSIn.html" title="class in onbon.bx05">GRPSIn</a></td>
<td class="colLast">
<div class="block">处理 GPRS 連線。</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Enum Summary table, listing enums, and an explanation">
<caption><span>Enum Summary</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Enum</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GController.RunMode.html" title="enum in onbon.bx05">Bx5GController.RunMode</a></td>
<td class="colLast">
<div class="block">运行模式。</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GScreenProfile.ScreenColorType.html" title="enum in onbon.bx05">Bx5GScreenProfile.ScreenColorType</a></td>
<td class="colLast">
<div class="block">显示屏类型。<br>
1单基色。<br>
3双基色。<br>
255全彩。<br></div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GScreenProfile.ScreenMatrixType.html" title="enum in onbon.bx05">Bx5GScreenProfile.ScreenMatrixType</a></td>
<td class="colLast">
<div class="block">点阵类型。控制器默认为 G+R 类型。<br></div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GScreenRS.BaudRate.html" title="enum in onbon.bx05">Bx5GScreenRS.BaudRate</a></td>
<td class="colLast">
<div class="block">波特率</div>
</td>
</tr>
</tbody>
</table>
</li>
<li class="blockList">
<table class="packageSummary" border="0" cellpadding="3" cellspacing="0" summary="Exception Summary table, listing exceptions, and an explanation">
<caption><span>Exception Summary</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Exception</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tbody>
<tr class="altColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GCommException.html" title="class in onbon.bx05">Bx5GCommException</a></td>
<td class="colLast">
<div class="block">BX5G 通讯异常。</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><a href="../../onbon/bx05/Bx5GException.html" title="class in onbon.bx05">Bx5GException</a></td>
<td class="colLast">
<div class="block">BX5G 一般性错误。</div>
</td>
</tr>
</tbody>
</table>
</li>
</ul>
<a name="package_description">
<!-- -->
</a>
<h2 title="Package onbon.bx05 Description">Package onbon.bx05 Description</h2>
<div class="block">BX 五代卡函数库。<br>
<br>
使用 API 前,先利用 Bx5GEnv.initial() 初始化应用程式环境,之后使用 Bx5GScreenClient 对控制器进行相关作业。<br>
<br>
1. 利用 ProgramBxFile 设计节目,并透过 Bx5GScreenClient 下载至控制器进行显示。<br>
2. 利用 ControllerConfigBxFile 设定屏幕参数,并透过 Bx5GScreenClient 下载至控制器进行参数更新。<br>
<pre>
<code>Bx5GEnv.initial();
Bx5GScreenClient screen = new Bx5GScreenClient("TEST");
screen.connect("192.168.5.7", 5005);
screen.readConfigure();
List&lt;String&gt; files = screen.readProgramList();
screen.checkMemVolumes());
screen.ping();
screen.syncTime();
screen.checkFirmware();
screen.turnOff();
screen.turnOn();
screen.readControllerId();
screen.manualBrightness(12);
screen.lock();
screen.unlock();
screen.lockProgram("P000", 1);
screen.unlockProgram("P000");
screen.checkControllerStatus();
ModifyBrightnessCmd cmd = screen.createBrightness();
cmd.setupTimerBrightness(26, 12);
screen.modifyBrightness(cmd);
DateTimeBxArea area1 = new DateTimeBxArea(450, 4, screen.getProfile());
area1.setDateStyle(DateStyle.YYYY_MM_DD_1);
area1.setTimeStyle(TimeStyle.HH_MM_1);
ProgramBxFile pf = new ProgramBxFile("P000", screen.getProfile());
pf.addArea(area1);
ArrayList&lt;ProgramBxFile&gt; pfs = new ArrayList&lt;ProgramBxFile&gt;();
pfs.add(pf);
screen.writePrograms(pfs);
screen.disconnect();
</code>
</pre></div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../onbon/bx05/Bx5GScreenClient.html" title="class in onbon.bx05"><code>屏幕控制主程式</code></a>,
<a href="../../onbon/bx05/file/ProgramBxFile.html" title="class in onbon.bx05.file"><code>节目</code></a>,
<a href="../../onbon/bx05/file/ControllerConfigBxFile.html" title="class in onbon.bx05.file"><code>屏幕参数</code></a></dd></dl>
</div>
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!-- -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../overview-summary.html">Overview</a></li>
<li class="navBarCell1Rev">Package</li>
<li>Class</li>
<li><a href="package-use.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../index-all.html">Index</a></li>
<li><a href="../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li>Prev Package</li>
<li><a href="../../onbon/bx05/area/package-summary.html">Next Package</a></li>
</ul>
<ul class="navList">
<li><a href="../../index.html?onbon/bx05/package-summary.html" target="_top">Frames</a></li>
<li><a href="package-summary.html" target="_top">No Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<a name="skip-navbar_bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>