| | |
| | | MidResultToRtu midRs = new MidResultToRtu() ; |
| | | midRs.rtuResultSendWebUrl = para.rtuResultSendWebUrl ;//rtu返回命令结果 发向目的地web URL |
| | | midRs.protocolName = para.protocolName ;//协议名称 |
| | | midRs.rtuAddr = para.rtuAddr ;//Rtu地址(电信平台设备IMEI) |
| | | midRs.rtuAddr = para.rtuAddr ;//Rtu地址 |
| | | midRs.commandId = para.commandId ;//命令ID,发起命令的客户端(web端)生成,以匹配命令结果 |
| | | midRs.downCode = para.commandCode ;//下行命令功能码; |
| | | midRs.downBuffer = bs ;//下行命令数据 |
| | |
| | | }else{ |
| | | index = 0 ; |
| | | byte[] bs = new byte[10] ; |
| | | Double priceDb = ((Double)para.param) * 100 ; |
| | | Integer priceInt = priceDb.intValue() ; |
| | | ByteUtilUnsigned.short2Bytes_LE(bs, priceInt.shortValue(), index); |
| | | Integer minute = (Integer)para.param ; |
| | | ByteUtilUnsigned.short2Bytes_LE(bs, minute.shortValue(), index); |
| | | index += 2 ; |
| | | GlCreate.createPw(bs, index); |
| | | index += 2 ; |