fix: 尝试修复断联问题
This commit is contained in:
parent
11ef555eea
commit
9e110d1218
@ -122,21 +122,14 @@ public class D331RtcmMessageExecutor implements Executor<D331RtcmMessage, Void>
|
|||||||
deviceBs.setGeoidSeparation(gga.getGeoidSeparation());
|
deviceBs.setGeoidSeparation(gga.getGeoidSeparation());
|
||||||
}
|
}
|
||||||
|
|
||||||
// 添加NTRIP处理 + rtkCluster 推送
|
// 添加NTRIP处理
|
||||||
if(deviceBs.getForwardToNtrip()) {
|
if(deviceBs.getForwardToNtrip()) {
|
||||||
byte[] srcdata = message.getSrcData();
|
byte[] srcdata = message.getSrcData();
|
||||||
String hex = ByteUtil.bytesToHexString(srcdata);
|
String rtcm = ByteUtil.bytesToHexString(srcdata);
|
||||||
// 1) NTRIP:发送提取后的 RTCM 帧
|
sendToNtrip(id, rtcm);
|
||||||
sendToNtrip(id, hex);
|
|
||||||
|
|
||||||
// 2) rtkCluster:优先发送干净的 RTCM 帧(去除任何封装),退化时发送原始数据
|
|
||||||
try {
|
try {
|
||||||
String rtcmsHex = RtcmGgaUtil.getRtcms(hex).toString();
|
rtkClusterService.sendRtcm(id, rtcm);
|
||||||
if (rtcmsHex != null && !rtcmsHex.isEmpty()) {
|
|
||||||
rtkClusterService.sendRtcmBytes(id, ByteUtil.hexStringTobyte(rtcmsHex));
|
|
||||||
} else {
|
|
||||||
rtkClusterService.sendRtcmBytes(id, srcdata);
|
|
||||||
}
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.debug("send to rtkCluster failed for {}: {}", id, e.getMessage());
|
logger.debug("send to rtkCluster failed for {}: {}", id, e.getMessage());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user