| | |
| | | @AnnotationDriver(name= ProtocolConstantV206V1_0_0.protocolName) |
| | | public class DriverV1_0_1 extends Driver { |
| | | |
| | | private static String scanRootPackage = "" ; |
| | | private static String scanRootPackage = "com.dy.common.mw.protocol.p206V1_0_0." ; |
| | | |
| | | //在Driver中是单例,随Driver的单例对象在单线程中运行 |
| | | private ParseParamsForUpV1_0_1 upCpParams ; |
| | |
| | | public MidResult[] createCommand(Boolean isLowPower, Command command, Object... params) { |
| | | String rtuAddr = command.getRtuAddr() ; |
| | | if(rtuAddr == null){ |
| | | return new MidResult[]{(new MidResultError(ProtocolConstantV206V1_0_0.protocolName, null, "严重错误,命令中IMEI号为空,不能构建任何命令!", null))} ; |
| | | return new MidResult[]{(new MidResultError(ProtocolConstantV206V1_0_0.protocolName, null, "严重错误,命令中Rtu地址为空,不能构建任何命令!", null))} ; |
| | | } |
| | | try { |
| | | String commandCode = command.getCode() ; |