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
18 | 38
AT+UDCP=<url>
Connects to an enabled service on a remote device.
When the host connects to a service on a remote
device, it implicitly registers to receive the
"Connection Closed" event.
Response
Description
+UDCP:<peer_handle>
OK
Successful response.
ERROR
Error response.
Parameter
Description
url
URL to the service on the remote peer.
<scheme>://<domain>[:<port>]/[?<query_string>]
Supported schemes:
sps:
• <domain> specifies Bluetooth address <Bd_Addr>
of the remote device; port is ignored.
• <query_string> can define "bt_name", "role" and
"escseq"
o "bt_name" defines the Bluetooth name to which
the device shall connect
o "role" defines the role of the remote device; if the
local device is configured as Bluetooth low energy
Simultaneous Peripheral or Central.
o "escseq" defines allowed "escseq"; if the "escseq"
is 1, the remote device can put the local device in AT
command mode (see AT+UDSF command).
spp/dun:
• <domain> specifies Bluetooth address <Bd_Addr>
of the remote device and port specifies RFCOMM
channel
• <query_string> can define "bt_name", "uuid",
"qos" and "escseq"
o "bt_name" defines the Bluetooth name to which
the device shall connect in spp
o "uuid" defines the uuid of the remote service
o "qos=1" enables Bluetooth Quality of service (see
AT+UBTCFG command).
o "escseq=1" enables escape sequence detection
(see AT+UDSF command).
tcp:
• <domain> specifies either IPv4 <IPv4_Addr> or IPv6
<IPv6_Addr> address or domain name.
• <query_string> can define "local_port"
• <query_string> "flush_tx" defines if a flush should
be done after each write
o 0(default): disabled