This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Any more information on the ble_app_ancs project?

I've downloaded the latest SDK and soft device. I've been able to compile the ble_app_ancs project, run it on my dev board and even connect to my iPhone. Although I'm getting assertions when I try to connect after restarting.

There seems to be a Master Control Panel server setup file, ANCS_central.bin, but I couldn't find any information about how to drive that like there if for the Alert Notification Application.

Parents
  • Thanks for the information.

    When I try to connect to the Master Control Panel, I end up with a hard fault.

    Here's the MCP log: [23:50:35.9] BondToDevice() [23:50:36.5] Encryption change: Link encryption is ON [23:50:36.5] SERVER: Received packet <HciEvent: eventCode=0x0B> - <HciEvent: eventCode=0x0B> [23:50:36.5] SERVER: Received Encryption Change Event [23:50:38.2] GetDeviceInfo() [23:50:38.2] Starting a Read Information Request on the whole remote DB [23:50:39.6] Lost connection to device. Reason: BTLE_CONNECTION_TIMEOUT [23:50:39.6] SERVER: Received packet <HciEvent: eventCode=0x0A> - <HciEvent: eventCode=0x0A> [23:50:39.6] SERVER: Received Link Loss [23:50:43.8] Discovering all attribute UUIDs [23:50:43.8] Lost connection before service discovery was complete

    I'm not sure if this issue is coincident with my troubles with bond persistence. If I don't ensure bond_delete is true I get an assertion error.

    It seems to occur during the memcpy in pstorage_load, called from bonding_info_load_from_flash.

Reply
  • Thanks for the information.

    When I try to connect to the Master Control Panel, I end up with a hard fault.

    Here's the MCP log: [23:50:35.9] BondToDevice() [23:50:36.5] Encryption change: Link encryption is ON [23:50:36.5] SERVER: Received packet <HciEvent: eventCode=0x0B> - <HciEvent: eventCode=0x0B> [23:50:36.5] SERVER: Received Encryption Change Event [23:50:38.2] GetDeviceInfo() [23:50:38.2] Starting a Read Information Request on the whole remote DB [23:50:39.6] Lost connection to device. Reason: BTLE_CONNECTION_TIMEOUT [23:50:39.6] SERVER: Received packet <HciEvent: eventCode=0x0A> - <HciEvent: eventCode=0x0A> [23:50:39.6] SERVER: Received Link Loss [23:50:43.8] Discovering all attribute UUIDs [23:50:43.8] Lost connection before service discovery was complete

    I'm not sure if this issue is coincident with my troubles with bond persistence. If I don't ensure bond_delete is true I get an assertion error.

    It seems to occur during the memcpy in pstorage_load, called from bonding_info_load_from_flash.

Children
Related