Notes, Examples – Synaccess Networks NP-0801DTM User Manual
Page 240

CUSTOM AT COMMANDS
HSPA+ AT Commands Reference Guide
240
Notes
You can use the command to change current <enc>/<dec> settings for a socket already opened in command
mode or in online mode after suspending it. You must set AT#SKIPESC=1.
To use #BASE64 in command mode, if data to send exceeds maximum value for #SSENDEXT command, you must
divide the data into multiple parts.
These parts have to be a multiple of 57 bytes, except for the last one, to distinguish EOF condition.
(Base64 encoding rules)
For the same reason if #SRECV command is used by the application to receive data, a multiple of 78 bytes has
to be considered.
To use #SRECV to receive data with <dec> enabled, it is necessary to consider that:
reading <maxByte> bytes from socket, user gets less due to decoding that is performed.
Values are automatically saved in non‐volatile memory.
Read command returns the current <enc>/<dec> settings for all the six sockets, in the format:
#BASE64:<connId1><enc1>,<dec1>,0,0<CR><LF>
. . .
#BASE64:<connId6>,<enc6>,<dec6>,0,0<CR><LF>
Examples
AT#SKIPESC=1
OK
AT#SD=<connId>,<txProt>,<rPort>,<IPaddr>
CONNECT
//Data sent without modifications. Default.
………
+++ (suspension)
OK
at#base64=<connId>,1,0
OK
AT#SO=<connId>
CONNECT
//
Data received from serial port is base64 encoded before sent on the socket.
………………
+++ (suspension)