TASK_APP: GAPM_START_ADVERTISE_CMD
<>
<>
TASK_GAPC: GAPC_CONNECTION_REQ_IND
TASK_GAPM: GAPM_CMP_EVT (param->operation:
我相信我应该在发送GAPM_START_ADVERTISE_CMD后立即收到GAPM_CMP_EVT。你知道是什么导致了这种行为吗?
我正在使用外部uC配置(GTL SPI),以防这很重要。< / p > < p >感谢任何帮助,< br / > mabraun < / p > < / div > < / div > < / div > < div class =”字段field-name-field-forum-keywords field-type-taxonomy-term-reference field-label-above”> < div class = "字段标签" >关键词:,< / div > < div class = "字段条目" > < div class =”field-item甚至“> < a href = " / resource-keywords / gapm typeof =“skos:概念”属性= " rdfs: label skos:prefLabel" datatype="">GAPM
目前我在按下按钮4秒后开始无定向广告。这个功能很好,但在断电后,我希望它们能自动连接。
自动配对的代码只在Central上实现,还是外设也必须有专门的代码?
我不需要一个安全的连接,或者这个设备是唯一可连接的设备,所以我想要最简单和最有效的方法。
你能给我一个更好的解释这个的例子或注释吗?我需要使用定向副词吗? Or do I have to have a bonded connection to make it work? Do I have to add the central's address to a whitelist?
Thanks.
注释:DA14580_581_583_SDK_3.0.10.1已经被复制到"SDK"文件夹中。
=== Reporter ===
Build SDK\dk_apps\keil_projects\proximity\prox_reporter_ext_usb\Keil_5\prox_reporter_ext_usb。uvprojx在MDK5
调试,[run], exit debug
Run SDK\binaries\host\windows\proximity\reporter\host_proxr_sdk.exe
####################################################
# DA14580 Proximity Reporter demo application #
####################################################
No cmdline arguments.
Enter COM port number (values: 1-65535, blank to exit): 62
Connecting to COM62
COM62 succesfully opened, baud rate 115200
Waiting for DA14580 Device
upgrade_image1.img already exists.
upgrade_image2.img already exists.
OR
####################################################
# DA14580 Proximity Reporter demo application #
####################################################
No cmdline arguments.
Enter COM port number (values: 1-65535, blank to exit): 62
Connecting to COM62
COM62 succesfully opened, baud rate 115200
Waiting for DA14580 Device
upgrade_image1.img header init OK.
upgrade_image2.img header init OK.
=== Monitor ===
Build SDK\dk_apps\keil_projects\proximity\prox_monitor_ext_usb\Keil_5\prox_monitor_ext_usb.uvprojx in MDK5
debug, exit debug
Run SDK\binaries\host\windows\proximity\monitor\host_proxm_sdk.exe
=================================================================
####################################################
# DA1458x Proximity Monitor demo application #
####################################################
# No. bd_addr Name Rssi #
# 1 00:04:3e:08:61:3a Amp'ed Up! -75 dB #
# 2 d0:5f:b8:57:e3:dc Zephyr HXM200012337 -91 dB
#
Select number of device to connect or 'S' to Rescan:
=================================================================
So the monitor is detecting other BLE devices, however not the Reporter.
I am following UM-B-010 and the "PAN1740 Design Guide" Chapter 12 (rev 1.6) which gives a step by step instruction for setting up both ends of Proximity using DA14580.
http://na.industrial.panasonic.com/sites/default/pidsa/files/panasonic_p...
Maybe there is a problem with line // Sleep(100); in app.c of host_proxr_sdk, it is taking 100% of one of my win7x64 CPUs.
Unfortunately, windows.h is missing from SDK\host_apps\windows\proximity\reporter\host_proxr_sdk so I was not able to rebuild in Microsoft Visual Studio 2013 Community.
Any thoughts on how to proceed?
Thanks,
Owen