shjung 1 year ago
parent
commit
1b0d144b22
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/main/java/com/tsi/comm/server/protocol/TsiCpuPacket.java

+ 7 - 7
src/main/java/com/tsi/comm/server/protocol/TsiCpuPacket.java

@@ -34,9 +34,9 @@ public class TsiCpuPacket extends AbstractTsiPacket {
 
     // 헤더(10), 상태헤더(8), 상태정보(5)*상태정보건수, 체크섬(2)
     // CVIB Protocol Format(CPU-->CENTER)
-    //TYPE    STX1    STX2    LEN                 OPCODE  DataVer NodeID  DATA    CHKSUM
-    //Size    Byte    Byte    2Byte               Byte    1Byte   4Byte   NByte   2Byte
-    //Value   0x7E    0x7E    Size(LEN…CHKSUM)    0x13    0x01            …       CRC16
+    //TYPE    STX1    STX2    LEN                OPCODE  DataVer NodeID  DATA    CHKSUM
+    //Size    Byte    Byte    2Byte              Byte    1Byte   4Byte   NByte   2Byte
+    //Value   0x7E    0x7E    Size(LEN…CHKSUM)   0x13    0x01            …       CRC16
     //- LEN   : LEN∼CHKSUM data length
     //        - OPCODE: 0x13, 신호상태정보전송
     //        - NodeID: Node ID
@@ -50,7 +50,7 @@ public class TsiCpuPacket extends AbstractTsiPacket {
     uint8_t         length[2];              // length, length byte ~ check sum
     uint8_t         opcode;                 // op code, 0x13
     uint8_t         dataVer;                // Data Version
-    uint8_t         nodeid[4];              // sigal node id
+    uint8_t         nodeid[4];              // signal node id
     // 8 byte
     tsc_cvim_hdr_t  hdr;                    // 8 byte, cvim signal status header
     // 5 byte * count
@@ -92,10 +92,10 @@ public class TsiCpuPacket extends AbstractTsiPacket {
     public static final int INDEX_STATUS_DIR_ADD = 0;       // 상태정보내 방향 추가 정보 인덱스
     public static final int INDEX_STATUS_DIRECTION = 4;     // 상태정보내 방향코드
 
-    public static final int SIZE_NODE_DUMMY   = 1+1+2+1+1+2;    // stx1, stx1, lenght(2), opcode, version, checksum(2)
+    public static final int SIZE_NODE_DUMMY   = 1+1+2+1+1+2;    // stx1, stx1, length(2), opcode, version, checksum(2)
     public static final int SIZE_NODE_HEAD = SIZE_NODE_ID + SIZE_STATUS_HDR;
-    public static final int POS_NODE_HEAD_NODEID = 0;    // node(4),
-    public static final int POS_NODE_HEAD_COUNT = 7;    // node(4),
+    public static final int POS_NODE_HEAD_NODEID = 0;       // node(4),
+    public static final int POS_NODE_HEAD_COUNT = 7;        // node(4),
 
     public static final int SIZE_IPC_SIZE = 27;
     public static final int SIZE_TIMESPEC = 16;