mirror of
https://github.com/uhi22/pyPLC.git
synced 2024-11-10 01:05:42 +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)):
|
||||
# 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.rxData = []
|
||||
return
|
||||
if (len(self.rxData)<=20):
|
||||
# it was the length of the testsuite notification. We are finished with this message.
|
||||
self.rxData = []
|
||||
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)
|
||||
self.rxData = []
|
||||
strConverterResult = self.exiDecode(exidata, "Dh") # Decode Handshake-response
|
||||
|
|
Loading…
Reference in a new issue