0

nrf52 samsung connection [closed]

apuret gravatar image

asked 2017-01-11 18:24:29 +0100

Hello !

I experiment connection problems on a nRF52 board with a Samsung J3 (Android 5.1).

To sort out this problem, I made some tests with the nRF52-DK (PCA10040), the Heart Rate Sensor example (ble_app_hrs) and the nRF Connect application. Here are the results:

  • with the SDK 11, S132-SD-v2.0.1, the connection fail after timeout with GATT ERROR (0x85);
  • with the SDK 12, S132-SD-v3.0.0, the connection fail after timeout with GATT INTERNAL ERROR (0x81) but the discovering step was initiated (without success);
  • with the SDK 12, S132-SD-v3.1.0, the result is the same than with SDK 12, S132-SD-v3.0.0;
  • with the SDK 13 (alpha), S132-SD-v5.0.0-1 (alpha), the result is the same than with SDK 12, S132-SD-v3.0.0.

I check the Heart Rate Sensor example with success with:

  • a Samsung Galaxy S3 (Android 5.1.1),
  • a Nexus 5 (Android 6.0.1)
  • a Nexus 6P (Android 7.1.1).

I have an older project with an nRF51, SDK 8.1, S130-SD-v1.0.0 and the Samsung J3 can connect the device without problem !

I see some posts about Samsung (J1) connections problem but no one corresponds to my problem. Did you know about this regression? Does it have a solution?

I can make (almost) any test to help finding the solution!

Thanks for you help.

edit retag flag offensive reopen delete report spam

Closed as "the question is answered, right answer was accepted" by apuret at 2017-01-16 16:00:24 +0100

1 answer

Sort by » oldest newest most voted
0
hungbui gravatar image

answered 2017-01-12 11:15:44 +0100

Hi Apuret,

Could you try to capture a sniffer trace ?

The new compatibility mode on the S132v3.1.0 is only enabled after you call sd_ble_opt_set() with BLE_GAP_OPT_COMPAT_MODE_2 ID and mode_2_enable = 1. Please check the ble_gap.h header in S132v3.1.0.

edit flag offensive delete publish link more

Comments

Ah ok, I miss the BLE_GAP_OPT_COMPAT_MODE_2. I will try that right now.

If I was unsuccessful, I will capture a sniffer trace (which I have COM connection problem too!).

apuret ( 2017-01-12 14:13:03 +0100 )editconvert to answer

I use the compatibility mode on the S132v3.1.0 with success on the Heart Rate Sensor example. I will validate your answer after the correction of my real project.

Thanks!

apuret ( 2017-01-12 16:53:42 +0100 )editconvert to answer

User menu

    or sign up

Recent blog posts

Question Tools

2 followers

Stats

Asked: 2017-01-11 18:24:29 +0100

Seen: 47 times

Last updated: jan. 12