Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • The Host should ACK every frame from the Module that is not an ACK frame.
  • After the Host sends a frame to the Module, it should wait for an ACK or Response from the Module before proceeding with sending another frame.
    • If the Host does not receive an ACK or Response from the Module within expected timeout periods (i.e. up to 15 seconds for a ZCL command that goes out over the network), it should retry.

...

Pseudocode Samples

Code Block
languagecpp
titleSerial Ack Sample
linenumberstrue
collapsetrue
while(haveFrameinQueue)
{
 Frame sentFrame = SendNextFrame();
  bool ack = false;
  while(!ack)
  {
	 Frame f = moduleFrameListener.getFrame();
	
 	 if(f.isAckOf(sentFrame))
	 {
	 	ack = true;
	 }
  }
}