| | |
| | | |
| | | // 目标地址 4 |
| | | private String destinationAddress; |
| | | private String mcuUdid; |
| | | |
| | | @Override |
| | | public A5C3CommonReportInnerFrame transformFrame(String hex) { |
| | | //FEA582000CF04100040000048EE4FC6C507D9BE44D |
| | | // 长度不一致时,返回null |
| | | if (StrUtil.isBlank(hex)) { |
| | | return null; |
| | |
| | | |
| | | setDestinationAddress(hex.substring(8, 16)); |
| | | |
| | | /** |
| | | * 设置mcu_udid |
| | | */ |
| | | if(getFunctionCode().equals("40")){ |
| | | setMcuUdid(hex.substring(16, hex.length() - 8)); |
| | | } |
| | | |
| | | setCrc32(hex.substring(hex.length() - 8)); |
| | | // 校验CRC32 |
| | | String frame = hex.substring(2, hex.length() - 8); |