Tcp/Ip; Tcp Data Transfer Example; Multi-Point Data Transfer 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

TCP Data Transfer Example

AT+MIPCALL=1,"orange","test","test"
OK
+MIPCALL: 172.17.242.86
AT+MIPOPEN=1,1222,"123.245.213.012",1234,0 //Opening socket 1 using TCP protocol, from port 1222,
targeting 123.245.213.012 port 1234
OK
+MIPOPEN: 1,1
AT+MIPOPEN?
OK)
+MIPOPEN: 2 3 4
+MIPSETS=1,340
sending
+MIPSETS: 0
OK
AT+MIPSETS?
+MIPSETS: 1 340
OK
AT+MIPSEND=1,"444444"
+MIPSEND: 1,1497
OK
Note:
AT+MIPSEND?
+MIPSEND: 1 1497
OK
+MIPPUSH=1
+MIPPUSH: 0
+MIPCLOSE=1
+MIPCLOSE: 1
OK
+MIPCALL=0
OK

Multi-point Data Transfer Example

AT+MIPCALL=1,"orange","test","test"
OK
+MIPCALL: 172.17.242.86
AT+MIPOPEN=1,1001,"172.17.238.44",1001,0
OK
+MIPOPEN: 1,1
AT+MIPOPEN=2,1111,"172.17.238.44",1111,0
OK
+MIPOPEN: 2,1
April 15, 2008
//Terminal checking the status of socket to be opened (socket 1 opened
//Asking the G24-L to accumulate 340 bytes on socket 1 prior to
//Sent coded "DDD" string
//Free storage in the accumulating buffer
This step can be repeated several times until the buffer is full or until the amount of data
reaches 340 bytes and data pushed into the stack.
//Checking the size remaining (optional)
//Terminal asks G24-L to flush the buffer in socket 1
//Terminal closes the socket
//Terminal hangs up the link
G24-L AT Commands Reference Manual
Chapter 4: Using the Commands
4-29

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

G24-lc

Table of Contents