我有一个这样连接的 BLE113 芯片:
http://i.stack.imgur.com/bWj57.jpg
我已经测量了通过电线的电压,以确保电源进入 BLE113 板,并且 3.3V 的恒定输入是(这是需要的)。
我使用 Bluegiga 网站上的 BGDemo 项目和http://edisonthk.wordpress.com/2014/01/18/getting-started-with-developing-bluetooth-4-0-le-and-android刷新了芯片-with-ble112-蓝牙模块/
bgdemo 脚本:
dim addr(6)
# Boot Event listener
event system_boot(major ,minor ,patch ,build ,ll_version ,protocol_version ,hw )
#Get local BT address
call system_address_get( )(addr(0:6))
# Write BT address to DI service serial number string
call attributes_write(xgatt_dis_2a25,0,6,addr(0:5))
#set to advertising mode
call gap_set_mode(gap_general_discoverable,gap_undirected_connectable)
#set bondable mode
call sm_set_bondable_mode(1)
end
# Disconnection event listener
event connection_disconnected(handle,result)
#connection disconnected, continue advertising
call gap_set_mode(gap_general_discoverable,gap_undirected_connectable)
end
通过 bgbuild 没有出现错误。我将芯片标记为可发现和可连接,但我的蓝牙设备都没有发现芯片,为什么?