| | |
| | | String controllerType = ByteUtil.bytes2Hex(bs, false, index, 1) ; |
| | | |
| | | index++ ; |
| | | Integer projectNo = 0 + bs[index]; |
| | | Integer projectNo = (int)bs[index]; |
| | | |
| | | index++ ; |
| | | byte hasRecord = bs[index]; |
| | |
| | | List<DataCd55Vo> list = new ArrayList<>() ; |
| | | DataCd55Vo vo = this.doParseData(bs, index, bsLen, controllerType, projectNo) ; |
| | | while(vo != null){ |
| | | index += 39 ; |
| | | index += 35 ; |
| | | list.add(vo) ; |
| | | vo = this.doParseData(bs, index, bsLen, controllerType, projectNo) ; |
| | | } |
| | |
| | | } |
| | | |
| | | index += 1 ; |
| | | String ss = ByteUtil.BCD2String_BE(bs, index, index) ; |
| | | index++ ; |
| | | String mm = ByteUtil.BCD2String_BE(bs, index, index) ; |
| | | index++ ; |
| | | String HH = ByteUtil.BCD2String_BE(bs, index, index) ; |
| | | index++ ; |
| | | String dd = ByteUtil.BCD2String_BE(bs, index, index) ; |
| | | index++ ; |
| | | String MM = ByteUtil.BCD2String_BE(bs, index, index) ; |
| | | index++ ; |
| | | String yy = ByteUtil.BCD2String_BE(bs, index, index) ; |
| | | cdData.dt = "20" + yy + "-" + MM + "-" + dd + " " + HH + ":" + mm + ":" + ss ; |
| | | cdData.dt = GlParse.parseRtuDt(bs, index) ; |
| | | |
| | | return cdData ; |
| | | }else{ |