Ejemplo n.º 1
0
 public void Reset()
 {
     _buf.Clear();
     _timersManager.StopAllTimers();
     _message       = "";
     _completed     = false;
     _state         = States.WaitEstablishmentPhase;
     _previousFN    = 0;
     _currentRecord = "";
 }
Ejemplo n.º 2
0
 public void ResetAndUpload(string message)
 {
     _timersManager.StopAllTimers();
     _frameCounter          = -1;
     _exceptionOccured      = null;
     _errorCounterNAK       = 0;
     _errorCounterENQ       = 0;
     _errorCounterDefective = 0;
     _currentFrame          = null;
     _uploadCompleted       = false;
     _state   = States.EstablishmentPhaseBegin;
     _message = message;
     _frames  = FrameUtils.SplitToFrames(message, _lowLevelSettings);
 }