RAYTAC MDBT42Q - AT User manual

Version: I
Issued Date: 2021/07/07
Approval Sheet
(產品承認書)
產品名稱
(Product)
BLE AT Command Module
in Peripheral / Slave role
解決方案
(Solution)
Nordic nRF52810 QFN Package
產品型號
(Model No.)
MDBT42Q –AT (Chip Antenna)
MDBT42Q –PAT (PCB Antenna)
韌體版本
(FW Rev.)
1.4
Advantage of MDBT42Q & MDBT42Q-P series:
1. Long working distance under 1 Mbps:
MDBT42Q: over 80 meters in open space.
MDBT42Q-P: up to 60 meters in open space.
2. Declaration ID includes all Nordic applied profiles.
3. Granted main regional certification such as FCC (USA), CE(EU)
TELEC (Japan), SRRC (China), IC (Canada), NCC (Taiwan), and KC (South Korea)

Index
1. Overall Introduction ...................................................................................................... 4
2. AT Command ................................................................................................................. 4
2.1. List of supported commands................................................................................. 4
2.2. AT Command Sets................................................................................................ 5
2.2.1. “Write” Commands................................................................................................ 5
2.2.2. “Read” Commands ............................................................................................... 8
2.2.3. Response (Default)............................................................................................... 9
2.3. Default Info ..........................................................................................................11
2.4. Pin Assignment................................................................................................... 12
3. How to Control via External MCU .............................................................................. 14
3.1. How to Send AT Commands............................................................................... 14
3.2. How to Transmit Data ......................................................................................... 16
3.3. How to Return to Setting of Default Flash........................................................... 16
4. Test Report................................................................................................................... 17
4.1. Current Test ........................................................................................................ 17
4.2. Throughput Test.................................................................................................. 18
5. Product Dimension ..................................................................................................... 20
5.1. PCB Dimensions & Pin Indication....................................................................... 20
5.2. Recommended Layout of Solder Pad................................................................. 22
5.3. RF Layout Suggestion (aka Keep-Out Area) ...................................................... 26
5.4. Footprint & Design Guide ................................................................................... 28
6. Main Chip Solution...................................................................................................... 29
7. Shipment Packaging Information .............................................................................. 30
7.1. Marking on Metal Shield ..................................................................................... 31
7.2. Packaging Info.................................................................................................... 31
7.3. Order Code......................................................................................................... 33
8. Specification ................................................................................................................ 34
8.1. Absolute Maximum Ratings ................................................................................ 34
8.2. Operation Conditions.......................................................................................... 34
8.3. Electrical Specifications...................................................................................... 35
9. Antenna........................................................................................................................ 40

9.1. MDBT42Q Series ............................................................................................... 40
9.2. MDBT42Q-P Series............................................................................................ 41
10. Reference Circuit......................................................................................................... 42
11. Certification ................................................................................................................. 43
11.1. Declaration ID..................................................................................................... 43
11.2. FCC Certificate (USA) ........................................................................................ 44
11.3. TELEC Certificate (Japan).................................................................................. 46
11.4. NCC Certificate (Taiwan) .................................................................................... 48
11.5. CE Test Report (EU) ........................................................................................... 50
11.6. IC Certificate (Canada)....................................................................................... 52
11.7. SRRC Certificate (China).................................................................................... 54
11.8. KC Certificate (South Korea) .............................................................................. 55
11.9. RoHS & REACH Report ..................................................................................... 56
11.10. End-Product Label.............................................................................................. 56
12. Notes and Cautions..................................................................................................... 59
13. Basic Facts for nRF52 Chip........................................................................................ 60
14. Useful Links ................................................................................................................. 61
History of Firmware Revision............................................................................................ 62
Full List of Raytac’s BLE Modules .................................................................................... 64
Release Note....................................................................................................................... 67

