HUAWEI MU509-b HSDPA LGA Module
SSL Application Guide
Work with SSL
Issue 01 (2014-10-10)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
18
4
Work with SSL
4.1 Open a Secure Socket
As per AT command requirement, we provides an AT command for opening a normal
socket or a secure socket. In case of normal socket creation, this AT command will
simply use the Real Time Executive (REX) socket interface to create and open the
common TCP socket. For secure socket creation, this AT command will use both
socket interface and CyaSSL library for creation of socket.
CyaSSL Socket Open uses the AT Command AT^SSLO:
AT^SSLO=<SSL_id>,<remote_IP>,<remote_port>,[<mode>,<TimeOut>]
Where:
<SSL_id>: SSL socket ID.
1: Secure socket connection
0: Normal socket connection
<remote_IP>: string type; IP address, IP or hostname of the server.
<remote_port>: port, the value ranges from 1 to 65535; remote port of the server
(usually 443).
<mode>: async mode (optional, it will take the value as 0 by default).
0: Sync mode
1: Async mode
−
For Sync mode, data will be received in synchronous mode. If run AT^SSLRX
command, then it will receive the data from server.
−
For Async mode, data will be received in asynchronous mode (i.e.) whenever
data is available in the server, it will be received automatically.
<TimeOut>: timeout value in seconds (60
–180 seconds). It is optional parameter.
It will take the value as 90 seconds by default.
Example
CyaSSL secure socket open:
Sync mode:
AT^SSLO=1,"192.166.63.155",443,0,60
OK