This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

nRF Connect @ Android: Poor distance even with coded phy s8 (long range)

Hi guys,

I'm researching the maximum direct connection distance between two Android phones for transfering small amount of data - which lead me to BLE Coded PHY S8 as a promising option. As a first test I used your nRF Connect Android app to do some field testing.

But I cannot get any longer distance connection via coded phy to work. After 20 meters I loose the connection. So maybe (hopefully) I'm doing something wrong or coded phy is far away from the 1000m I've read about...

I hope this is the right place to ask. If not please let me know.

Anyhow... here are the details of my test:

Phone 1 (server) is a Nokia 2.3:

I set up a GANTT server (get current time for testing purposes):

And started an advertiser:

Phone 2 (client) is a OnePlus 7 Pro:

Where I've scanned and connected to the Nokia 2.3, and read the PHY which is set to LE Coded:

But once I walk away with the client phone from the server the read/refresh of time fails and the connection gets lost after 20m or so.

The server phone is placed inside at the window sill and I'm walking away outside on the lawn with no obstacles in between.

Things I've tried:

  • Changing the Tx Power Level and the interval of the Advertiser on the server phone
  • Setting S8 "manually" on both phones after the connection was established via:

I have found a couple of threads:

https://devzone.nordicsemi.com/f/nordic-q-a/58496/advertising-phy-coded-s8-long-range-stops-at-nearly-20m-built

https://devzone.nordicsemi.com/f/nordic-q-a/70538/nrf-connect-for-mobile---does-advertiser-functionality-use-s2-or-s8-coding-for-coded-phy

https://devzone.nordicsemi.com/f/nordic-q-a/75226/how-to-set-coded-phy-rate-to-s8-or-s2-using-nrf-connect-sdk

https://devzone.nordicsemi.com/f/nordic-q-a/77411/testing-range-of-ble-coded-phy-with-nrf52833-dk

The last 3 say that S8 is used by default anyhow or are not really helpful...

The first one is exactly my issue! But as far as I can interpret the discusion there I would conclude: It does not really get better than the 20 meter.

Is that true?

Thanks guys

Soko

Parents
  • Hi Soko

    Bluetooth range is affected by many factors, and an issue when trying to predict what kind of range you get when phones is involved is that the radio performance of the phone itself is an unknown factor. 
    Because there is no Nordic hardware involved anywhere in your test it is a bit limited what support we can provide, but I will try to provide some general advice.

    I discussed this with one of our Android experts, and he mentioned that you already reported this on github, so I will let him deal with the nRF Connect related questions. 

    Could you try to replicate this test in normal mode (1M PHY) ?

    It would be interesting to know how the range differs between 1M and CODED. 

    Also, it could be interesting to redo the coded test in an outdoor environment to see if the range might be affected by radio interference (WiFi is the most common cause of interference in the 2.4GHz band). Because coded phy uses longer packets you are more susceptible to be hit by interference in this mode. 

    Best regards
    Torbjørn

Reply
  • Hi Soko

    Bluetooth range is affected by many factors, and an issue when trying to predict what kind of range you get when phones is involved is that the radio performance of the phone itself is an unknown factor. 
    Because there is no Nordic hardware involved anywhere in your test it is a bit limited what support we can provide, but I will try to provide some general advice.

    I discussed this with one of our Android experts, and he mentioned that you already reported this on github, so I will let him deal with the nRF Connect related questions. 

    Could you try to replicate this test in normal mode (1M PHY) ?

    It would be interesting to know how the range differs between 1M and CODED. 

    Also, it could be interesting to redo the coded test in an outdoor environment to see if the range might be affected by radio interference (WiFi is the most common cause of interference in the 2.4GHz band). Because coded phy uses longer packets you are more susceptible to be hit by interference in this mode. 

    Best regards
    Torbjørn

Children
  • Hi Torbjorn,

    I appreciate your help and yes, I've raised an issue on github as I was not sure about the best place for my question...

    My original concern was me using the app the wrong way or not knowing about a setting I have to do to get real CODED PHY... but it seems to be a hardware issue and not on Layer 8 of the ISO/OSI model Slight smile

    I have tried it with normal mode (1M). It does not seem to make a difference. I may be able to do the test again with no wifi nearby... but it will be just out of curiousity as my use-case has wifi in close range for sure.

    So lets how your android expert can help over on github.

    But maybe you can point me into the right direction when swapping both phones for some Nordic hardware:

    I have two Arduino Nano 33 BLE (sense) in my hands but kinda lack of a source code example on how to redo the test with them. So basically putting them into CODED PHY S8.

    Can you help me out here?

    Thanks

    Soko

  • Hi Soko

    I would recommend you read through a tutorial written by one of my colleagues:
    Testing Long Range with Nordic solution

    It goes through the steps involved of testing out coded PHY using 2 nRF52840DK's. 

    It's worth mentioning that the ranges quoted in the tutorial can be hard to achieve in more typical urban environments. As mentioned the range drops significantly if you have WiFi interference in the area, and all 2.4GHz based RF signals are heavily attenuated by things getting in the way of the signal, such as buildings or scenery. 

    Best regards
    Torbjørn

Related