4
1.Overall Introduction
Raytac’s MDBT42Q-AT & MDBT42Q-PAT is a BT 5.2 stack (Bluetooth low energy or BLE)
module designed based on Nordic nRF52810 SoC solution, which incorporates: UART
interface in only peripheral/slave role for data bridge in compact size (L) 16 x (W) 10 x (H)
2.2 mm.
2.AT Command
2.1. List of supported commands
- Setting of device name
-Choose data rate of 1 Mbps or 2 Mbps on-air
-Set TX output power in 5 levels.
-Set advertising time
-Set connection interval under Mode 2
-Enable/disable advertising
-Set LED pattern indicating advertising or connecting status
-7 sets of UART baud rates
-Enable/disable UART flow control
-Enable/disable interface of UART hardware
-Support 8 programmable output GPIO
-Power-down mode for power saving and GPIO wake-up
-Support DC-to-DC and LDO power mode
-Use internal or external 32.768KHz oscillator
-Recover-to-default setting with hardware and software method
-System reset of hardware and software
-Set serial number and retrieve
-Set or retrieve MAC Address
-Retrieve ADC value for battery detection, delivering the information through battery
service.
-Support maximum MTU 247bytes / data payload up to maximum 244 bytes

5
2.2. AT Command Sets
2.2.1.“Write”Commands
No.
Command
Description
(1)
AT+NAME
Set device name,Max. length of 20 characters
e.g. AT+NAME123 (device name 123, 3 characters)
(2)
AT+RESET
Set to reset system
(3)
AT+ADVSTART
Set to start advertising
(4)
AT+ADVSTOP
Set to stop advertising
(5)
AT+SLEEP
Set to get into deep sleep mode
(6)
AT+BAUDRATE9600
Set UART baud rate at 9600 bps,n,8,1
(7)
AT+BAUDRATE19200
Set UART baud rate at 19200 bps,n,8,1
(8)
AT+BAUDRATE38400
Set UART baud rate at 38400 bps,n,8,1
(9)
AT+BAUDRATE57600
Set UART baud rate at 57600 bps,n,8,1
(10)
AT+BAUDRATE115200
Set UART baud rate at 115200 bps,n,8,1
(11)
AT+BAUDRATE230400
Set UART baud rate at 230400 bps,n,8,1
(recommended enabling flow control)
(12)
AT+BAUDRATE460800
Set UART baud rate at 460800 bps,n,8,1
(recommended enabling flow control)
(13)
AT+FLOWCONTROLDIS
Disable UART flow control
(14)
AT+FLOWCONTROLEN
Enable UART flow control
(15)
AT+TXPOWER4DBM
Set RF TX power at + 4dBm
(16)
AT+TXPOWER0DBM
Set RF TX power at 0dBm
(17)
AT+TXPOWER-4DBM
Set RF TX power at - 4dBm
(18)
AT+TXPOWER-8DBM
Set RF TX power at - 8dBm
(19)
AT+TXPOWER-20DBM
Set RF TX power to - 20dBm
(20)
AT+XTALINTERNAL
Use internal RC 32.768KHZ low frequency oscillator
(21)
AT+XTALEXTERNAL
Use external crystal 32.768KHZ low frequency oscillator
(22)
AT+CONNECTINDICATORLOW
Set logic low output when connecting BT
(23)
AT+CONNECTINDICATORHIGH
Set logic high output when connecting BT
(24)
AT+PHYMODE1MBPS
Set PHY mode at 1Mbps

6
No.
Command
Description
(25)
AT+PHYMODE2MBPS
Set PHY mode at 2Mbps
(26)
AT+WAKEUPLOW
Set logic low at wake-up when in deep sleep
(27)
AT+WAKEUPHIGH
Set logic high at wake-up when in deep sleep
(28)
AT+ADVTIMEtttt
Set advertising time (Hex)
e.g. 0x001E (min. 30secs),
0x0E10 (Max. 3,600secs)
0x0000 (forever)
(29)
AT+DCDCDIS
Disable DC to DC converter
(30)
AT+DCDCEN
Enable DC to DC converter
(31)
AT+CONNECTINTERVALMODE0
Set connection interval mode for iOS/Android APP usage
(min. 20ms / Max. 40ms),
(32)
AT+CONNECTINTERVALMODE1
Set connection interval mode for nRF52832 Central usage
(min. 8ms / Max. 8ms)
(33)
AT+CONNECTINTERVALMODE2
Set connection interval mode for iOS/Android APP usage
(programmable: min. / Max. range is 8ms ~ 1,000ms)
(34)
AT+CONNECTINTERVALTIMEtttttttt
Set connection interval time (Hex), available when
activating “AT+CONNECTINTERVALMODE2”
e.g. 0x0008 (8ms),
0x03E8 (1,000ms), conditions to be met:
“min. connection interval ≦ Max. connection interval”
(35)
AT+ADVPATTERNnnnnffff
Set LED advertising pattern (Hex), where
n = time when LED on, f = time when LED off
e.g. 0x0064 (min. 100ms)
0x1388 (Max. 5000ms),
0x00000000 (off)
0xFFFFFFFF (on)
(36)
AT+CONNECTPATTERNnnnnffff
Set LED connecting pattern (Hex), where
n = time when LED on, f = time when LED off
e.g. 0x0064 (min. 100ms)
0x1388 (Max. 5000ms)
0x00000000 (off)
0xFFFFFFFF (on)

