| | |
| | | import com.sandu.ximon.admin.manager.iot.frame.inner.BaseResponseInnerFrame; |
| | | import com.sandu.ximon.admin.manager.iot.rrpc.enums.C3ChargingEnum; |
| | | import com.sandu.ximon.admin.manager.iot.rrpc.util.CRC32Utils; |
| | | import com.sandu.ximon.admin.manager.iot.rrpc.util.SupplementUtils; |
| | | import lombok.Data; |
| | | import lombok.ToString; |
| | | |
| | |
| | | private String constant; |
| | | //查询地址(暂时不用到) |
| | | private String address; |
| | | //故障码 |
| | | private String faultCode; |
| | | |
| | | @Override |
| | | public A5C3QueryReportInnerFrame transformFrame(String hex) { |
| | |
| | | if (hex.length() != 4) { |
| | | throw new BusinessException("数据错误,请重新请求!"); |
| | | } |
| | | setAddress(hex); |
| | | setAddress(SupplementUtils.suppleZero(hex, 8)); |
| | | } |
| | | |
| | | /** |
| | | * 查询地址(暂时不用到) |
| | | */ |
| | | if (functionCode.equals(C3ChargingEnum.QueryFaultCode.getCode())) { |
| | | if (hex.length() != 4) { |
| | | throw new BusinessException("数据错误,请重新请求!"); |
| | | } |
| | | setFaultCode(hex); |
| | | } |
| | | } |
| | | |