Siemens TC63 User Manual Page 257

  • Download
  • Add to my manuals
  • Print
  • Page
    / 501
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 256
TC63 AT Command Set
10.3 AT^SISO
s
TC63_ATC_V00.490 Page 257 of 501 5/24/05
Confidential / Draft - Do not copy
10.3.1 Example: Accepting / Rejecting Socket Connection Request from
Remote Client
Host 1 configured as Socket listener with IP address 10.10.0.187 at port 65534 is receiving a connection request
from the remote client 10.10.0.185 (at port 1024). The example assumes that connection and service profiles
have been created as stated earlier.
Start the Socket service in listener mode, then query the IP address dynamically assigned to the Socket listener:
Indication of incoming Socket connection request:
Host 1 accepts the Socket connection request:
at^siso=4
Host 1 opens the Socket service.
at^siso?
Query the current status of all services. All service
profiles are unused, except for service profile 4
which is running in listener mode, where
<srvState>=3 (listening) and <socketState>=3
(LISTENER). The response also indicates the IP
address dynamically assigned to the listener. The lis-
tener's access data (IP address and TCP port num-
ber) shall be passed on to the client.
^SISO: 0, ""
^SISO: 1, ""
^SISO: 2, ""
^SISO: 3, ""
^SISO: 4, "Socket","3","3","0","0","10.10.0.187:65534","0.0.0.0:0"
^SISO: 6, ""
^SISO: 7, ""
^SISO: 8, ""
^SISO: 9, ""
OK
^SIS: 4, 1, 0
The URC indicates that the listener configured on
service profile 4 is receiving a Socket connection
request (<urcCause>=1) from the remote client.
The last URC parameter <urcInfoId> represents
the ID of the dynamically assigned service profile,
here 0.
at^siso?
Query the current status of services.
^SISO: 0, "Socket","2","4","0","0",
"10.10.0.187:0","10.10.0.185:1024"
Indication on host 1 that the connection request from
the remote client has been dynamically assigned to
service profile 0 which is set to Server mode
(<socketState>=4).
^SISO: 1, ""
^SISO: 2, ""
^SISO: 3, ""
^SISO: 4, "Socket","3","3","0","0", "10.10.0.187:65534","0.0.0.0:0"
^SISO: 6, ""
^SISO: 7, ""
^SISO: 8, ""
^SISO: 9, ""
OK
at^siso=0
Host 1 accepts the connection request, where 0 is
the ID of the dynamically assigned service profile.
OK
^SISW: 0, 1
The URC indicates that data transmission to the
remote client is possible. If the remote client has
already sent some data the additional URC ^SISR:
0,1 is displayed.
at^siso?
Query the current status of services.
^SISO: 0, "Socket","4","4","0","0",
"10.10.0.187:65534","10.10.0.185:1024"
The socket connection between host 1 and remote
client is successfully established.
^SISO: 1, ""
^SISO: 2, ""
^SISO: 3, ""
^SISO: 4, "Socket","3","3","0","0","10.10.0.187:65534","0.0.0.0:0"
Page view 256
1 2 ... 252 253 254 255 256 257 258 259 260 261 262 ... 500 501

Comments to this Manuals

No comments