GPRS

 

 

 

 

Command Type

Syntax

Response/Action

Remarks

 

 

 

 

 

 

 

 

Read

AT+MIPOPEN?

+MIPOPEN:[<SocketID>]

The Read command

 

 

for each socket that can be opened

returns the numbers of

 

 

or:

the sockets that can be

 

 

opened.

 

 

+MIPOPEN 0

 

 

 

 

 

if there are no free sockets.

 

 

 

 

 

Test

AT+MIPOPEN=?

+MIPOPEN: (list of supported

 

 

 

<socket ID>s),(list of supported

 

 

 

<source port>s),(list of

 

 

 

supported<"Destination IP">s),

 

 

 

(list of <destination port>s),(list of

 

 

 

supported <protocol>s)

 

 

 

 

 

 

 

 

 

Example

+MIPOPEN: 1 2 3 4

//All sockets closed

+MIPOPEN: 1 3 4

//Socket 2 opened

The following table shows the +MIPOPEN parameters.

 

 

Table 3-196: +MIPOPEN Parameters

 

 

 

<Parameter>

 

Description

 

 

 

 

Socket ID

A unique number that identifies a connection (provided by the terminal application).

 

0

Invalid socket number

 

1,2,3,4 Valid socket number

 

 

Source Port

Port of source site.

 

Port range: 1-65535 (decimal digits)

 

 

Destination

IP: IP of the destination site in the format "AAA.BBB.CCC.DDD". The range of each

Address

octant is 0-255. The value can be written in 1, 2, or 3 digits.

 

Host name: Host-name of destination site. The host-name do not validate, except the

 

maximum length (255 characters), the host-name convention should meet the rules as

 

describe in RFC-1035 section: 2.3. Conventions.

 

 

Destination

Port of destination site.

Port

Port range: 1-65535 (decimal digits).

 

 

Protocol

Type of protocol stack.

 

0

TCP

 

1

UDP

 

 

State

State of socket or error indication.

 

0

Inactive

 

1

Active

 

 

 

 

 

 

Note: Motorola does not recommend using port numbers below 1024. These numbers are defined to be reserved for operating systems.

3-278

G24-L AT Commands Reference Manual

April 15, 2008

Page 342
Image 342
PIONEERPOS G24-LC manual 196 +MIPOPEN Parameters