D T 5 0 - M C O M M A N D R E F E R E N C E G U I D E 1 . 1 P a g e
29 | 38
prompt. After data prompt is
received by the host it should
send data_length number of
bytes. Ok response is given after
data_length of bytes has been
received.
Response
Description
>
Prompt to start sending data,
when data format is 2 (binary).
Binary data will not be echoed.
OK
Successful response.
ERROR
Error Response. These are the
situations resulting in error:
•
There is currently no
room for the data in
transmit buffer. Wait
some time and retry.
•
There was too long idle
period in data reception
in binary mode. The
timeout value can be set
with +UDCFG command.
•
Invalid parameter.
•
Peer connection URL does
not
start with “at
-
”.
Parameter
Description
peer_handle
The peer handle identifies the
connection.
data_format
0: String
1: Hexadecimal (Byte Array)
2: Binary
data
Data to send, String in text case,
Byte Array in hexadecimal case.
data_length
Number of Bytes to send.
Minimum 1, maximum 2000.
Example
The following example sets up an outgoing Bluetooth SPP connection that can be used for sending data
in AT command mode. In this example, data in text format is sent on peer handle 1.
AT+UDCP=at-spp://04D3B0285423p
+UDCP:1