7
No.
Command
Description
(37)
AT+SERIALNOnnnnnnnn
Set serial number
e.g. AB000001, fixed 8-character length
(38)
AT+RESPONSEDIS
Disable response when sending “write” command
(39)
AT+RESPONSEEN
Enable response when sending “write” command
(40)
AT+DISCONNECT
Terminate the connection
(41)
AT+DEFAULT
Back to default
(42)
AT+SETGPIOnnHIGH
Set GPIO number p0.nn to high,
where “nn” is range from 12 ~ 19 (Ascii)
(43)
AT+SETGPIOnnLOW
Set GPIO number p0.nn to low,
where “nn” is range from 12 ~ 19 (Ascii)
(44)
AT+SETGPIOnnOFF
Set GPIO number p0.nn to unused,
where “nn” is range from 12 ~ 19 (Ascii)
(45)
AT+MACADDRnnnnnnnnnnnn
Set IC MAC address, where n is Hex.
Written order is from MSB byte to LSB byte.

8
2.2.2.“Read”Commands
No.
Command
Description
(1)
AT?NAME
To retrieve device name
(2)
AT?VERSION
To retrieve firmware version
(3)
AT?MACADDR
To retrieve IC MAC address
(4)
AT?BAUDRATE
To retrieve current UART baud rate
(5)
AT?FLOWCONTROL
To retrieve UART status of flow control
(6)
AT?TXPOWER
To retrieve RF TX power
(7)
AT?XTAL
To retrieve status of oscillator
(8)
AT?CONNECTINDICATOR
To retrieve logic of pin for BT-connecting indicator
(9)
AT?PHYMODE
To retrieve status of PHY mode
(10)
AT?WAKEUP
To retrieve logic of wake-up pin
(11)
AT?ADVTIME
To retrieve advertising time (Hex)
(12)
AT?DCDC
To retrieve DC to DC converter status
(13)
AT?CONNECTINTERVALMODE
To retrieve status of connection interval mode
(14)
AT?ADVPATTERN
To retrieve LED advertising pattern (Hex)
(15)
AT?CONNECTPATTERN
To retrieve LED connecting pattern (Hex)
(16)
AT?SERIALNO
To retrieve serial number
(17)
AT?ADCVALUE
To retrieve 10bit ADC value
(18)
AT?RESPONSE
To retrieve status of response
(19)
AT?ALLPARAMETERS
To retrieve value of all parameters
(20)
AT?CONNECTINTERVALTIME
To retrieve value of connection interval time under Mode 2

