表阀一体机协议84 85功能码解析类增加测试用main方法
| | |
| | | |
| | | |
| | | } |
| | | |
| | | public static void main(String[] args) throws Exception { |
| | | String hex = "69426981371425010201130084020AF00200000000620902003004050077289364503912943449101006255833070000000000000000000000000000000000014000009000C616"; |
| | | byte[] bs = ByteUtil.hex2Bytes(hex) ; |
| | | Cd_84_Up p = new Cd_84_Up() ; |
| | | Data d = new Data() ; |
| | | DataV202404 subd = new DataV202404() ; |
| | | d.subData = subd ; |
| | | p.doParse(bs, bs.length, "84", d); |
| | | System.out.println(d.toString()); |
| | | } |
| | | } |
| | |
| | | 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()); |
| | | } |
| | | |
| | | } |