Xoff And Xon Example - Motorola g20 Developer's Manual

At commands
Hide thumbs Also See for g20:
Table of Contents

Advertisement

+MIPPUSH=1
+MIPPUSH:0
+MIPPUSH=2
+MIPPUSH:0
+MIPCLOSE=1
+MIPCLOSE:1
OK
+MIPCLOSE=2
+MIPCLOSE:2
OK
+MIPCALL=0
OK
+MIPSETS=1,120
+MIPSETS: 0
OK
+MIPSEND=1,"444444"
+MIPSEND:1,1497
+MIPPUSH=1
5.9.3

Xoff and Xon Example

In this example, it is assumed that the buffer size is 1500 and that some kind of error happened on the protocol stack.
+MIPSEND=1,"A344343ABC343438980BC...AB4" //Passing data to g20 socket 1
+MIPSEND:1,1200
+MIPSEND=1,"A344343ABC343438980BC...A23"
+MIPSEND:1,0
+MIPXOFF: 1
98-08901C68-O
//Terminal asks the g20 to flush the buffer in sockets 1 and 2
//Terminal closes sockets 1 and 2
//Terminal hangs up the link
//Asking the g20 to accumulate 120 bytes on socket 1 prior to sending
//Passing 3 bytes of data to the g20 socket 1
//(Note: Size remaining in socket 1 buffer is 1497 bytes)
//At this point, the terminal can decide on flushing the remainder to
the stack
//(Note: Size remaining in socket 1 accumulating buffer is 1200 bytes.)
//(Note: No free space in buffer.)
//The g20 detects that the accumulating buffer on socket 1 has no
free space to accumulate data and data cannot be sent to the
protocol stack
Using the Commands
285

Advertisement

Table of Contents
loading

Table of Contents