mirror of
https://github.com/uhi22/pyPLC.git
synced 2024-11-20 01:13:58 +00:00
fix: separate two-in-one-messages
This commit is contained in:
parent
fe0610a472
commit
940da180e6
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue