
PAN1322
Application Note
19
Revision 1.2, 2013-12-18
Design Guide
4
Operation Modes
4.1
Command Mode
In command mode which is the default mode after power up or HW/SW reset, all communication by
the host with the module is done using AT commands. The module will respond with different
responses depending on what command was sent. Commands to eUniStone shall be ended with
carriage return and line feed. Responses from eUniStone will be ended in the same way. E.g. for SW
reset, AT+JRES<cr><lf> sent to eUniStone will be responded with ROK<cr><lf>. (“<cr><lf>“ might be
omitted in further descriptions of commands and responses)
After a SPP connection is set up to another device, data is sent using the command AT+JSDA. Data
received from the other side is sent to the host with the reRDAI. See example in the SPP AT
specification, [
]. Sending and receiving data in command mode is normally used when transmitting
burst and packetized data.
Table 1. Sending and receiving data in command mode
Direction
Command / Response
Note
Host
eUniStone
AT+JSDA=008,DataSent<cr><lf>
Data that shall be sent
Host
eUniStone
OK<cr><lf>
Positive response that the data was sent
Host
eUniStone
+RDAI=012,DataReceived<cr><lf>
Data received
4.2
Stream Mode
Stream mode can only be used after an established SPP connection. In this mode, the host application
will send and receive un-packetized data to and from eUniStone, which are transmitted/received over
the air to the remote device. Carriage return and line feed are not used in either direction, as in
command mode. This mode is normally used when transmitting small size of data in a random way and
for serial cable replacement applications.
Table 2. Sending and receiving data in stream mode
Direction
Stream data
Note
Host
eUniStone
DataSent
Data that shall be sent
Host
eUniStone
DataReceived
Data received