From 44d19a04e3faa34cdcaefe5a68606a80af696a7f Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 01 九月 2020 15:22:29 +0800
Subject: [PATCH] #
---
src/main/resources/lib/uia-comm-0.5.1.jar | 0
src/main/resources/lib/bx05-0.5.0-SNAPSHOT-javadoc.jar | 0
src/main/resources/lib/simple-xml-2.7.1.jar | 0
src/main/java/com/zy/core/thread/LedThread.java | 142 +++++++++++++++++++++++++++++++++++++++++++++++
src/main/resources/lib/stax-1.2.0.jar | 0
src/main/resources/lib/uia-message-0.6.0.jar | 0
src/main/resources/lib/bx05-0.5.0-SNAPSHOT.jar | 0
src/main/resources/lib/slf4j-api-1.7.30.jar | 0
src/main/resources/lib/uia-utils-0.2.0.jar | 0
pom.xml | 23 +++++++
src/main/resources/lib/rxtx-2.1.7.jar | 0
src/main/resources/lib/xpp3-1.1.3.3.jar | 0
src/main/resources/lib/bx05.message-0.5.0-SNAPSHOT.jar | 0
src/main/resources/lib/slf4j-simple-1.7.30.jar | 0
src/main/resources/lib/stax-api-1.0.1.jar | 0
15 files changed, 165 insertions(+), 0 deletions(-)
diff --git a/pom.xml b/pom.xml
index 061300d..2de5f6c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -103,6 +103,29 @@
<artifactId>okhttp</artifactId>
<version>3.10.0</version>
</dependency>
+
+ <!-- led sdk -->
+ <dependency>
+ <groupId>com.wcs.bx</groupId>
+ <artifactId>5m3</artifactId>
+ <scope>system</scope>
+ <version>0.5.0</version>
+ <systemPath>${project.basedir}/src/main/resources/lib/bx05-0.5.0-SNAPSHOT.jar</systemPath>
+ </dependency>
+ <dependency>
+ <groupId>com.wcs.bx</groupId>
+ <artifactId>5m3message</artifactId>
+ <scope>system</scope>
+ <version>0.5.0</version>
+ <systemPath>${project.basedir}/src/main/resources/lib/bx05.message-0.5.0-SNAPSHOT.jar</systemPath>
+ </dependency>
+ <dependency>
+ <groupId>com.wcs.bx</groupId>
+ <artifactId>5m3doc</artifactId>
+ <scope>system</scope>
+ <version>0.5.0</version>
+ <systemPath>${project.basedir}/src/main/resources/lib/bx05-0.5.0-SNAPSHOT-javadoc.jar</systemPath>
+ </dependency>
</dependencies>
<build>
diff --git a/src/main/java/com/zy/core/thread/LedThread.java b/src/main/java/com/zy/core/thread/LedThread.java
new file mode 100644
index 0000000..849049c
--- /dev/null
+++ b/src/main/java/com/zy/core/thread/LedThread.java
@@ -0,0 +1,142 @@
+package com.zy.core.thread;
+
+import com.zy.core.Slave;
+import com.zy.core.ThreadHandler;
+import lombok.Data;
+import lombok.extern.slf4j.Slf4j;
+import onbon.bx05.Bx5GEnv;
+import onbon.bx05.Bx5GScreenClient;
+import onbon.bx05.area.TextCaptionBxArea;
+import onbon.bx05.area.page.TextBxPage;
+import onbon.bx05.cmd.dyn7.DynamicBxAreaRule;
+import onbon.bx05.utils.DisplayStyleFactory;
+
+/**
+ * Created by vincent on 2020/9/1
+ */
+@Data
+@Slf4j
+public class LedThread implements Runnable, ThreadHandler {
+
+ private Slave slave;
+
+ public LedThread(Slave slave) {
+ this.slave = slave;
+ }
+
+ @Override
+ public void run() {
+ connect();
+ while (true) {
+ try {
+
+
+
+ Thread.sleep(500);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ }
+
+ @Override
+ public boolean connect() {
+ return false;
+ }
+
+ @Override
+ public void close() {
+
+ }
+
+
+ public static void main(String[] args) throws Exception {
+ Bx5GEnv.initial(3000);
+ // 鍒涘缓screen瀵硅薄锛岀敤浜庡鎺у埗鍣ㄨ繘琛岃闂紝瀹㈡埛绔ā寮�
+ Bx5GScreenClient screen = new Bx5GScreenClient("MyScreen");
+ // 鍒涘缓screen瀵硅薄锛岀敤浜庡鎺у埗鍣ㄨ繘琛岃闂紝涓插彛妯″紡
+ // Bx5GScreenRS screen = new Bx5GScreenRS("MyScreen");
+
+
+ // 鍦ㄥ鎺у埗鍣ㄤ氦浜掍箣鍓嶏紝闇�瑕佸厛涓庢帶鍒跺櫒寤虹珛杩炴帴
+ screen.connect("192.168.100.199",5005);
+ // 涓庢帶鍒跺櫒浜や簰瀹屾垚鍚庯紝闇�鏂紑涓庢帶鍒跺櫒涔嬮棿鐨勮繛鎺�
+ screen.disconnect();
+
+ // 浠ヤ笅涓轰竴浜涚畝鍗曟帶鍒跺懡浠ょ殑浣跨敤鏂规硶
+ // 寮�鍏虫満鍛戒护
+ screen.turnOff();// 鍏虫満
+ screen.turnOn();// 寮�鏈�
+ screen.syncTime();// 鏍℃椂
+ screen.ping();// ping鍛戒护
+ // 鏌ヨ鎺у埗鍣ㄧ姸鎬�
+ screen.checkControllerStatus();
+ // 鏌ヨ鎺у埗鍣ㄥ綋鍓嶅浐浠剁増鏈�
+ screen.checkFirmware();
+ // 鏌ヨ鎺у埗鍣ㄥ唴瀛�
+ screen.checkMemVolumes();
+ // 閿佸畾灞忓箷褰撳墠鐢婚潰
+ screen.lock();
+ // 瑙i櫎閿佸畾灞忓箷褰撳墠鐢婚潰
+ screen.unlock();
+
+
+
+ //
+ // 浠ヤ笅鏄姩鎬佸尯閮ㄥ垎 Demo
+ // 鍔ㄦ�佸尯鐨勭壒鐐�
+
+ // DynamicBxAreaRule(id, runMode, immediatePlay, timeout)
+ // runMode 杩愯妯″紡锛�
+ // 0锛氬惊鐜樉绀恒��
+ // 1锛氭樉绀哄畬鎴愬悗闈欐鏄剧ず鏈�鍚庝竴椤垫暟鎹��
+ // 2锛氬惊鐜樉绀猴紝瓒呰繃璁惧畾鏃堕棿鍚庢暟鎹粛鏈洿鏂版椂涓嶅啀鏄剧ず銆�
+ // 3锛氬惊鐜樉绀猴紝瓒呰繃璁惧畾鏃堕棿鍚庢暟鎹粛鏈洿鏂版椂鏄剧ず Logo 淇℃伅銆�
+ // 4锛氬惊鐜樉绀猴紝鏄剧ず瀹屾渶鍚庝竴椤靛悗灏变笉鍐嶆樉绀恒��
+ // immediatePlay 鏄惁绔嬪嵆鎾斁锛�
+ // 0锛氫笌寮傛鑺傜洰涓�璧锋挱鏀俱��
+ // 1锛氬紓姝ヨ妭鐩仠姝㈡挱鏀撅紝浠呮挱鏀惧姩鎬佸尯鍩熴��
+ // 2锛氬綋鎾斁瀹岃妭鐩紪鍙锋渶楂樼殑寮傛鑺傜洰鍚庢挱鏀捐鍔ㄦ�佸尯鍩熴��
+
+ //
+ // 瀹氫箟涓�涓姩鎬佸尯
+ // 鍙互閫氳繃ID鏉ユ洿鏂颁笉鍚岀殑鍔ㄦ�佸尯鍐呭, 姝ゅ ID 涓� 0
+ DynamicBxAreaRule dynRule = new DynamicBxAreaRule(0, (byte) 4, (byte) 1, 0);
+ //dArea.addProgram("P000");
+ //dArea.addProgram("P001");
+
+ int posX = 440;
+ int posY = 4;
+ TextCaptionBxArea dAreaContent = new TextCaptionBxArea(posX, posY, 64, 16, screen.getProfile());
+ TextBxPage page = new TextBxPage("鍔ㄦ�佺涓�娆″皾璇�");
+ page.setDisplayStyle(DisplayStyleFactory.getStyle(4));
+ dAreaContent.addPage(page);
+
+ // 鍙戦�佸姩鎬佸尯涔嬪墠锛屽鏋滈渶瑕佸垹闄や箣鍓嶇殑鍔ㄦ�佸尯锛屽彲浠ヨ皟鐢ㄤ互涓嬫帴鍙�
+ // 閫氬父濡傛灉鍔ㄦ�佸尯鐨勪綅缃垨澶у皬娌℃湁鍙戠敓鏀瑰彉锛屼笉鐢ㄥ垹闄�
+ screen.deleteAllDynamic();
+
+ // 鏇存柊鍔ㄦ�佸尯
+ screen.writeDynamic(dynRule, dAreaContent);
+ Thread.sleep(15000);
+
+ //
+ // 涓嬮潰妯℃嫙鍐嶆鏇存柊鍔ㄦ�佸尯
+ page = new TextBxPage("鍐嶆灏濊瘯");
+ TextBxPage page2 = new TextBxPage("鎴愬姛");
+
+ dAreaContent.clearPages();
+ dAreaContent.addPage(page);
+ dAreaContent.addPage(page2);
+
+ // 鏇存柊鍔ㄦ�佸尯
+ screen.writeDynamic(dynRule, dAreaContent);
+
+ //
+ // 缁у紑涓庢帶鍒跺櫒涔嬮棿鐨勯摼鎺�
+ screen.disconnect();
+
+
+ }
+
+}
diff --git a/src/main/resources/lib/bx05-0.5.0-SNAPSHOT-javadoc.jar b/src/main/resources/lib/bx05-0.5.0-SNAPSHOT-javadoc.jar
new file mode 100644
index 0000000..e3520b3
--- /dev/null
+++ b/src/main/resources/lib/bx05-0.5.0-SNAPSHOT-javadoc.jar
Binary files differ
diff --git a/src/main/resources/lib/bx05-0.5.0-SNAPSHOT.jar b/src/main/resources/lib/bx05-0.5.0-SNAPSHOT.jar
new file mode 100644
index 0000000..4432116
--- /dev/null
+++ b/src/main/resources/lib/bx05-0.5.0-SNAPSHOT.jar
Binary files differ
diff --git a/src/main/resources/lib/bx05.message-0.5.0-SNAPSHOT.jar b/src/main/resources/lib/bx05.message-0.5.0-SNAPSHOT.jar
new file mode 100644
index 0000000..2aff9ec
--- /dev/null
+++ b/src/main/resources/lib/bx05.message-0.5.0-SNAPSHOT.jar
Binary files differ
diff --git a/src/main/resources/lib/rxtx-2.1.7.jar b/src/main/resources/lib/rxtx-2.1.7.jar
new file mode 100644
index 0000000..84e5f01
--- /dev/null
+++ b/src/main/resources/lib/rxtx-2.1.7.jar
Binary files differ
diff --git a/src/main/resources/lib/simple-xml-2.7.1.jar b/src/main/resources/lib/simple-xml-2.7.1.jar
new file mode 100644
index 0000000..ede93e6
--- /dev/null
+++ b/src/main/resources/lib/simple-xml-2.7.1.jar
Binary files differ
diff --git a/src/main/resources/lib/slf4j-api-1.7.30.jar b/src/main/resources/lib/slf4j-api-1.7.30.jar
new file mode 100644
index 0000000..29ac26f
--- /dev/null
+++ b/src/main/resources/lib/slf4j-api-1.7.30.jar
Binary files differ
diff --git a/src/main/resources/lib/slf4j-simple-1.7.30.jar b/src/main/resources/lib/slf4j-simple-1.7.30.jar
new file mode 100644
index 0000000..6debaa9
--- /dev/null
+++ b/src/main/resources/lib/slf4j-simple-1.7.30.jar
Binary files differ
diff --git a/src/main/resources/lib/stax-1.2.0.jar b/src/main/resources/lib/stax-1.2.0.jar
new file mode 100644
index 0000000..0df112a
--- /dev/null
+++ b/src/main/resources/lib/stax-1.2.0.jar
Binary files differ
diff --git a/src/main/resources/lib/stax-api-1.0.1.jar b/src/main/resources/lib/stax-api-1.0.1.jar
new file mode 100644
index 0000000..d9a1665
--- /dev/null
+++ b/src/main/resources/lib/stax-api-1.0.1.jar
Binary files differ
diff --git a/src/main/resources/lib/uia-comm-0.5.1.jar b/src/main/resources/lib/uia-comm-0.5.1.jar
new file mode 100644
index 0000000..6cb02f3
--- /dev/null
+++ b/src/main/resources/lib/uia-comm-0.5.1.jar
Binary files differ
diff --git a/src/main/resources/lib/uia-message-0.6.0.jar b/src/main/resources/lib/uia-message-0.6.0.jar
new file mode 100644
index 0000000..2ccc43e
--- /dev/null
+++ b/src/main/resources/lib/uia-message-0.6.0.jar
Binary files differ
diff --git a/src/main/resources/lib/uia-utils-0.2.0.jar b/src/main/resources/lib/uia-utils-0.2.0.jar
new file mode 100644
index 0000000..e0b2164
--- /dev/null
+++ b/src/main/resources/lib/uia-utils-0.2.0.jar
Binary files differ
diff --git a/src/main/resources/lib/xpp3-1.1.3.3.jar b/src/main/resources/lib/xpp3-1.1.3.3.jar
new file mode 100644
index 0000000..1396bd5
--- /dev/null
+++ b/src/main/resources/lib/xpp3-1.1.3.3.jar
Binary files differ
--
Gitblit v1.9.1