Compare commits
2 Commits
acb0515252
...
16059ee5d4
| Author | SHA1 | Date | |
|---|---|---|---|
| 16059ee5d4 | |||
| dd24d14d0c |
@ -50,6 +50,9 @@ public class D331RtcmMessageExecutor implements Executor<D331RtcmMessage, Void>
|
|||||||
@Autowired
|
@Autowired
|
||||||
private GNSSDataCalcService gnssCalcService;
|
private GNSSDataCalcService gnssCalcService;
|
||||||
|
|
||||||
|
// 指定仅对该基站启用1005插入功能(请将值替换为目标基站ID)
|
||||||
|
private static final String TARGET_BASE_STATION_ID_FOR_1005 = "6541918";
|
||||||
|
|
||||||
// 添加一个成员变量用于追踪每个测站最后一次转发D300数据的时间
|
// 添加一个成员变量用于追踪每个测站最后一次转发D300数据的时间
|
||||||
private final Map<String, Long> lastD300ForwardTimeMap = new ConcurrentHashMap<>();
|
private final Map<String, Long> lastD300ForwardTimeMap = new ConcurrentHashMap<>();
|
||||||
private static final long D300_FORWARD_INTERVAL = 5000; // 5秒,单位毫秒
|
private static final long D300_FORWARD_INTERVAL = 5000; // 5秒,单位毫秒
|
||||||
@ -183,14 +186,13 @@ public class D331RtcmMessageExecutor implements Executor<D331RtcmMessage, Void>
|
|||||||
ByteBuf buf = Unpooled.buffer();
|
ByteBuf buf = Unpooled.buffer();
|
||||||
buf.writeBytes(forwardBytes);
|
buf.writeBytes(forwardBytes);
|
||||||
|
|
||||||
//推送策略:F9P基站(505)兼容博通(510)推送
|
//推送策略:F9P基站(505)兼容博通(510)推送 添加指定基站ID的推送
|
||||||
if ((deviceBs.getModel()==null || deviceBs.getModel() == GnssDevice.MODEL_G505) &&
|
if ((deviceBs.getModel()==null || deviceBs.getModel() == GnssDevice.MODEL_G505) &&
|
||||||
(device.getModel()!=null && device.getModel()==GnssDevice.MODEL_G510)){
|
(device.getModel()!=null && device.getModel()==GnssDevice.MODEL_G510)||
|
||||||
|
TARGET_BASE_STATION_ID_FOR_1005.equals(deviceBs.getDeviceId())){
|
||||||
buf = insert1005(deviceBs, deviceId, buf);
|
buf = insert1005(deviceBs, deviceId, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
deviceChannel.writeAndFlush(buf);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private ByteBuf insert1005(Device deviceBs, String deviceId, ByteBuf buf){
|
private ByteBuf insert1005(Device deviceBs, String deviceId, ByteBuf buf){
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user