- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Built and flashed WiCED demo "BLE WiFi Introducer" App, built the peer-app for iOS as well. During first attempt, the board was immediately able to connect to my iPhone's Home WiFi. I wanted to test it for reliability and flashed the FW again on board. On consequent attempt, the iPhone still connects to the board, however right after stopping the advertising the Connection goes down with reason "HCI_ERR_CONN_CAUSE_LOCAL_HOST"
Succesful Log:
Starting WICED vWiced_006.002.001.0002
Platform MurataType1LD initialised
Started ThreadX v5.8
Initialising NetX_Duo v5.10_sp3
Creating Packet pools
WLAN MAC Address : 12:34:56:78:90:AB
WLAN Firmware : wl0: Apr 30 2018 04:14:19 version 7.45.98.50 (r688715 CY) FWID 01-283fcdb9
WLAN CLM : API: 12.2 Data: 9.10.39 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2018-04-11 22:31:21
WiFi Introducer Sensor Start
Joining : Playground Visitors
Starting WICED vWiced_006.002.001.0002
Platform MurataType1LD initialised
Started ThreadX v5.8
Initialising NetX_Duo v5.10_sp3
Creating Packet pools
WLAN MAC Address : 12:34:56:78:90:AB
WLAN Firmware : wl0: Apr 30 2018 04:14:19 version 7.45.98.50 (r688715 CY) FWID 01-283fcdb9
WLAN CLM : API: 12.2 Data: 9.10.39 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2018-04-11 22:31:21
WiFi Introducer Sensor Start
Joining : Playground Visitors
Failed to join : Playground Visitors
Joining : Playground Visitors
Failed to join : Playground Visitors
Joining : Playground Visitors
Failed to join : Playground Visitors
00:00:22.740000 GKI_create_task func=0x801d0c1 id=1 name=BTU stack=0x0 stackSize=4096
00:00:22.748000 GKI_create_task func=0x801e889 id=0 name=HCISU stack=0x0 stackSize=3072
wifi_introducer_bt_management_callback: 15
[WiFi Introducer] Unhandled Bluetooth Stack Callback event :21
wifi_introducer_bt_management_callback: 0
> wifi_introducer_gatt_server_init
wiced_bt_gatt_register: 0
wiced_bt_gatt_db_init 0
wiced_bt_ble_set_advertisement_data 0
[WiFi Introducer] wifi_introducer_load_key_to_addr_resolution_db
[WiFi Introducer] reading DCT
wiced_bt_dev_add_device_to_address_resolution_db . result = 0
wifi_introducer_bt_management_callback: 17
Advertisement State Change: 3
wiced_bt_start_advertisements 0
wifi_introducer_bt_management_callback: 21
[WiFi Introducer] Unhandled Bluetooth Stack Callback event :33
wifi_introducer_bt_management_callback: 13
[WiFi Introducer] Paired Device Link Keys Request Event
[WiFi Introducer] wifi_introducer_read_link_keys
Key retrieval success
wifi_introducer_bt_management_callback: c
[WiFi Introducer] Unhandled Bluetooth Stack Callback event :12
wifi_introducer_conn_up id:2
wifi_introducer_conn_up connected to [7F:03:EA:BE:4D:09]
wifi_introducer_bt_management_callback: 17
Advertisement State Change: 0
ADV stop
Stopping Advertisements0
wifi_introducer_gatt_server_request_handler. conn 2, type 5
req_mtu: 185
wifi_introducer_gatt_server_request_handler. conn 2, type 2
write_handler: conn_id:2 hdl:0x2b prep:0 offset:0 len:2
wifi_introducer_hostinfo.characteristic_client_configuration = 1
wifi_introducer_gatt_server_request_handler. conn 2, type 1
read_hndlr conn_id:2 hdl:2d offset:0 len:1
wifi_introducer_bt_management_callback: 21
[WiFi Introducer] Unhandled Bluetooth Stack Callback event :33
wifi_introducer_gatt_server_request_handler. conn 2, type 2
write_handler: conn_id:2 hdl:0x2d prep:0 offset:0 len:8
wifi_introducer_gatt_server_request_handler. conn 2, type 1
read_hndlr conn_id:2 hdl:2f offset:0 len:22
wifi_introducer_bt_management_callback: 21
[WiFi Introducer] Unhandled Bluetooth Stack Callback event :33
wifi_introducer_gatt_server_request_handler. conn 2, type 1
read_hndlr conn_id:2 hdl:2f offset:0 len:22
wifi_introducer_gatt_server_request_handler. conn 2, type 2
write_handler: conn_id:2 hdl:0x2f prep:0 offset:0 len:19
wifi_introducer_gatt_server_write_request_handler:ssid value: Playground Visitors
wifi_introducer_gatt_server_request_handler. conn 2, type 1
read_hndlr conn_id:2 hdl:2f offset:0 len:22
wifi_introducer_gatt_server_request_handler. conn 2, type 2
write_handler: conn_id:2 hdl:0x2f prep:0 offset:0 len:19
wifi_introducer_gatt_server_write_request_handler:ssid value: Playground Visitors
wifi_introducer_gatt_server_request_handler. conn 2, type 1
read_hndlr conn_id:2 hdl:31 offset:0 len:22
wifi_introducer_bt_management_callback: 21
[WiFi Introducer] Unhandled Bluetooth Stack Callback event :33
wifi_introducer_gatt_server_request_handler. conn 2, type 1
read_hndlr conn_id:2 hdl:31 offset:0 len:22
wifi_introducer_gatt_server_request_handler. conn 2, type 2
write_handler: conn_id:2 hdl:0x31 prep:0 offset:0 len:0
wifi_introducer_gatt_server_write_request_handler:wifi_introducer_char_nw_passphrase_value value:
SSID configured
Infra A8:BD:27:DE:FE:40 -59 288.8 1 Open Playground Visitors US PROBE
Joining : Playground Visitors
wifi_introducer_bt_management_callback: 21
[WiFi Introducer] Unhandled Bluetooth Stack Callback event :33
Successfully joined : Playground Visitors
Obtaining IPv4 address via DHCP
DHCP CLIENT hostname WICED IP
wifi_introducer_gatt_server_request_handler. conn 2, type 1
read_hndlr conn_id:2 hdl:16 offset:0 len:7
wifi_introducer_bt_management_callback: 21
[WiFi Introducer] Unhandled Bluetooth Stack Callback event :33
IPv4 network ready IP: 10.253.0.63
Setting IPv6 link-local address
IPv6 network ready IP: FE80:0000:0000:0000:1034:56FF:FE78:90AB
Join Succeeded!!!
Failure Log:
Starting WICED vWiced_006.002.001.0002
Platform MurataType1LD initialised
Started ThreadX v5.8
Initialising NetX_Duo v5.10_sp3
Creating Packet pools
WLAN MAC Address : 12:34:56:78:90:AB
WLAN Firmware : wl0: Apr 30 2018 04:14:19 version 7.45.98.50 (r688715 CY) FWID 01-283fcdb9
WLAN CLM : API: 12.2 Data: 9.10.39 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2018-04-11 22:31:21
WiFi Introducer Sensor Start
Joining : YOUR_AP_SSID
Failed to join : YOUR_AP_SSID
Joining : YOUR_AP_SSID
Failed to join : YOUR_AP_SSID
Joining : YOUR_AP_SSID
Failed to join : YOUR_AP_SSID
00:00:22.746000 GKI_create_task func=0x801d0b9 id=1 name=BTU stack=0x0 stackSize=4096
00:00:22.755000 GKI_create_task func=0x801e881 id=0 name=HCISU stack=0x0 stackSize=3072
wifi_introducer_bt_management_callback: 15
[WiFi Introducer] Unhandled Bluetooth Stack Callback event :21
wifi_introducer_bt_management_callback: 0
> wifi_introducer_gatt_server_init
wiced_bt_gatt_register: 0
wiced_bt_gatt_db_init 0
wiced_bt_ble_set_advertisement_data 0
[WiFi Introducer] wifi_introducer_load_key_to_addr_resolution_db
[WiFi Introducer] reading DCT
wiced_bt_dev_add_device_to_address_resolution_db . result = 0
wifi_introducer_bt_management_callback: 17
Advertisement State Change: 3
wiced_bt_start_advertisements 0
wifi_introducer_bt_management_callback: 21
[WiFi Introducer] Unhandled Bluetooth Stack Callback event :33
wifi_introducer_bt_management_callback: 13
[WiFi Introducer] Paired Device Link Keys Request Event
[WiFi Introducer] wifi_introducer_read_link_keys
Key retrieval success
wifi_introducer_conn_up id:2
wifi_introducer_conn_up connected to [49:1E:FE:BF:79:B4]
wifi_introducer_bt_management_callback: 17
Advertisement State Change: 0
ADV stop conn_id 2
Stopping Advertisements0
wifi_introducer_bt_management_callback: c
[WiFi Introducer] Unhandled Bluetooth Stack Callback event :12
connection_down conn_id:2 reason:61
wifi_introducer_bt_management_callback: 17
Advertisement State Change: 4
wiced_bt_start_advertisements 0
wifi_introducer_bt_management_callback: 21
[WiFi Introducer] Unhandled Bluetooth Stack Callback event :33
wifi_introducer_conn_up id:2
wifi_introducer_conn_up connected to [49:1E:FE:BF:79:B4]
wifi_introducer_bt_management_callback: 17
Advertisement State Change: 0
ADV stop conn_id 2
Stopping Advertisements0
wifi_introducer_bt_management_callback: c
[WiFi Introducer] Unhandled Bluetooth Stack Callback event :12
connection_down conn_id:2 reason:61
Solved! Go to Solution.
- Labels:
-
WICED Studio
-
Wifi+Bluetooth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Resolved it by "forgetting" the WiFiInt BLE device from iPhone BT settings menu. Afterwords the device pairs and gets onto the WiFi. For public WiFi ensure that you disconnect your iPhone from WiFi and reconnect before sharing credentials with WiCED device.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Resolved it by "forgetting" the WiFiInt BLE device from iPhone BT settings menu. Afterwords the device pairs and gets onto the WiFi. For public WiFi ensure that you disconnect your iPhone from WiFi and reconnect before sharing credentials with WiCED device.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content