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

Radio interference

Hi all!

Today I run tests in a public place (some Art Design College) and it looks that radio environment, that exists in the place, kills nrf51 completely.... My guess - terrible radio noise. As I could observe, they use Motorola AP8132 or something similar with 6 antennas. Two APs in the room 10x10 m.

As soon as I start scanning (sd_ble_gap_scan_start), beacon hangs. If I implement a watchdog, it is constantly rebooting.

So three questions, if anybody got in same conditions:

  1. Are there any special tuning available inside nrf51 to work around such interference?

  2. What is best scan params (ble_gap_scan_params_t) to avoid hanging the beacon when it scanning?

  3. How can I debug this mess over SWD? (namely, with help of openocd)


I also have to report, that for convenience reasons I use telephone cord wire (4-wire) to power beacons and have a terminal connection with them (up to 10 meters). So, sorry stupid assumption, is there any chance, that these wires can act as a degradation factor of environment for the chip?

Parents
  • Hi,

    First off, does your beacon work properly in other places?

    1. BLE implements channel adaptivity, this means that if it sees interference in any of the 40 radio channels it utilizes it will automatically blacklist that channel and utilize the other available channels. It is very unlikely that you have noise that is blanking the entire band especially if the only source of interference is a WiFi access point. As a side note: if you are interested to see which channels are used by the WiFi in your area you can use an app like Wifi Analyzer.

    2. Scan parameters should not impact wether your device hangs or not.

    3. Be wary of what error codes you are getting when you call sd_ble_gap_scan_start.

    It is unlikely that your telephone cord is an issue, there are some corner cases I can think of where this would be an issue:

    • High power radio transmitters nearby (AM/FM base stations) can cause interference in the cable if it is unshielded
    • Power failure due to breach in cable

    Best regards,

    Øyvind

Reply
  • Hi,

    First off, does your beacon work properly in other places?

    1. BLE implements channel adaptivity, this means that if it sees interference in any of the 40 radio channels it utilizes it will automatically blacklist that channel and utilize the other available channels. It is very unlikely that you have noise that is blanking the entire band especially if the only source of interference is a WiFi access point. As a side note: if you are interested to see which channels are used by the WiFi in your area you can use an app like Wifi Analyzer.

    2. Scan parameters should not impact wether your device hangs or not.

    3. Be wary of what error codes you are getting when you call sd_ble_gap_scan_start.

    It is unlikely that your telephone cord is an issue, there are some corner cases I can think of where this would be an issue:

    • High power radio transmitters nearby (AM/FM base stations) can cause interference in the cable if it is unshielded
    • Power failure due to breach in cable

    Best regards,

    Øyvind

Children
  • Hi Øyvind, Thank you very much for clues! I use RedBearLab's BLE Nano beacons and they function well when I run them with no RF emitters around. When I run tests home, I also observe the same behavior, if the distance to my Wifi AP is about 1-2 meters. I tried to power up beacons by accumulators and it seems that it doesn't help - in same places beacons hang. I also observe stable operation if, although it sounds strange, I wrap the beacon in my fist. As per my software, it first starts ble, then it starts scanning (waiting for commands) with window = 100 and interval = 100. sd_ble_gap_scan_start returns with err_code = 0. What is even stranger, when I powered down all my wifi APs, beacons continue hang in exactly same locations! So, I'm completely lost ((

  • Have you tested any of our example applications in the locations you are having trouble?

  • Hi Øyvind, I checked other apps and they work (of course!)... It was a stupid mistake in my own code, hitting infinite loop when I receive an adv. packet from "foreign" beacon/device. Thank you!

Related