|  |  |  | 
|---|
|  |  |  | midRs.maxSendTimes = null ;//命令最大发送次数(当收不到应答时,将重发),如果不设置,命令缓存器进行补充设置 | 
|---|
|  |  |  | midRs.isCachForOffLine = false ;//RTU不在线,命令是否缓存,低功耗时为true | 
|---|
|  |  |  |  | 
|---|
|  |  |  | midRs.isFastCom = true ;//速发命令,下发数据时间间隔受小值(配置文件中fastCommandSendInterval)限制 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | if(isLowPower != null && isLowPower.booleanValue()){ | 
|---|
|  |  |  | //低功耗时,尽快发送 | 
|---|
|  |  |  | midRs.isQuickSend = true ; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | bytes = ByteUtil.bytesMerge(bytes, (byte[])para.attachment) ; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | GlCreate.createLen4PUg(bytes);//长度放字节数组中 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | byte[] bsTail = GlCreate.createCrcTail4Ug(bytes) ;//CRC和尾叠加字节数组中 | 
|---|
|  |  |  |  | 
|---|
|  |  |  | return ByteUtil.bytesMerge(bytes, bsTail) ; | 
|---|