fix: separate two-in-one-messages

This commit is contained in:
uhi22 2023-05-14 01:07:54 +02:00
parent fe0610a472
commit 940da180e6

View file

@ -236,8 +236,13 @@ class fsmPev():
if ((self.rxData[0]!=0x01) or (self.rxData[1]!=0xFE)): if ((self.rxData[0]!=0x01) or (self.rxData[1]!=0xFE)):
# it is no EXI data. Print it to log, it could be a TESTSUITE notification. # it is no EXI data. Print it to log, it could be a TESTSUITE notification.
self.addToTrace("TESTSUITE notification. Seems we are running a test case. TTTTTTTTTTTTTTTTTTTTTTT") self.addToTrace("TESTSUITE notification. Seems we are running a test case. TTTTTTTTTTTTTTTTTTTTTTT")
if (len(self.rxData)<=20):
# it was the length of the testsuite notification. We are finished with this message.
self.rxData = [] self.rxData = []
return return
else:
# There was more data than the 20 byte testsuite notification. Most likely the EXI comes in the same message.
self.rxData = self.rxData[20:]
exidata = removeV2GTPHeader(self.rxData) exidata = removeV2GTPHeader(self.rxData)
self.rxData = [] self.rxData = []
strConverterResult = self.exiDecode(exidata, "Dh") # Decode Handshake-response strConverterResult = self.exiDecode(exidata, "Dh") # Decode Handshake-response