![Gemalto Cinterion ENS22-E At Command Set Download Page 165](http://html.mh-extra.com/html/gemalto/cinterion-ens22-e/cinterion-ens22-e_at-command-set_2206709165.webp)
Cinterion
®
ENS22-E AT Command Set
12.4 AT^SSPI
ENS22-E_ATC_V01.000
19/02/11
Page 165 of 189
12.4
AT^SSPI Serial Protocol Interface
The
command enables the module to be connected to external I²C or SPI devices.
I²C lines are shared with GPIO9 and GPIO10. Therefore, a connected I²C device is only accessible if
="Gpio/mode/I2C" is set to "std".
SPI lines are shared with GPIO lines or with ASC1 lines. Therefore, a connected SPI device is only accessible
if
="Gpio/mode/SPI" is set to "std" instead of "gpio". Keep in mind that in this case the command
="Gpio/mode/ASC1" automatically switches to "rsv".
The I²C/SPI datastream is mapped through an internal I²C/SPI driver to and from an ASCII hex protocol which
can be exchanged with an external application via V24.
The
write command configures and activates the I²C/SPI interface and changes from command mode
into data mode. All values must be given in hexadecimal format (0 - 9, A - F) without "0x". For details on data
mode please refer to Section
Transmitting Data over AT Interface
.
Syntax
Parameter Description
Parameter returned by the
? read command.
Indicates whether or not the I²C or SPI channel is used. When the channel is open and the ME is in data mode,
the read command can only be used if one of the remaining interfaces is available.
[0]
Not connected (channel closed). All following parameters are the factory set-
tings ^SSPI: 0,0000,0000,0000.
1
Connected (channel open, ME in data mode). All following parameters are the
values currently used, for example ^SSPI: 1,0000,0000,0000.
Test Command
AT^SSPI=?
Response(s)
^SSPI:
(list of supported
s), (list of supported
s), (list of
supported
OK
Read Command
AT^SSPI?
Response(s)
^SSPI:
,
OK
ERROR
+CME ERROR:
<err>
Write Command
AT^SSPI=
[,
[,
]]]
Response(s)
CONNECT
(indicates that ME has entered data mode)
ERROR
+CME ERROR:
<err>
PIN Last
-
+
<connectionState>
(num)