10.01.2015 Views

AT Command Reference Guide for EDGE Wireless ... - wless.ru

AT Command Reference Guide for EDGE Wireless ... - wless.ru

AT Command Reference Guide for EDGE Wireless ... - wless.ru

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 10 – Internet Service <strong>Command</strong>s<br />

<br />

Socket state identifier.<br />

1 Socket not assigned; i.e., no TCP/UDP connection active.<br />

2 Socket assigned as CLIENT.<br />

3 Socket assigned as LISTENER.<br />

4 Socket assigned as SERVER.<br />

<br />

Number of bytes received via <strong>AT</strong>^SISR since last successful <strong>AT</strong>^SISO write command.<br />

<br />

Number of bytes sent via <strong>AT</strong>^SISW since last successful <strong>AT</strong>^SISO write command.<br />

<br />

Local IP address in dotted-four-byte <strong>for</strong>mat and TCP port, separated by colon; e.g., “192.60.10.10:80”.<br />

<br />

Remote IP address in dotted-four-byte <strong>for</strong>mat or evaluated DNS name and TCP port, separated by colon; e.g.,<br />

“192.60.10.10:80”.<br />

<br />

URC cause identifier.<br />

0 An error has occurred after opening or while using an Internet service.<br />

Error number is presented via , optionally additional in<strong>for</strong>mation may be<br />

supplied via .<br />

1 Indicates that an open socket listener service is receiving a connection request from a<br />

remote client.<br />

The incoming socket connection is dynamically assigned to the next free Internet<br />

service profile. In this case, the parameter inside the “^SIS”<br />

URC equals the of the dynamically assigned service profile.<br />

This ID shall be used to accept the connection request with <strong>AT</strong>^SISO or to<br />

reject it with <strong>AT</strong>^SISC.<br />

The connection status may be requested by using the <strong>AT</strong>^SISO read command.<br />

Among other details, the response indicates the IP address of the<br />

remote client (parameter ). This may be helpful to decide whether<br />

to accept or reject the request.<br />

2 Incoming Socket service client connection has failed.<br />

The client request was rejected automatically because no free Internet service profile<br />

was available.<br />

3 HTTP only: Indicates that the message delivered by the "^SIS" URC is provided <strong>for</strong><br />

in<strong>for</strong>mation only, it is not an error. For details refer to Info URCs in Section 10.7.3, URC<br />

In<strong>for</strong>mation Elements Related to HTTP Service.<br />

Example: ^SIS: 2, 3, 2200, "HTTP Redirect to:192.168.1.3:800//products/info/"<br />

<br />

In<strong>for</strong>mation identifier related to .<br />

See Section 10.7, In<strong>for</strong>mation Elements Related to Internet Service URCs <strong>for</strong> further detail. As stated above, if a<br />

Socket connection request from a remote client is received the equals the of the<br />

dynamically assigned free service profile.<br />

<br />

In<strong>for</strong>mation text related to . See Section 10.7, Info. Elements Related to Internet Service URCs.<br />

10.3.1 Example: Accepting/Rejecting Socket Connection Request from Remote<br />

Client<br />

Host 1 configured as Socket listener with IP address 10.10.0.187 at port 65534 is receiving a connection request from<br />

the remote client 10.10.0.185 (at port 1024). The example assumes that connection and service profiles have been<br />

created as stated earlier.<br />

Start the Socket service in listener mode, then query the IP address dynamically assigned to the Socket listener:<br />

at^siso=4<br />

at^siso<br />

^SISO: 0, “”<br />

^SISO: 1, “”<br />

^SISO: 2, “”<br />

^SISO: 3, “”<br />

^SISO: 4, “Socket”,”3”,”3”,”0”,”0”,”10.10.0.187:65534”,”0.0.0.0:0”<br />

^SISO: 6, “”<br />

^SISO: 7, “”<br />

^SISO: 8, “”^SISO: 9, “”<br />

OK<br />

Host 1 opens the Socket service.<br />

Query the current status of all services. All service profiles are unused,<br />

except <strong>for</strong> service profile 4 which is <strong>ru</strong>nning in listener mode, where<br />

=3 (listening) and =3 (LISTENER). The<br />

response also indicates the IP address dynamically assigned to the<br />

listener. The listener’s access data (IP address and TCP port number)<br />

shall be passed on to the client.<br />

Multi-Tech Systems, Inc. <strong>AT</strong> <strong>Command</strong>s <strong>for</strong> <strong>EDGE</strong> Modems (S000371B) 135

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!