Bluetooth data server that advertises as "OTAS" and accepts connection requests.
The Wireless Data Exchange profile is used to transfer files from the client to the server. A CRC32 value is used to check the integrity of the transferred file.
The red LED will indicate that an error assertion has occurred.
The green LED indicates CPU activity. When the LED is on, the CPU is active, when the LED is off, the CPU is in sleep mode.
This Bootloader application needs to be loaded prior to loading this application. This application will run on top of the Bootloader. The linker file included with this application must be used to properly setup the memory sections to coincide with the Bootloader.
Before building firmware you must select the correct value for BOARD in Makefile, e.g. "EvKit_V1".
- Connect a USB cable between the PC and the (USB/PWR - UART) connector.
When TRACE is enabled in the Makefile, the on-board USB-to-UART adapter can be used to view the trace messages and interact with the application. Open a serial port terminal with the following settings.
Baud : 115200
Char size : 8
Parity : None
Stop bits : 1
HW Flow Control : No
SW Flow Control : No
On startup:
terminal: init
32kHz trimmed to 0xF
DatsHandlerInit
WDXS: WdxsHandlerInit
Calculating database hash
FW_VERSION: 1
Dats got evt 32
>>> Reset complete <<<
dmAdvActConfig: state: 0
dmAdvActSetData: state: 0
dmAdvActSetData: state: 0
dmAdvActStart: state: 0
HCI_LE_ADV_ENABLE_CMD_CMPL_CBACK_EVT: state: 3
dmDevPassEvtToDevPriv: event: 12, param: 33, advHandle: 0
Dats got evt 33
>>> Advertising started <<<
Database hash calculation complete
When a connection has been made.
dmConnIdByBdAddr not found
dmConnCcbAlloc 1
dmConnSmExecute event=28 state=0
dmAdvConnected: state: 1
dmDevPassEvtToDevPriv: event: 13, param: 34, advHandle: 0
AttsCccInitTable connId=1
smpDbGetRecord: connId: 1 type: 0
smpDbAddDevice
SmpDbGetFailureCount: connId: 1 count: 0
smpDbGetRecord: connId: 1 type: 0
smpDbAddDevice
SmpDbGetPairingDisabledTime: connId: 1 period: 0 attemptMult: 0
Dats got evt 39
>>> Connection opened <<<
Dats got evt 65
attsProcMtuReq features 0x00
hciCoreTxAclStart len=7
hciCoreTxAclStart len=24
Dats got evt 87
connId=1 idleMask=0x0004
hciCoreTxAclStart len=9
hciCoreTxAclStart len=34
hciCoreTxAclStart len=9
connId=1 idleMask=0x0004
hciCoreTxAclStart len=10
connId=1 idleMask=0x0004
hciCoreTxAclStart len=9
hciCoreTxAclStart len=27
hciCoreTxAclStart len=9
connId=1 idleMask=0x0004
hciCoreTxAclStart len=9
hciCoreTxAclStart len=27
hciCoreTxAclStart len=9
connId=1 idleMask=0x0004
hciCoreTxAclStart len=10
connId=1 idleMask=0x0004
hciCoreTxAclStart len=9
hciCoreTxAclStart len=90
hciCoreTxAclStart len=9
connId=1 idleMask=0x0004
hciCoreTxAclStart len=10
connId=1 idleMask=0x0004
hciCoreTxAclStart len=10
connId=1 idleMask=0x0004
hciCoreTxAclStart len=10
connId=1 idleMask=0x0004
hciCoreTxAclStart len=10
connId=1 idleMask=0x0004
hciCoreTxAclStart len=9
attsCccMainCback connId=1 handle=19
hciCoreTxAclStart len=5
connId 1 updated csf to 0x01
hciCoreTxAclStart len=5
attsCccMainCback connId=1 handle=515
hciCoreTxAclStart len=5
attsCccMainCback connId=1 handle=579
hciCoreTxAclStart len=5
attsCccMainCback connId=1 handle=582
hciCoreTxAclStart len=5
attsCccMainCback connId=1 handle=585
hciCoreTxAclStart len=5
attsCccMainCback connId=1 handle=588
hciCoreTxAclStart len=5
OTA procedure, initiated by peer.
WDXS: FTC Write: len=12
WDXS: FTC Write: op=1 handle=0
WDXS: FTC GetReq handle=0 len=9
WDXS: FTC SendRsp op=2 handle=0 status=0
hciCoreTxAclStart len=5
WDXS: Task Handler Evt=1
WDXS: FTC Send
hciCoreTxAclStart len=14
WDXS: AttHook handle=581 event=18
WDXS: Task Handler Evt=1
WDXS: FTC SendRsp op=10 handle=0 status=0
hciCoreTxAclStart len=54
WDXS: AttHook handle=584 event=18
WDXS: Task Handler Evt=1
WDXS: FTC Send
hciCoreTxAclStart len=10
WDXS: AttHook handle=581 event=18
WDXS: Task Handler Evt=1
WDXS: FTC Write: len=16
WDXS: FTC Write: op=3 handle=1
WDXS: FTC PutReq handle=1 offset=0, len=190064
WDXS: FTC PutReq handle=1 status=0
WDXS: FTC SendRsp op=4 handle=1 status=0
hciCoreTxAclStart len=5
WDXS: Task Handler Evt=1
WDXS: FTC Send
hciCoreTxAclStart len=14
WDXS: AttHook handle=581 event=18
WDXS: Task Handler Evt=1
WDXS: FTC SendRsp op=10 handle=1 status=0
WDXS: Task Handler Evt=1
WDXS: FTC Send
hciCoreTxAclStart len=10
WDXS: AttHook handle=581 event=18
WDXS: Task Handler Evt=1
WDXS: FTC Write: len=3
WDXS: FTC Write: op=7 handle=1
WDXS: FTC VerifyReq: handle=1
CRC start addr: 0x10300000 Len: 0x0002E66C
WDXS: FTC SendRsp op=8 handle=1 status=0
hciCoreTxAclStart len=5
WDXS: Task Handler Evt=1
WDXS: FTC Send
hciCoreTxAclStart len=11
WDXS: AttHook handle=581 event=18
WDXS: Task Handler Evt=1
Type the desired command and parameter (if applicable) and press enter to execute the command.
help Displays the available commands.
echo (on|off) Enables or disables the input echo. On by default.
btn (ID) (s|m|l|x) Simulates button presses. Example: "btn 1 s" for a short button press on button 1.
pin (ConnID) (Pin Code) Used to input the pairing pin code.
Push buttons can be used to interact with the application.
short press is less than 200 ms
medium press is between 200 and 500 ms
long press is between 500 and 1000 ms
extra long press is greater than 1000 ms
- Button 2 short press: Toggle PHY
- Button 1 short press: On/Off advertising
- Button 1 medium press: Cycle through the connection index
- Button 1 long press: Clear all bonding info
- Button 1 extra long press: Add RPAO characteristic to GAP service -- needed only when DM Privacy enabled
- Button 2 extra long press: Enable device privacy -- start generating local RPAs every 15 minutes