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

Connect to NRF52832(Central Mode) from Android(Phone Pheripheral).

Dev Env 

- SDK: v12.1, SoftDevice : S132 v3.0.0

- NRF52 start program : ble_app_uart_c

1. Is it possible to connect to NRF52832(Central Mode) from Android(Phone Pheripheral)? We've been trying for this for a while, and still cannot get it work.

2. While debugging,  we found that "Service Discovery" process causes an error. It seems like it fails to find CCCD Handle and returns error.

Below is the screen capture of debugger. 

Parents
  • Hi,

    Yes, it is possible to connect a nRF52832 central to an Android phone peripheral. How do you advertise with your phone? 

    You need an app that actually tells the smart phone to advertise. Only when the smart phone advertises the central device will be able to discover it. You can do this by using our nRF Connect app. Go to "Advertiser" then add a advertiser with the Nordic UART service. Since the ble_app_uart_c example search for the Nordic UART service, they will automatically connect when discovered. 

    Have you modified anything in the ble_app_uart_c example?

  • Here is the whole procedure. 

    1. Android Phone(phone peripheral) advertise.

    2. nRF52832 get the advertise signal and connect to phone pheripheral - we can get the connection callback from android phone. 

    3. nRF52832 sends the data(just 4bytes string type) through the connection, but we don't get any from the connection at android phone. 

    Still cannot figure out why it isn't sending any data.

Reply
  • Here is the whole procedure. 

    1. Android Phone(phone peripheral) advertise.

    2. nRF52832 get the advertise signal and connect to phone pheripheral - we can get the connection callback from android phone. 

    3. nRF52832 sends the data(just 4bytes string type) through the connection, but we don't get any from the connection at android phone. 

    Still cannot figure out why it isn't sending any data.

Children
No Data
Related