Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitbfde2ab

Browse files
ABOSTMfpistm
authored andcommitted
fix: HCI only Firmware not supporting ACI_GAP_INIT ACI_GATT_INIT
On STM32WB, Cube FW version 1.14.1,messages ACI_GATT_INIT and ACI_GAP_INITare not available on HCI only BLE firmware(stm32wb5x_BLE_HCILayer_fw.bin)This imply to move Random Address to host instead of relying on controllerSigned-off-by: Alexandre Bourdiol <alexandre.bourdiol@st.com>
1 parent3a4242d commitbfde2ab

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

‎src/local/BLELocalDevice.cpp‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,20 @@ int BLELocalDevice::begin()
124124
return0;
125125
}
126126

127+
uint8_t randomNumber[8];
128+
if (HCI.leRand(randomNumber) !=0) {
129+
end();
130+
return0;
131+
}
132+
/* Random address only requires 6 bytes (48 bits)
133+
* Force both MSB bits to b00 in order to define Static Random Address
134+
*/
135+
randomNumber[5] |=0xC0;
136+
if (HCI.leSetRandomAddress((uint8_t*)randomNumber) !=0) {
137+
end();
138+
return0;
139+
}
140+
127141
uint8_t hciVer;
128142
uint16_t hciRev;
129143
uint8_t lmpVer;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp