1、对于无固定解的设备,在发冷启动指令前,先检查基站工作是否正常
This commit is contained in:
parent
44c267f238
commit
4ebc66da85
@ -111,9 +111,21 @@ public class D3F0SelfCheckMessageExecutor implements Executor<D3F0SelfCheckMessa
|
||||
}
|
||||
}*/
|
||||
|
||||
boolean isBaseStationFwd(Device device){
|
||||
Device bsDevice = deviceService.findByDeviceId(device.getParentId());
|
||||
if(bsDevice != null){
|
||||
LocalDateTime lastRxTime = bsDevice.getLastRxTime();
|
||||
if(lastRxTime != null &&
|
||||
lastRxTime.isAfter(LocalDateTime.now().minusMinutes(10))){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false; //最近10分钟基站没有转发数据,可能是基站故障
|
||||
}
|
||||
|
||||
private void checkAndSendF9PColdStartCommand(Device device){
|
||||
if((device.getWarningcode()&WarningCfg.TYPE_NO_FIXED_RESULT) !=0){
|
||||
startF9PColdStartTask(device);
|
||||
if(isBaseStationFwd(device)) startF9PColdStartTask(device);
|
||||
device.clearNoResultStat();
|
||||
}
|
||||
}
|
||||
@ -169,11 +181,11 @@ public class D3F0SelfCheckMessageExecutor implements Executor<D3F0SelfCheckMessa
|
||||
|
||||
private void checkAndResetBTGnss(Device device){
|
||||
if(device.getNoFixedAndFloatResult()>0 &&device.getAbnormalD341Num()>10){
|
||||
startBTResetTask(device);
|
||||
if(isBaseStationFwd(device)) startBTResetTask(device);
|
||||
device.clearNoResultStat();
|
||||
}
|
||||
else if((device.getWarningcode()&WarningCfg.TYPE_CONT_INVALID_RESULT) !=0){
|
||||
startBTHotStartTask(device);
|
||||
if(isBaseStationFwd(device)) startBTHotStartTask(device);
|
||||
device.clearNoResultStat();
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user