hi,dear nxp engineer
i am using a kw36 freedom board. running the SDK 2.2.0 example wireless_uart. use this demo and test with kinetis toolbox it indeed can send/receive the context. i have only one kw36 board if i want to set one as central the other as peripheral. it is not available.
so i want to use some ble tools running on phone. like NRF connect to finished the dual-mode test. when i use nrf connect as a advertiser the kw36 switch to central. how can i make some change of the wireless_uart demo to support this. even i switch kw36 as advertiser the "nrf connect " initiate scan and connect it can not set up connect either.
i comment out the if-condition line as below:
Serial_Print(gAppSerMgrIf, "\n\r Enter event gDeviceScanned_c...\n\r", gAllowToBlock_d);
//if (BleApp_CheckScanEvent(&pScanningEvent->eventData.scannedDevice)) //remove the check condition by yx
gConnReqParams.peerAddressType = pScanningEvent->eventData.scannedDevice.addressType;
it seems to be no effect. would you please give some idea how to make some change to use this demo to support connection with other third party ble app tool (nrf connect or ble scanner) thanks a lot.
Hi Xiao, I hope you're doing well!
If only the if statement was deleted, then the code inside of the curly braces will always be executed.
The disconnection from the device is triggered when the service discovery for the wireless uart service fails. The function called is:
In the mAppServiceDisc_c event of the BleApp_StateMachineHandler function in the wireless_uart.c source file.
Please let me know if you need any more information.