
现在是这样的,首先我手上拥有USB_Dongle+Nucleo Board以及自己设计的开发板(和USB_Dongle兼容),现在想使用USB_Dongle作为P2P_Client,其他两块板子分别为Sever1和Sever2。目前只能实现Client与其中任意一块链接,但不能实现多机的链接。 app_conf.h中配置如下, define CFG_MAX_CONNECTION 2define CFG_DEV_ID_P2P_SERVER1 (0x83)define CFG_DEV_ID_P2P_SERVER2 (0x84)app_ble.c如下: if (adlength >= 7 && adv_report_data[k + 2] == 0x01) { / ST VERSION ID 01 / APP_DBG_MSG("--- ST MANUFACTURER ID --- \n"); switch (adv_report_data[k + 3]) { / Demo ID / case CFG_DEV_ID_P2P_SERVER1: / End Device 1 / APP_DBG_MSG("-- SERVER DETECTED -- VIA MAN ID\n"); BleApplicationContext.DeviceServerFound = 0x01; SERVER_REMOTE_BDADDR[0] = le_advertising_event->Advertising_Report[0].Address[0]; SERVER_REMOTE_BDADDR[1] = le_advertising_event->Advertising_Report[0].Address[1]; SERVER_REMOTE_BDADDR[2] = le_advertising_event->Advertising_Report[0].Address[2]; SERVER_REMOTE_BDADDR[3] = le_advertising_event->Advertising_Report[0].Address[3]; SERVER_REMOTE_BDADDR[4] = le_advertising_event->Advertising_Report[0].Address[4]; SERVER_REMOTE_BDADDR[5] = le_advertising_event->Advertising_Report[0].Address[5]; break; case CFG_DEV_ID_P2P_SERVER2: / End Device 2 / APP_DBG_MSG("-- SERVER DETECTED -- VIA MAN ID\n"); BleApplicationContext.DeviceServerFound = 0x02; SERVER_REMOTE_BDADDR[0] = le_advertising_event->Advertising_Report[0].Address[0]; SERVER_REMOTE_BDADDR[1] = le_advertising_event->Advertising_Report[0].Address[1]; SERVER_REMOTE_BDADDR[2] = le_advertising_event->Advertising_Report[0].Address[2]; SERVER_REMOTE_BDADDR[3] = le_advertising_event->Advertising_Report[0].Address[3]; SERVER_REMOTE_BDADDR[4] = le_advertising_event->Advertising_Report[0].Address[4]; SERVER_REMOTE_BDADDR[5] = le_advertising_event->Advertising_Report[0].Address[5]; break; default: break; } |
CubeMX配置STM32WBA55在utilities里选项ADV_trace具体功能体现在哪里?
使用CubeMX配置STM32WBA55CG为什么中间件freertos被替换为了 Xcube freertos 它与非无线系列MCU的freertos有什么区别?
stm32旗舰店 天猫旗舰店是没有了吗?
nucleo-wb05kz开发板BLE问题
STM32WB55 USB dongle FUS 0.0.0问题
STM32WB55RG使用USB ST-LINK连接电脑显示未知USB设备,更新驱动后也没有变化,这大概是哪里的问题?
关于意法半导体BLE AOA测向定位的问题
NUCLEO-WBA55CG debug的Serial忘记配置,请教boot模式怎么切换
STM32WB55客户端应用接收的特征长度为什么更改无效呢?
STM32WBA55CG使用spi驱动ST7789 LCD
。