Problem connecting "starter" project to particular Android devices

I have attempted to run the "starter" project on both a Google Nexus 7 tablet, as well as a Nexus 5 phone (Android 6.0.1 for both devices). The app loads onto the device, but the MMC sensor is never recognized. Here is the Logcat output during a scan:

04-17 11:51:32.567 194-624/? D/audio_hw_primary: disable_audio_route: reset and update mixer path: low-latency-playback
04-17 11:51:32.567 194-624/? D/audio_hw_primary: disable_snd_device: snd_device(2: speaker)
04-17 11:51:32.676 194-624/? D/audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2
04-17 11:51:32.678 21633-21633/com.mbientlab.metawear.tutorial.starter D/BluetoothAdapter: STATE_ON
04-17 11:51:32.680 1731-1875/? D/BtGatt.GattService: registerClient() - UUID=bb8ce554-043d-4f0e-9d8a-5f3ca41a9de7
04-17 11:51:32.680 1731-1769/? D/BtGatt.GattService: onClientRegistered() - UUID=bb8ce554-043d-4f0e-9d8a-5f3ca41a9de7, clientIf=5
04-17 11:51:32.681 21633-21644/com.mbientlab.metawear.tutorial.starter D/BluetoothLeScanner: onClientRegistered() - status=0 clientIf=5
04-17 11:51:32.681 1731-1743/? D/BtGatt.GattService: start scan with filters
04-17 11:51:32.683 1731-10328/? D/BtGatt.ScanManager: handling starting scan
04-17 11:51:32.685 1731-10328/? D/BtGatt.ScanManager: configureRegularScanParams() - queue=1
04-17 11:51:32.685 1731-10328/? D/BtGatt.ScanManager: configureRegularScanParams() - ScanSetting Scan mode=0 mLastConfiguredScanSetting=-2147483648
04-17 11:51:32.685 1731-10328/? D/BtGatt.ScanManager: configureRegularScanParams - scanInterval = 8000configureRegularScanParams - scanWindow = 800
04-17 11:51:32.686 1731-1769/? D/BtGatt.GattService: onScanParamSetupCompleted : 0
04-17 11:51:32.688 194-624/? D/audio_hw_primary: select_devices: out_snd_device(2: speaker) in_snd_device(0: none)
04-17 11:51:32.688 194-624/? D/ACDB-LOADER: ACDB -> send_afe_cal
04-17 11:51:32.688 194-624/? D/audio_hw_primary: enable_snd_device: snd_device(2: speaker)
04-17 11:51:32.696 194-624/? D/audio_hw_primary: enable_audio_route: apply and update mixer path: low-latency-playback
04-17 11:51:32.698 1731-10329/? E/bt_osi_alarm: reschedule_root_alarm alarm expiration too close for posix timers, switching to guns
04-17 11:51:32.771 194-624/? D/AudioFlinger: mixer(0xb4180000) throttle end: throttle time(10)
04-17 11:51:33.735 1731-10329/? E/bt_osi_alarm: reschedule_root_alarm alarm expiration too close for posix timers, switching to guns
04-17 11:51:33.745 1731-10329/? E/bt_osi_alarm: reschedule_root_alarm alarm expiration too close for posix timers, switching to guns
04-17 11:51:33.758 1731-10329/? E/bt_osi_alarm: reschedule_root_alarm alarm expiration too close for posix timers, switching to guns
04-17 11:51:34.975 1731-1769/? D/bt_btif_gattc: btif_gattc_update_properties BLE device name=HTC BS A06B2F len=13 dev_type=2
04-17 11:51:35.146 1731-1769/? D/bt_btif_gattc: btif_gattc_update_properties BLE device name=MI Band 2 len=9 dev_type=2
04-17 11:51:35.953 194-624/? D/audio_hw_primary: disable_audio_route: reset and update mixer path: low-latency-playback
04-17 11:51:35.954 194-624/? D/audio_hw_primary: disable_snd_device: snd_device(2: speaker)
04-17 11:51:40.359 1731-1769/? D/bt_btif_gattc: btif_gattc_update_properties BLE device name=HTC BS 525067 len=13 dev_type=2
04-17 11:51:42.688 21633-21633/com.mbientlab.metawear.tutorial.starter D/BluetoothAdapter: STATE_ON
04-17 11:51:42.690 1731-1743/? D/BtGatt.GattService: stopScan() - queue size =1
04-17 11:51:42.691 1731-10328/? D/BtGatt.ScanManager: stop scan
04-17 11:51:42.691 1731-10328/? D/BtGatt.ScanManager: configureRegularScanParams() - queue=0
04-17 11:51:42.692 1731-10328/? D/BtGatt.ScanManager: configureRegularScanParams() - ScanSetting Scan mode=-2147483648 mLastConfiguredScanSetting=0
04-17 11:51:42.692 1731-10328/? D/BtGatt.ScanManager: configureRegularScanParams() - queue emtpy, scan stopped
04-17 11:51:42.699 1731-1875/? D/BtGatt.GattService: unregisterClient() - clientIf=5
04-17 11:51:42.705 1731-10329/? E/bt_osi_alarm: reschedule_root_alarm alarm expiration too close for posix timers, switching to guns
04-17 11:51:43.722 1731-10329/? E/bt_osi_alarm: reschedule_root_alarm alarm expiration too close for posix timers, switching to guns

The strange thing is that it ran on my lab-mate's Samsung device running Android 8. We are considering purchasing an updated tablet if that's what it takes, but it seems strange to me that it shouldn't connect on these older Google devices. If anyone has any tips please let me know.

Comments

  • I have now tested on another lab-mate's Huawei device and it also works. Seems to just be the Google devices that are a problem.

  • edited April 17

    Odd, I have not had issues with the Nexus 5. Can you discover the the devices with the "nRF Connect" app on your Nexus devices?

Sign In or Register to comment.