9
2.2.3.Response (Default)
No.
Command
Response
(1)
AT?NAME
Raytac AT-UART (default)
(2)
AT?VERSION
e.g. version: 1.0
(3)
AT?MACADDR
e.g. D352BDE1E414
(4)
AT?BAUDRATE
0 baudrate9600 (default)
(0 = 9600; 1 = 19200; 2 = 38400; 3 = 57600; 4 = 115200;
5 = 230400; 6 = 460800)
(5)
AT?FLOWCONTROL
0 flowcontrol dis (default)
(0 = disabled; 1 = enabled)
(6)
AT?TXPOWER
0 txpower 4dbm (default)
(0 = 4dBm; 1 = 0dBm; 2 = -4dBm; 3 = -8dBm, 4 = -20dBm)
(7)
AT?XTAL
0 xtal internal (default)
(0 = internal; 1 = external, and XTAL = 32.768KHz
oscillator)
(8)
AT?CONNECTINDICATOR
0 connect indicator low (default)
(0 = output low; 1 = output high)
(9)
AT?PHYMODE
0 PHY mode 1Mbps (default)
(0 = 1Mbps; 1 = 2Mbps)
(10)
AT?WAKEUP
0 wakeup low (default)
(0 = low active; 1 = high active)
(11)
AT?ADVTIME
0000 (default: Hex, forever advertising with no timeout,
tttt: 0x0000)
(12)
AT?DCDC
0 dcdc dis (default)
(0 = disabled; 1 = enabled)
(13)
AT?CONNECTINTERVALMODE
0 connect interval mode 0 (default)
(0 = fixed connection interval for iOS/Android APP usage
1 = fixed connection interval,for nRF52832 Central usage
2 = programmable connection interval for iOS/Android APP
usage)
(14)
AT?ADVPATTERN
01F401F4 (default: Hex, 0.5sec on / 0.5sec off,
nnnn: 0x01F4, ffff: 0x01F4)

10
No.
Command
Response
(15)
AT?CONNECTPATTERN
00c80708 (default: Hex, 0.2sec on / 1.8sec off,
nnnn: 0x00c8, ffff: 0x0708)
(16)
AT?SERIALNO
Display “ no data! ” string (default)
(17)
AT?ADCVALUE
Value varies from input voltage
(18)
AT?RESPONSE
1 response en (default)
(0 = disable response; 1 = enable response)
(19)
AT?ALLPARAMETERS
Display value of all parameters, separated by "0x0d0x0a"
(20)
AT?CONNECTINTERVALTIME
006400C8 (default: Hex, 100ms min. connection interval /
200ms Max. connection interval, tttttttt: 0x006400C8)

11
2.3. Default Info
No.
Description
Default
(1)
Device name
Raytac AT-UART
(2)
Base UUID
0x9E, 0xCA, 0xDC, 0x24, 0x0E, 0xE5, 0xA9, 0xE0
0x93, 0xF3, 0xA3, 0xB5, 0x00, 0x00, 0x40, 0x6E
(3)
Service UUID
0x0001
TX characteristic: 0x0003; RX characteristic: 0x0002
(4)
Baud rate
9600bps,n,8,1
(5)
Status of flow control
Disabled
(6)
RF TX power
+4dBm
(7)
32.768Khz oscillator
Using internal RC with 1000ms calibration time
(8)
Logic of BT connecting indicator
Output set as logic low when BT is connecting
(9)
PHY mode
1Mbps
(10)
Logic of wake-up pin
Set logic low to wake up in deep sleep
(11)
Advertising time
Forever advertising with no timeout
(12)
Status of DC-to-DC converter
Disabled
(13)
Connection interval mode
Set at min. 20ms and Max. 40ms for iOS/Android usage
(14)
Advertising LED pattern
0.5sec on / 0.5sec off
(15)
Connecting LED pattern
0.2sec on / 1.8secs off
(16)
Serial number
Display “no data! ”string
(17)
ADC value
Value varies from input voltage between
0x0000 ~ 0x03FF (Hex).
(18)
State of response
Enabled
(19)
Programmable output GPIO
P0.12, P0.13, P0.14, P0.15, P0.16, P0.17, P0.18
and P0.19 are unused

12
2.4. Pin Assignment
Pin No.
Name
Pin Function
Description
(1)
GND
Ground
The pad must be connected to a solid ground plane
(2)
NC
No function
Not connected
(3)
NC
No function
Not connected
(4)
NC
No function
Not connected
(5)
NC
No function
Not connected
(6)
NC
No function
Not connected
(7)
NC
No function
Not connected
(8)
NC
No function
Not connected
(9)
DEC4
Power
1V3 regulator supply decoupling. Input from DC/DC
converter. Output from 1V3 LDO .
(10)
DCC
Power
DC/DC converter output pin
(11)
VDD
Power
Power-supply pin
(12)
GND
Ground
The pad must be connected to a solid ground plane
(13)
NC
No function
Not connected when using internal RC (LFXO)
XL1
Analog input
Connecting to 32.768KHz crystal when using external
LFXO
(14)
NC
No function
Not connected when using internal RC (LFXO)
XL2
Analog input
Connecting to 32.768KHz crystal when using external
LFXO
(15)
ADC
Analog input
10bit resolution ADC is always on and update every 200ms
(16)
Indicator
Output / Logic
Output logic is selective about the action of BT connection
(17)
Connecting
or Adver. LED
Output
Setting of LED pattern is changeable when it is active-low
(18)
UART RTS
Output
RTS, request to send
(19)
UART TX
Output
UART transmitter
(20)
UART CTS
Input
CTS, clear to send
(21)
UART RX
Input
UART receiver

