Due to high demand expect some shipping delays at this time, orders may not ship for 1-2 business days.
0

Bluetooth Classic
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Bluetooth Classic

by Jayie on Sat Jan 02, 2021 3:11 pm

I have a CLUE board and i'd like to be able to read input from Bluetooth Classic devices like HID Keyboards.
I've run the Bluetooth demos on it, including the one below which scans for all devices but it doesn't pickup my Bluetooth Keyboard which runs Bluetooth Classic (BR/EDR). So, is the CLUE BLE only or is there an additional library that I need to import? My Android phone and Raspberry Pi seems to pair with the keyboard fine, so I guess the keyboard is working ok.

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

ble = BLERadio()
print("scanning")
found = set()
scan_responses = set()
# By providing Advertisement as well we include everything, not just specific advertisements.
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")


Thanks,

Jason.

Jayie
 
Posts: 7
Joined: Thu Dec 31, 2020 7:49 pm

Re: Bluetooth Classic

by mikeysklar on Sun Jan 03, 2021 6:58 pm

Hi Jason,

The CLUE is based on the nRF52840 which is only BLE support not classic.

https://learn.adafruit.com/ble-hid-keyb ... anding-ble

The CLUE can happily do the reverse and send BLE keyboard presses based on switches, but unfortunately needs to interact with BLE devices.

https://learn.adafruit.com/ble-hid-keyb ... rd-buttons

mikeysklar
 
Posts: 4103
Joined: Mon Aug 01, 2016 8:10 pm

Re: Bluetooth Classic

by Jayie on Mon Jan 04, 2021 5:21 pm

Thanks, mikeysklar, I figured as much. I have another nRF52840 so i'll use that to send the keyboard codes.

Jayie
 
Posts: 7
Joined: Thu Dec 31, 2020 7:49 pm

Please be positive and constructive with your questions and comments.