User guide
Developers guidelines | AT commands
235 June 2010
Ensemble S27: OBEX
Commands
AT+CPROT Enter protocol mode
Description: Informs TA that TE wants to establish a peer-to-peer protocol <proto> or
upper layer connection (indicated by the <lsap> settings) with the ME on
the link from which the command was received. This command can be
used in case the link between TE and ME does not provide such a mecha-
nism itself.
If ME has succeeded in establishing a logical link between application pro-
tocols and external interface, it sends a CONNECT message to the TE.
Otherwise, the NO CARRIER response is returned.
If the CONNECT response is received, TE can start sending <proto> or
upper layer frames.
The connection always returns to <proto> mode when the protocol ses-
sion is ended. When the ME receives a disconnect request from its peer
entity, it processes it and sends a OK response to the TE indicating its
capability for receiving new AT commands. Since <proto> or upper layers
can be accessed in other ways, TA must have prior knowledge of the fact
that connection is initiated with AT+CPROT command. This means that
switch to <proto> mode must include some sort of notification to the pro-
tocol entity.
This command can be aborted by sending a <proto> or upper layer dis-
connection frame. In that case, ME returns to command mode by sending
the OK response.
Set command: AT+CPROT=<proto>[,<version>[,<lsap1>[,...[<lsapN>]]]]
Test command: AT+CPROT=? Shows if the command is supported.
Test command
response: +CPROT: <proto1>[,(list of supported <version>s)[,(list of supported
<lsap1>s)[,...[,(list of supported <lsapN>s)]]]][<CR><LF>
+CPROT: <proto2>[,(list of supported <version>s)[,(list of supported
<lsap1>s)[,...[,(list of supported <lsapN>s)]]]]]
[...]]]]]
Parameters:
<proto>:
<proto> Description
0 OBEX
<version>:
<version> Description
String Version number of <proto>.
Note: The total number of characters, including line
terminators, in the information text may not exceed
16 characters










