Xoff And Xon Example - Motorola AT Commands G24-L Developer's Manual

At commands reference manual
Hide thumbs Also See for AT Commands G24-L:
Table of Contents

Advertisement

TCP/IP
+MIPSETS=1,200
sending
+MIPSETS: 0
OK
+MIPSETS=2,400
sending
+MIPSETS: 0
OK
+MIPSEND=1,"444444"
+MIPSEND:1,1497
OK
+MIPSEND=2,"DD"
+MIPSEND:2,1499
OK
+MIPPUSH=1
+MIPPUSH:0
+MIPPUSH=2
+MIPPUSH:0
+MIPCLOSE=1
+MIPCLOSE:1
OK
+MIPCLOSE=2
+MIPCLOSE:2
OK
+MIPCALL=0
OK
+MIPSETS=1,120
sending
+MIPSETS: 0
OK
+MIPSEND=1,"444444"
Note:
+MIPSEND:1,1497
+MIPPUSH=1
the stack

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 G24-L socket 1
+MIPSEND:1,1200
+MIPSEND=1,"A344343ABC343438980BC...A23"
+MIPSEND:1,0
+MIPXOFF: 1
free space to accumulate data and data cannot be sent to the protocol stack.
From this point on, the terminal is not allowed to send data until it receives the +MIPXON
command.
+MIPSEND=1,A344343ABC343438980BC...AB4//Terminal disregards the Xoff request of G24-L and keeps
sending //(Note: The terminal does not stop.)
ERROR 3
4-30
//Asking the G24-L to accumulate 200 bytes on socket 1 prior to
//Asking the G24-L to accumulate 400 bytes on socket 2 prior to
//Passing data to the G24-L socket 2
//Terminal asks the G24-L to flush the buffer in sockets 1 and 2
//Terminal closes sockets 1 and 2
//Terminal hangs up the link
//Asking the G24-L to accumulate 120 bytes on socket 1 prior to
//Passing 3 bytes of data to the G24-L socket 1
Size remaining in socket 1 buffer is 1497 bytes.
//At this point, the terminal can decide on flushing the remainder to
//(Note: Size remaining in socket 1 accumulating buffer is 1200 bytes.)
//(Note: No free space in buffer.)
//The G24-L detects that the accumulating buffer on socket 1 has no
G24-L AT Commands Reference Manual
April 15, 2008

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

G24-lc

Table of Contents