background image

 

6.3.  How to Start Scanning 

This section describes how to start scanning using a physical button (hardware) or the AT 

Command (firmware) under various occasions. Before getting started, here are some notes 

applied to both methods.

 

Each central device is only able to pair with 1 Peripheral.

 

The device will be in idle directly when it is powered or not in BLE connection. It will go 

into deep sleep after a given timeout (no timeout in default).

 

A few criteria must be met in order to complete BLE connection:

 

Under 

Paired Scanning 

Under 

All-Devices Scanning 

Base UUID 

 

 

Service UUID 

 

 

Device name 

 

 

RSSI Threshold 

 

 

Mac Address 

in Paired Record 

 

 

Содержание MDBT42Q-AT-UART-M

Страница 1: ...Version C Issued Date 2020 04 22 User Guide Product Demo Board for MDBT42Q ATM PATM Model No MDBT42Q AT UART M FW Revision 1 2...

Страница 2: ...5 AT Command 8 5 1 List of supported commands 8 5 2 AT Command Sets 9 5 3 Default Info 17 6 How to Control External MCU 19 6 1 How to Send AT Commands 19 6 2 How to Return to Flashed Default Setting 2...

Страница 3: ...th MDBT42Q ATM chip antenna module MDBT42Q ATM will be pre programmed with Raytac s AT command firmware If you don t need such pre programming and is looking for nRF52832 module please check MDBT42Q 5...

Страница 4: ...rnal LF 3 10uH 15nH inductor for DC to DC mode 4 Interface to connect to external MCU 5 ADC input for battery detection only Reference voltage is 0 6V Example formula Input Voltage 1 1 2 Reference Vol...

Страница 5: ...ase be careful not to erase the module during testing Raytac s AT command firmware will not be shared You may need to send the unit to us for re programming when module s FW is erased 9 3 3V LDO to po...

Страница 6: ...3 Reference Circuit...

Страница 7: ...ween 2 boards is less than 30 cm 2 Press the pairing key on MDBT42Q AT UART M for over 2 seconds 3 When seeing LED blinks like below the connection is successful Connected 0 2 sec ON 1 8 secs OFF Note...

Страница 8: ...ud rates Enable disable UART flow control 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...

Страница 9: ...ATE115200 Set UART baud rate at 115200 bps n 8 1 12 AT BAUDRATE230400 Set UART baud rate at 230400 bps n 8 1 recommended enabling flow control 13 AT BAUDRATE460800 Set UART baud rate at 460800 bps n 8...

Страница 10: ...cs 0x0258 Max 600secs 0x0000 forever 31 AT SCANNEWTIMEtttt Set time of scanning all devices Hex e g 0x001E min 30secs 0x0258 Max 600secs 0x0000 forever 32 AT DCDCDIS Disable DC to DC converter 33 AT D...

Страница 11: ...e g 0x0064 min 100ms 0x1388 Max 5000ms 0x00000000 off 0xFFFFFFFF on 40 AT SERIALNOnnnnnnnn Set serial number e g AB000001 fixed 8 character length 41 AT RESPONSEDIS Disable response when sending write...

Страница 12: ...for NUS Hex e g 0x0003 50 AT RXCHARACTERUUIDuuuu Set RX character UUID for NUS Hex e g 0x0002 51 AT SERVICEUUIDuuuu Set service UUID for NUS Hex e g 0x0001 52 AT BASEUUID uuuuuuuuuuuuuuuu uuuuuuuuuuuu...

Страница 13: ...To retrieve time of scanning all devices Hex 14 AT DCDC To retrieve DC to DC converter status 15 AT CONNECTINTERVALMODE To retrieve status of connection interval mode 16 AT IDLEPATTERN To retrieve LE...

Страница 14: ...rieve TX character UUID value Hex 29 AT RXCHARACTERUUID To retrieve RX character UUID value Hex 30 AT SERVICEUUID To retrieve service UUID value Hex 31 AT BASEUUID To retrieve base UUID value Hex 32 A...

Страница 15: ...tal 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...

Страница 16: ...CVALUE Value varies from input voltage 22 AT RESPONSE 1 response en default 0 disable response 1 enable response 23 AT RSSITHRESHOLD 51 default Ascii nnn 51 24 AT BEACONINFO 0 beaconinfo dis default 0...

Страница 17: ...gic low to wake up in deep sleep 11 Idle time Forever idle with no timeout 12 Time of scanning paired device Forever scanning for paired device with no timeout 13 Time of scanning all devices Forever...

Страница 18: ...No Description Default 23 Scanning new RSSI threshold 51 Ascii 24 Beacon UUID 0x01 0x12 0x23 0x34 0x45 0x56 0x67 0x78 0x89 0x9A 0xAB 0xBC 0xCD 0xDE 0xEF 0xF0 25 Company ID 0x004C...

Страница 19: ...4 Output high or NC to P0 10 UART PD pin to turn off UART interface When BT is connected for AT ADCVALUE AT DISCONNECT AT CONNECTRSSI AT SCANNEWSTART and AT SLEEP only 1 Output low to P0 11 flash defa...

Страница 20: ...thod 1 Read P0 03 indicator pin first to check if BT is NOT in connection 2 Output a low pulse to P0 11 flash default pin then system will return to default setting Use Software method 1 Output low to...

Страница 21: ...Default Definition of LED P0 4 Status Mode LED Status Idle 0 1 sec ON 3 9 secs OFF Connected 0 2 sec ON 1 8 secs OFF Scan the paired device 1 sec ON 1 sec OFF Scan all devices 0 1 sec ON 0 1 sec OFF...

Страница 22: ...th methods Each central device is only able to pair with 1 Peripheral The device will be in idle directly when it is powered or not in BLE connection It will go into deep sleep after a given timeout n...

Страница 23: ...g all devices STOP Scanning Paired All Device s Press the button for less than 2 seconds and release it to stop scanning The device will be back to idle and go into deep sleep after a given a timeout...

Страница 24: ...g all devices STOP Scanning Paired All Device s Enter AT SCANSTOP to stop scanning The device will be back to idle and go into deep sleep after a given timeout How to Start Scanning Paired Device All...

Страница 25: ...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 999...

Страница 26: ...2 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 460...

Страница 27: ...emi com questions A highly recommended website for firmware developer Interact with other developers and Nordic s employees will help with your questions The site also includes tutorials in detail to...

Страница 28: ...Release Date Description of Revision Note 1 0 2018 10 15 1st release 99 52832 12A 1 1 2019 05 17 Fixed bug of not sending PHY information to peripheral device after BLE connection 99 52832 12B 1 2 20...

Страница 29: ...orrected the illustration and note from wake up key to pairing key in Chapter 2 Hardware Description 2 Added how to connect the demo board for the 1st time in Chapter 4 Connecting for the 1st Time 202...

Отзывы: