![Gemalto Cinterion ENS22-E Скачать руководство пользователя страница 173](http://html.mh-extra.com/html/gemalto/cinterion-ens22-e/cinterion-ens22-e_at-command-set_2206709173.webp)
Cinterion
®
ENS22-E AT Command Set
12.4 AT^SSPI
ENS22-E_ATC_V01.000
19/02/11
Page 173 of 189
12.4.6
Example: Transfer and Response Messages on SPI
The following examples shall illustrate the message structure and write/read procedures explained in Section
Structure of Messages on the SPI
. Blanks are inserted only to better visualize frame elements. In prac-
tice no blanks are allowed.
<0 00 0000 06>
Transfer Message: The master enable write to slave.
{0 +}
Response Message: Transmission successful.
<0 00 0000 02 00 11 22 33>
Transfer Message: The master writes 3 bytes.
{0 +}
Response Message: Transmission successful.
<1 00 0010 03 00>
Transfer Message: The master requests to read 16
bytes from the slave. Read Offset is zero, therefore,
reading starts from the first byte.
{1 + FF FF 11 22 33 78 99 99 99 CC CC CC CA
AA AB BB}
Response Message: Reading data successful.
<2 02 0008 03 00>
Transfer Message: The master requests to read 8
bytes from the slave. Read Offset is 2, therefore,
reading starts from the third byte.
{2 + 11 22 33 78 99 99 99 CC}
Response Message: Reading data successful.
<4 02 0010 03 00<
Transfer Message: No 'stop sign' in transfer Mes-
sage.
{4!0006}
Response Message: Protocol error in the sixth byte.
>4 02 0010 03 00> or >4 02 0010 03 00<
Transfer Message: No 'start sign', or no data after
'start sign'.
>4 02 0010 03 00> or >4 02 0010 03 00<
Response the message itself, the wrong format mes-
sage is ignored.