In the simple_peripheral routine, the device can only broadcast, my requirement is that the device scanning function can also be included in that routine, what should be done?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
In the simple_peripheral routine, the device can only broadcast, my requirement is that the device scanning function can also be included in that routine, what should be done?
How do I add the scanning function inside the simple_peripheral routine, so I want to add all the functions I want based on the simple_peripheral routine
In the multirole example, I want to switch from broadcast mode to scan mode and actively connect to the app. What should I do?
My device does not have keys, the project does not use two_btn_menu.c, I would like to know how to actively scan and connect peripheral devices?
Hi,
Please refer to the code I have pointed you to and modify it to trigger the operations as supported by your system.
In addition, you may want to review https://dev.ti.com/tirex/content/simplelink_academy_cc13xx_cc26xxsdk_6_40_00_00/modules/ble5stack/ble_scan_adv_basic/ble_scan_adv_basic.html
Best regards,
How do I turn on the scan function in the routine multi_role, because I don't see the associated print in the scan event, the code is shown below?
Hi,
Please refer to
In addition, you can refer to https://dev.ti.com/tirex/content/simplelink_cc13xx_cc26xx_sdk_6_30_00_84/docs/ble5stack/ble_user_guide/html/ble-stack-5.x/gap-cc13xx_cc26xx.html#gap-scanner
Best regards,
I've seen the documentation, the scan call function GapScan_enable(0, DEFAULT_SCAN_DURATION, 0) is enabled in the routine; , the scanning information is displayed in the debugging information, but the scanning stops after the device scans DEFAULT_SCAN_DURATION. Now my requirement is for him to scan all the time, only to stop after calling GapScan_disable. I try to restart scanning GapScan_enable(0, DEFAULT_SCAN_DURATION, 0) after the MR_EVT_SCAN_DISABLED event is entered. But this is not the result I want. If both period and duration are set to 0 in the description of GapScan_enable, continuous scanning is enabled. So I try GapScan_enable(0, 0, 0); But it only lasted for a short time. I turned on the Bluetooth function of the phone, but did not print the mac address of the Bluetooth of the phone, so I think it failed. What's the problem?
I have solved this problem by using GapScan_setParam and setting SCAN_PARAM_FLT_DUP to SCAN_FLT_DUP_DISABLE