diff --git a/ats/verify/simulation/simulation_manage.go b/ats/verify/simulation/simulation_manage.go index 43c9941..53048c2 100644 --- a/ats/verify/simulation/simulation_manage.go +++ b/ats/verify/simulation/simulation_manage.go @@ -2,6 +2,7 @@ package simulation import ( "encoding/binary" + "encoding/hex" "math" "fmt" @@ -35,9 +36,11 @@ func init() { panic(dto.ErrorDto{Code: dto.ArgumentParseError, Message: err.Error()}) } trainInfo := decoderVobcTrainState(info) - zap.S().Info("接收到vobc发送的列车消息", trainInfo) + zap.S().Info("接收到vobc发送的列车消息", trainInfo, hex.EncodeToString(info)) + d := append(info, uint8(trainId)) // 发送给动力学 - dynamics.SendDynamicsTrainMsg(append(info, uint8(trainId))) + dynamics.SendDynamicsTrainMsg(d) + zap.S().Info("发送后:", hex.EncodeToString(d)) // 存放至列车中 train.VobcState = trainInfo return true