Chapter 3: AT Commands Reference

Example

(Socket 4 was not opened using +MIPOPEN AT command)

AT+MIPSEND=4,"4444"

 

ERROR

 

AT+MIPSEND=1,"4444"

 

+MIPSEND: 1,1370

//1372- 2 chars 'DD' = 1370

OK

 

AT+MIPSEND=?

 

ERROR

 

AT+MIPSEND?

 

+MIPSEND: 1,1372

//Sockets 1 and 2 were opened using + MIPOPEN AT command

+MIPSEND: 2,1372

//Sockets 1 and 2 were opened using + MIPOPEN AT command

OK

 

+MIPPUSH, Push Data into Protocol Stack

This command causes the G24-L to push the data accumulated in its accumulating buffers into the protocol stack. It is assumed that before using this command, some data should exist due to previous +MIPSEND commands.

 

 

 

 

Command

 

 

 

Type

Syntax

Response/Action

Remarks

 

 

 

 

 

 

 

 

Set

+MIPPUSH =

+MIPPUSH:

Optional parameters are used only for UDP

 

<Socket

<Socket_ID>,<Status>[

connections. If the Destination IP and

 

ID>[,<"Destinatio

,<accumulated_sent_le

Destination Port are not provided by the user,

 

n

ngth>]

a datagram is sent to the last target (or the

 

IP">,<Destination

OK

default target provided by the +MIPOPEN

 

Port>]

Or:

command).

 

 

<accumulated_sent_length> - this parameter

 

 

ERROR

 

 

counts how many bytes were sent to the

 

 

 

remote side by the G24-L TCP/IP stack.

 

 

 

When user open socket,

 

 

 

<accumulated_sent_length> initialized to

 

 

 

zero.

 

 

 

Size of <accumulated_sent_length> is four

 

 

 

octets unsigned digit (0-4294967295).

 

 

 

<Status>:

 

 

 

0 - Success

 

 

 

1 - socket is flowed off

 

 

 

2 - there is no data in socket to send

 

 

 

 

Read

+MIPPUSH?

MIPPUSH:[<socket

 

 

 

ID>]

 

 

 

 

 

Test

+MIPPUSH=?

MIPPUSH=<socket

 

 

 

ID>,<IP>,<Port>

 

 

 

 

 

 

 

 

 

April 15, 2008

G24-L AT Commands Reference Manual

3-285

Page 349
Image 349
PIONEERPOS G24-LC manual +MIPPUSH, Push Data into Protocol Stack, April 15 G24-L AT Commands Reference Manual 285