13
Pin No.
Name
Pin Function
Description
(22)
Wakeup
Input / Logic
Output logic is selective about the action of wakeup from
deep sleep
(23)
UART PD
Input
Active-high with internal pull-high to disable hardware
UART interface. The default is disabled.
(24)
GND
Ground
The pad must be connected to a solid ground plane
(25)
Flash
Default
Input
Active-low with internal pull-high for
0.48sec ≦logic low ≦1sec and return to logic high,
then system will back to default.
(26)
P0.12
Output / NC
Programable output GPIO, NC when set unused
(27)
P0.13
Output / NC
Programable output GPIO, NC when set unused
(28)
P0.14
Output / NC
Programable output GPIO, NC when set unused
(29)
P0.15
Output / NC
Programable output GPIO, NC when set unused
(30)
P0.16
Output / NC
Programable output GPIO, NC when set unused
(31)
P0.17
Output / NC
Programable output GPIO, NC when set unused
(32)
P0.18
Output / NC
Programable output GPIO, NC when set unused
(33)
P0.19
Output / NC
Programable output GPIO, NC when set unused
(34)
NC
No function
Not connected
(35)
RESET
Input
Active-low to enable hardware system RESET pin
(36)
SWDCLK
Digital input
Serial Wire debug clock input for debug and programming
(37)
SWDIO
Digital I/O
Serial Wire debug I/O for debug and programming
(38)
NC
No function
Not connected
(39)
GND
Ground
The pad must be connected to a solid ground plane

14
3.How to Control via External MCU
3.1. How to Send AT Commands
⚫When BT is NOT connected, for ALL commands
1. Output low to UART PD pin to enable UART interface. Please keep it LOW during the
whole time when sending AT commands.
2. Send any AT commands you want. Please wait for at least 250 ms between sending
each command.
We recommend sending corresponding “Read” command (section 2.2.2) right after the
delay to know whether the writing is successful before moving on to step 3 to save your
settings.
Please prolong the delay (over 250 ms) when writing or/and reading is not successful.
3. Send command “ AT+RESET ” (not HW reset) to save all your settings.
4. Output high or NC to UART PD pinto turn off UART interface.

15
⚫When BT is connected for following commands ONLY
Write: AT+DISCONNECT, AT+SLEEP, AT+SETGPIOnnHIGH,
AT+SETGPIOnnLOW, AT+SETGPIOnnOFF
Read: AT?ADCVALUE
1. Output low to UART PD pin to enable UART interface. Please keep it LOW during the
whole time when sending AT commands.
2. Output low to flash default pin to enable receiving AT commands when BT is connected.
Please keep it LOW during the whole time when sending AT commands.
3. Send “AT?ADCVALUE” or “AT+DISCONNECT” or “AT+SLEEP” or
“AT+SETGPIOnnHIGH” or “AT+SETGPIOnnLOW” or “AT+SETGPIOnnOFF”.
4. Output high or NC to UART PD pin to turn off UART interface.
5. Output high or NC to flash default pin to disable the module to receive AT commands
when BT is connected.

16
3.2. How to Transmit Data
* Only when BT is connected *
1. Output low to UART PD pin to enable UART interface. Please keep it LOW during the
whole time when transmitting data.
2. Output high or NC to UART PD pin to turn off UART interface.
3.3. How to Return to Setting of Default Flash
* Only when BT is NOT connected *
* Note that default baud rate is “9600bps,n,8,1”. For other default, please
check “2.3 Default Info”
⚫Use Hardware Method
1. Read indicator pin first to check if BT is NOT in connection.
2. Output a low pulse to flash default pin, then system will return to default setting.
⚫Use Software method
1. Output low to UART PD pin to enable UART interface. Please keep it LOW during the
whole time when sending AT commands.
2. Send command “ AT+DEFAULT ”, then system will return to default setting.

