Cinterion
®
EHS6 AT Command Set
19.7 AT^SSPI
EHS6_ATC_V03.001 15/12/3
Confidential / Released
Page 462 of 513
19.7 AT^SSPI Serial Protocol Interface
The AT^SSPI command enables the module to be connected to external I²C or SPI devices.
SPI lines are shared with GPIO lines or with the ASC0 line DSR0 and with ASC1 lines. Therefore, a connected
SPI device is only accessible if AT^SCFG="Gpio/mode/SPI" is set to "std". Keep in mind that in this case the com-
mands AT^SCFG="Gpio/mode/DSR0" and AT^SCFG="Gpio/mode/ASC1" automatically switch 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 internal application (JAVA) or an external application via V24.
The AT^SSPI 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 19.7.2, Transmitting Data over AT Interface.
Caution:
If I²C or SPI are opened from a Java application be sure to close the I²C or SPI channels before Java terminates.
Syntax
Test Command
AT^SSPI=?
Response(s)
^SSPI:(list of supported <basicConfiguration>s), (list of supported <wordLength>s), (list of
supported <extendedSpiConfiguration>s)
OK
Read Command
AT^SSPI?
Response(s)
^SSPI: <connectionState>, <basicConfiguration>, <wordLength>,
<extendedSpiConfiguration>
OK
ERROR
+CME ERROR: <err>
Write Command
AT^SSPI=[<basicConfiguration>[, <wordLength>[, <extendedSpiConfiguration>]]]
Response(s)
CONNECT
(indicates that ME has entered data mode)
ERROR
+CME ERROR: <err>
PIN Last
- + +