|
@@ -69,14 +69,14 @@ public class AllTopicConsumerThread implements Runnable {
|
|
|
//int[] light = {1,2,3,1,2,3,1,2,3,1,2,3}; // 신호등정보 [직진,좌,보행]
|
|
|
int[] dirAdd = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; //연등지
|
|
|
|
|
|
- int[] timeFlag = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; //시간정보신뢰성
|
|
|
- int[] walker = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; //보행자
|
|
|
- int[] unprotected = {0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; //비보호 상태
|
|
|
- int[] stts = {3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; //신호등상태
|
|
|
+ int[] timeFlag = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; //시간정보신뢰성
|
|
|
+ int[] walker = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; //보행자
|
|
|
+ int[] unprotected = {0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; //비보호 상태
|
|
|
+ int[] stts = {3, 3, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1}; //신호등상태
|
|
|
|
|
|
- int[] dispTm = {30, 30, 20, 20, 20, 40, 40, 20, 10, 10, 01, 10, 10, 10, 10, 10}; //표출시간
|
|
|
- int[] remainTm = {0, 0, 0, 0, 0, 0, 0, 0, 20, 20, 5, 20, 0, 0, 0, 0}; //잔여시간
|
|
|
- int[] dirCode = {10, 10, 10, 10, 20, 20, 20, 20, 30, 30, 30, 30, 40, 40, 40, 40}; //방향코드
|
|
|
+ int[] dispTm = {30, 30, 20, 20, 20, 40, 40, 20, 10, 10, 01, 10, 10, 10, 10, 10}; //표출시간
|
|
|
+ int[] remainTm = {0, 0, 0, 0, 0, 0, 0, 0, 20, 20, 5, 20, 0, 0, 0, 0}; //잔여시간
|
|
|
+ int[] dirCode = {10, 10, 10, 10, 20, 20, 20, 20, 30, 30, 30, 30, 40, 40, 40, 40}; //방향코드
|
|
|
|
|
|
for (int ii = 0; ii < 16; ii++) {
|
|
|
Map<String, Object> temp = new HashMap<>();
|
|
@@ -103,8 +103,8 @@ public class AllTopicConsumerThread implements Runnable {
|
|
|
}
|
|
|
|
|
|
int counter = value.get(39) & 0xff;
|
|
|
- int sttsCount = value.get(40) & 0x7F; //신호정보개수
|
|
|
- int divFlag = (value.get(40) >> 7) & 0x01; //분활flag
|
|
|
+ int sttsCount = value.get(40) & 0x7F; //신호정보개수
|
|
|
+ int divFlag = (value.get(40) >> 7) & 0x01; //분활flag
|
|
|
|
|
|
int oprTrans = (value.get(37) >> 4) & 0x01;
|
|
|
int oprInd = (value.get(37) >> 3) & 0x01;
|
|
@@ -209,7 +209,7 @@ public class AllTopicConsumerThread implements Runnable {
|
|
|
for (WebSocketSession session : this.sessionSet) {
|
|
|
try {
|
|
|
this.websocketHandler.sendMessage(session, new TextMessage(jsonInString));
|
|
|
- log.info("AllTopicConsumerThread, Send to: {}, {}, {} bytes.", session.getRemoteAddress().getAddress(), record.key(), jsonInString.length());
|
|
|
+ //log.info("AllTopicConsumerThread, Send to: {}, {}, {} bytes.", session.getRemoteAddress().getAddress(), record.key(), jsonInString.length());
|
|
|
}
|
|
|
catch(Exception e) {
|
|
|
log.error("AllTopicConsumerThread, Send Failed: {}, {}, {} bytes.", session, record.key(), jsonInString.length());
|