17
4.Test Report
All testing is done under PHY mode at 1M bps.
4.1. Current Test
DC/DC
Logic of UART PD pin
Advertising Current
Connected Current
Disable
High
0.85 mA
0.3 mA
Low
1.56 mA
1 mA
Enable
High
0.45 mA
0.16 mA
Low
0.95 mA
0.68 mA
Sleep Mode
Logic of UART PD pin
Sleep Current
High
3 uA
Low
3 uA

18
4.2. Throughput Test
Here D.L. means “Data Length” and D.I. means “Data Interval” in the table.
⚫MCU →Peripheral (MDBT42Q-AT/MDBT42Q-PAT) → Central → Console
Central
Connection Interval
Peripheral
Connection Interval
Baud
Rate
Flow
Control
MCU D.L.
(bytes)
MCU D.I.
(ms)
Total D.L.
(bytes)
Total
Trans. Time (sec)
Data Rate
(k-bytes/sec)
min = 20ms
Max = 75ms
min = 20ms
Max = 40ms
9600
X
64
60
262152
273
0.96
244
250
999432
1,042
V
244
250
999432
1,042
min = 20ms
Max = 75ms
min = 20ms
Max = 40ms
115200
X
64
8
262152
33
7.9
244
30
999432
124
8
V
244
30
999432
124
8
min = 20ms
Max = 75ms
min = 20ms
Max = 40ms
460800
X
244
25
999432
103
9.7
V
min = Max = 8ms
min = Max = 8ms
9600
X
64
60
262152
273
0.96
244
250
999432
1,042
V
244
250
999432
1,042
min = Max = 8ms
min = Max = 8ms
115200
X
64
8
262152
33
7.9
244
30
999432
124
8
V
244
30
999432
124
8
min = Max = 8ms
min = Max = 8ms
460800
X
244
15
999432
62
16.1
V

19
⚫MCU →Central →Peripheral (MDBT42Q-AT/MDBT42Q-PAT) →Console
Central
Connection Interval
Peripheral
Connection Interval
Baud
Rate
Flow
Control
MCU D.L.
(bytes)
MCU D.I.
(ms)
Total D.L.
(bytes)
Total
Trans. Time (sec)
Data Rate
(k-bytes/sec)
min = 20ms
Max = 75ms
min = 20ms
Max = 40ms
9600
X
64
60
262152
273
0.96
244
250
999432
1,042
V
244
250
999432
1,042
min = 20ms
Max = 75ms
min = 20ms
Max = 40ms
115200
X
64
8
262152
33
7.9
244
30
999432
124
8
V
244
30
999432
124
8
min = 20ms
Max = 75ms
min = 20ms
Max = 40ms
460800
X
244
18
999432
74
13.5
V
min = Max = 8ms
min = Max = 8ms
9600
X
64
60
262152
273
0.96
244
250
999432
1,042
V
244
250
999432
1,042
min = Max = 8ms
min = Max = 8ms
115200
X
64
8
262152
33
7.9
244
30
999432
124
8
V
244
30
999432
124
8
min = Max = 8ms
min = Max = 8ms
460800
X
244
15
999432
61
16.3
V

20
5.Product Dimension
5.1. PCB Dimensions & Pin Indication
‧MDBT42Q-AT
PCB Size (in mm)
Min.
Norm
MAX.
L
- 0.15
16
+ 0.2
W
10
H
2.2
This manual suits for next models
1
Table of contents
Other RAYTAC Antenna manuals
Popular Antenna manuals by other brands

Oricom
Oricom ANU850 Fitting instructions

DX Engineering
DX Engineering DXE-HEXX-BAL-KIT manual

Furuno
Furuno FV-110 Operator's manual

Skyware Global
Skyware Global 180 Assembly instructions

CommScope
CommScope CMAX-DM60-Series Installation instruction

TE Connectivity
TE Connectivity L000423 Series Assembly and installation instructions