mirror of
https://github.com/uhi22/pyPLC.git
synced 2024-11-20 01:13:58 +00:00
more retries for the SDP
This commit is contained in:
parent
3e0878986c
commit
a10877cada
1 changed files with 2 additions and 2 deletions
|
@ -771,7 +771,7 @@ class pyPlcHomeplug():
|
|||
# The AVLN is established, we have two modems in the network.
|
||||
# Next step is to discover the chargers communication controller (SECC) using discovery protocol (SDP).
|
||||
self.pevSequenceDelayCycles=0
|
||||
self.SdpRepetitionCounter = 5 # prepare the number of retries for the SDP
|
||||
self.SdpRepetitionCounter = 50 # prepare the number of retries for the SDP. The more the better.
|
||||
self.enterState(13)
|
||||
return
|
||||
|
||||
|
@ -791,7 +791,7 @@ class pyPlcHomeplug():
|
|||
# Here we send the SdpRequest. Maybe too early, but we will retry if there is no response.
|
||||
self.ipv6.initiateSdpRequest()
|
||||
self.SdpRepetitionCounter-=1
|
||||
self.pevSequenceDelayCycles = 30 # e.g. one second delay until re-try of the SDP
|
||||
self.pevSequenceDelayCycles = 10 # e.g. half-a-second delay until re-try of the SDP
|
||||
self.enterState(13) # stick in the same state
|
||||
return
|
||||
if (self.isTooLong()):
|
||||
|
|
Loading…
Reference in a new issue