0

Itsybitsy nrf52840 express - can't find all devices
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Itsybitsy nrf52840 express - can't find all devices

by Leonti on Sat Feb 20, 2021 3:39 am

Hi!

I'm trying to scan for all devices in my room, but I can't find some of them: my Bluetooth keyboard (Keychron K1) and my phone (Pixel 4a).

I'm using a simpletest.py example from https://github.com/adafruit/Adafruit_Ci ... pletest.py:

Code: Select all | TOGGLE FULL SIZE
from adafruit_ble import BLERadio

ble = BLERadio()
print("scanning")
found = set()
scan_responses = set()
for advertisement in ble.start_scan():
    addr = advertisement.address
    if advertisement.scan_response and addr not in scan_responses:
        scan_responses.add(addr)
    elif not advertisement.scan_response and addr not in found:
        found.add(addr)
    else:
        continue
    print(addr, advertisement)
    print("\t" + repr(advertisement))
    print()

print("scan done")


I see a list of devices from other apartments and also when I turn on my Bluetooth headset it also appears on the list.
However, my keyboard and my phone don't.

They are both advertising (I can see them with my USB Bluetooth dongle on my PC), but I can't see them with `ble.start_scan()`

Am I missing some setup that makes them be ignored?

Cheers!

Leonti
 
Posts: 3
Joined: Mon Feb 01, 2021 2:33 am

Re: Itsybitsy nrf52840 express - can't find all devices

by Leonti on Mon Feb 22, 2021 2:31 am

I downloaded nRF Connect app on my Android phone and tried doing a scan and I can't see my keyboard either.
But my phone and 2 other devices (PC and Macbook) can see that keyboard just fine.

Is there something I'm missing about how Bluetooth works?
If my keyboard is in advertising mode, shouldn't I be able to see it with nRF Connect and nRF52840 as well?

Leonti
 
Posts: 3
Joined: Mon Feb 01, 2021 2:33 am

Please be positive and constructive with your questions and comments.