ble code based on ANCS