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

Android Phone can pair with Bluetooth device but App can't establish connection or communicate

Hello,

I recently bought a nRF52840 with the intention of using it as a substitute for UART wired communication. What I want to do is send and receive messages between my phone and another board (called Sparkfun ZED-F9P) through the nRF52840. The phone is Android and will be running an already existing app (Lefebure NTRIP for Android) for sending GPS messages to the ZED, and both of them know how to communicate with one another because they expect the same protocol (RTCM), so I'm all set there. I have been able to run the "Peripheral UART" Sample (github.com/.../main.c) and get it working with nRF Connect App, but when I tried to use the example code for my application, the Lefebure NTRIP app could not establish a connection to the nRF52840 even after I paired it with my phone. This app definitely works because I've tested it with another setup which also included using Bluetooth. What should I do?

Thanks!

Parents
  • Hello,

    the Lefebure NTRIP app could not establish a connection to the nRF52840 even after I paired it with my phone.

    Could you elaborate what you mean here; is the peripheral connected / paired with the phone successfully, but the active connection does not show up in your Lefebure NTRIP application, is this what you mean?

    I have been able to run the "Peripheral UART" Sample (github.com/.../main.c) and get it working with nRF Connect App, but when I tried to use the example code for my application, the Lefebure NTRIP app could not establish a connection to the nRF52840 even after I paired it with my phone.

    I am not familiar with the Lefebure NTRIP android application - does it know which service to look for in the connected peripheral; have you configured it to use the Nordic UART service?
    It will need to read and write using the Nordic UART service. 
    If you look at the available services on the peripheral when connected to the nRF Connect App then you may see the details of the available services.

    Best regards,
    Karl

Reply
  • Hello,

    the Lefebure NTRIP app could not establish a connection to the nRF52840 even after I paired it with my phone.

    Could you elaborate what you mean here; is the peripheral connected / paired with the phone successfully, but the active connection does not show up in your Lefebure NTRIP application, is this what you mean?

    I have been able to run the "Peripheral UART" Sample (github.com/.../main.c) and get it working with nRF Connect App, but when I tried to use the example code for my application, the Lefebure NTRIP app could not establish a connection to the nRF52840 even after I paired it with my phone.

    I am not familiar with the Lefebure NTRIP android application - does it know which service to look for in the connected peripheral; have you configured it to use the Nordic UART service?
    It will need to read and write using the Nordic UART service. 
    If you look at the available services on the peripheral when connected to the nRF Connect App then you may see the details of the available services.

    Best regards,
    Karl

Children
  • Hello Karl,

    Thanks for the fast reply, and sorry for the delay. After researching more on this I found out that the bluetooth modules people generally use with the app I talked about are Bluetooth Classic, and not BLE. Because my module can be seen and interacted with by many apps which support BLE, I'm almost certain that the app I'm trying to use does not. I believe that's the problem. I've also found out here on the forums that the Nordic nRF52840 cannot run in Serial Port Profile, because the hardware of BLE devices is fundamentally different from Classic. I've reached the conclusion that I will have to buy another device for this application, I'm pretty sure that will solve my problem.

    Anyway, thanks for the support!

    Matheus

Related