|  |  | 
 |  |  |     @Override | 
 |  |  |     public MidResult[] parse(Boolean isLowPower, CodeParseParams params, CodeParseCallback callback)throws Exception { | 
 |  |  |         ParseParamsForUpV202404 para = (ParseParamsForUpV202404)params ; | 
 |  |  |         int bsLen = new CommonV202404().parseDataLen(para.upBuffer) ; | 
 |  |  |         int bsLen = new CommonV202404().parseDataLen4P202404(para.upBuffer) ; | 
 |  |  |         if(bsLen > 0){ | 
 |  |  |             this.doParse(para.upBuffer, | 
 |  |  |                     bsLen, | 
 |  |  | 
 |  |  |             //低功耗时,尽快发送 | 
 |  |  |             confirmCommand.isQuickSend = true ; | 
 |  |  |         } | 
 |  |  |         callback.callback(midRs.reportOrResponse_trueOrFalse); | 
 |  |  |         callback.callback(midRs.reportOrResponse_trueOrFalse, para.data.subData==null?null:((DataV202404)(para.data.subData)).subData); | 
 |  |  |         if(para.data != null && ((DataV202404)para.data.getSubData()).subData != null){ | 
 |  |  |             callback.notify(new ValveStateInfo(false)); | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         return new MidResult[]{midRs, confirmCommand} ; | 
 |  |  |         return new MidResult[]{confirmCommand, midRs} ; | 
 |  |  |     } | 
 |  |  |     /** | 
 |  |  |      * 执行分析 | 
 |  |  | 
 |  |  |      * @throws Exception 异常 | 
 |  |  |      */ | 
 |  |  |     protected void doParse(byte[] bs, int bsLen, String dataCode, Data data) throws Exception { | 
 |  |  |         DataV202404 dV1 = (DataV202404)data.getSubData() ; | 
 |  |  |         DataV202404 dV202404 = (DataV202404)data.getSubData() ; | 
 |  |  |         DataCd85Vo cdData = new DataCd85Vo(CodeV202404.getCodeName(dataCode)) ; | 
 |  |  |         dV1.subData = cdData ; | 
 |  |  |         dV202404.subData = cdData ; | 
 |  |  |  | 
 |  |  |         GlParse.parseCd85(bs, cdData) ; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public static void main(String[] args) throws Exception { | 
 |  |  |         String hex = "695569813714250102011300850200090000000062090200300405007728936450391294344910100625485510100625683907000000000000000000001000000000000000000000100600000000000000000140000090004916"; | 
 |  |  |         byte[] bs = ByteUtil.hex2Bytes(hex) ; | 
 |  |  |         Cd_85_Up p = new Cd_85_Up() ; | 
 |  |  |         Data d = new Data() ; | 
 |  |  |         DataV202404 subd = new DataV202404() ; | 
 |  |  |         d.subData = subd ; | 
 |  |  |         p.doParse(bs, bs.length, "85", d); | 
 |  |  |         System.out.println(d.toString()); | 
 |  |  |     } | 
 |  |  |  | 
 |  |  | } |