不好意思久等了,在PYNQ中想用蓝牙的话,首先一种方法可以用USB BLUETOOTH ADAPTER,
如果是内置有蓝牙,我看你的是V2.5的镜像,如果是官方的开发板,我记得是可以直接用蓝牙的
如果用hcitool 检测不到device,可以尝试用下面的指令试一试
# Do this only once:
echo BT_POWER_UP > /dev/wilc_bt
echo BT_DOWNLOAD_FW > /dev/wilc_bt
stty -F /dev/ttyPS1 115200
# Initialize the device:
hciattach /dev/ttyPS1 -t 10 any 115200 noflow nosleep
sleep 1s
hciconfig hci0 up
hciconfig hci0
Final command output:
hci0: Type: Primary Bus: UART
BD Address: F3:e0:33:C4:22:2F ACL MTU: 27:30 SCO MTU: 0:0
UP RUNNING
RX bytes:240 acl:0 sco:0 events:16 errors:0
TX bytes:84 acl:0 sco:0 commands:17 errors:0
Related dmesg output:
[ 78.375059] at_pwr_dev: open()
[ 78.378216] AT PWR: bt_power_up
[ 78.378232] wilc_sdio mmc1:0001:1: SDIO speed: 50000000
[ 78.378510] wilc_sdio mmc1:0001:1: chipid 003000d0
[ 78.378514] WILC POWER UP
[ 78.381171] at_pwr_dev: close()
[ 78.382436] at_pwr_dev: open()
[ 78.385548] AT PWR: bt_download_fw
[ 78.385552] Bluetooth firmware: mchp/wilc3000_ble_firmware.bin
[ 78.402123] Downloading BT firmware size = 58184 ...
[ 78.557697] Starting BT firmware
[ 78.663974] BT Start Succeeded
[ 78.664212] at_pwr_dev: close()
希望对您有帮助!
-------------------------------------------------------------------------
Don't forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------