|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | MidResultToRtu midRs = new MidResultToRtu() ; | 
|---|
|  |  |  | midRs.protocolName = para.protocolName ;//协议名称 | 
|---|
|  |  |  | midRs.protocolVersion = para.protocolVersion ;//协议版本号 | 
|---|
|  |  |  | midRs.rtuResultSendWebUrl = para.rtuResultSendWebUrl ; | 
|---|
|  |  |  | midRs.rtuAddr = para.rtuAddr ;//Rtu地址 | 
|---|
|  |  |  | midRs.commandId = para.commandId ;//命令ID,发起命令的客户端(web端)生成,以匹配命令结果 | 
|---|
|  |  |  | 
|---|
|  |  |  | throw new Exception("设备终端年用水量必须是0~99999999范围内的整数") ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | byte[] bs = new byte[14] ; | 
|---|
|  |  |  | byte[] bs = new byte[13] ; | 
|---|
|  |  |  | int index = 0 ; | 
|---|
|  |  |  | bs[index] = (byte)(Integer.parseInt(cvo.controllerType, 16)); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | bs[index++] = 0 ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | index ++ ; | 
|---|
|  |  |  | GlCreate.createPw(bs, index); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | index += 2 ; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return bytes ; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | } | 
|---|