Hi, @zb2020
Can you please let me know your kernel version and Wi-Fi/Bluetooth Driver and FW version?
I checked our RN, currently in the latest release FW, it already supported Bluetooth LE Extended Advertisement.
Below is the latest FW download link in case you need, I paste it as below:
https://github.com/nxp-imx/imx-firmware/tree/lf-6.18.2_1.0.0/FwImage_9098_PCIE
And here is the latest release's Release Note link for your reference:
https://github.com/nxp-imx/mwifiex/blob/doc_WCT_release/doc/Release_Notes/Linux_RN/topics/bluetooth....
Usually, the FW is located in: /vendor/firmware/pcieuart9098_combo_v1.bin
If you want to update FW, please firstly remember to back up your original one.
Then copy from above link to FW directory to replace it.
I also tested it on our another chipset with latest FW release on Linux kernel L6.12.49 OS.
It can work as expected.
I share my script and also the btmon logs for your reference.
If still have any problem, please do not hesitate to let me know.
Script:
root@imx93evk:~# cat Enable_LE_Extend_Adv.sh
#LE Set Event Mask
hcitool -i hci0 cmd 0x08 0x0001 ff ff 0f 00 00 00 00 00
#LE Set Advertising disable
hcitool -i hci0 cmd 0x08 0x0039 00 00
#LE Set Extended Advertising parameters
hcitool -i hci0 cmd 0x08 0x0036 01 13 00 20 00 00 20 00 00 07 03 00 00 00 00 00 00 00 00 7f 01 00 01 00 00
#LE Set Advertising Random Address
hcitool -i hci0 cmd 0x08 0x0035 01 AA BB CC DD FF EE
#LE Set Extended Advertising Data
hcitool -i hci0 cmd 0x08 0x0037 01 03 00 1a 02 01 09 16 ff 3a 00 c0 ac 28 70 21 93 91 e9 a0 80 2f 4e 4d 8b df 5a 25 16 b0
#LE Set Extended Scan Response data
hcitool -i hci0 cmd 0x08 0x0038 01 03 00 00
#LE Set Advertising enable
hcitool -i hci0 cmd 0x08 0x0039 01 01 01 00 00 00
btmon logs:
root@imx93evk:~# btmon
Bluetooth monitor ver 5.79
btmon[822]: = Note: Linux version 6.12.49-lts-next-gdf24f9428e38 (aarch64) 0.069678
btmon[822]: = Note: Bluetooth subsystem version 2.22 0.069686
= New Index: FC:84:A7:51:87:FD (Primary,UART,hci0) [hci0] 0.069688
= Open Index: FC:84:A7:51:87:FD [hci0] 0.069689
= Index Info: FC:84:A7:51:87:FD (NXP Semiconductors (formerly Philips Semiconductors)) [hci0] 0.069690
bluetoothd[619]: @ MGMT Open: bluetoothd (privileged) version 1.23 {0x0001} 0.069693
hcitool[842]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 315.336477
hcitool[842]: @ RAW Close: hcitool {0x0002} 315.336521
hcitool[842]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 315.336561
hcitool[842]: @ RAW Close: hcitool {0x0002} 315.336570
hcitool[842]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} [hci0] 315.336618
hcitool[842]: < HCI Command: LE Set Event Mask (0x08|0x0001) plen 8 #1 [hci0] 315.336835
Mask: 0x00000000000fffff
LE Connection Complete
LE Advertising Report
LE Connection Update Complete
LE Read Remote Used Features Complete
LE Long Term Key Request
LE Remote Connection Parameter Request
LE Data Length Change
LE Read Local P-256 Public Key Complete
LE Generate DHKey Complete
LE Enhanced Connection Complete
LE Direct Advertising Report
LE PHY Update Complete
LE Extended Advertising Report
LE Periodic Advertising Sync Established
LE Periodic Advertising Report
LE Periodic Advertising Sync Lost
LE Extended Scan Timeout
LE Extended Advertising Set Terminated
LE Scan Request Received
LE Channel Selection Algorithm
> HCI Event: Command Complete (0x0e) plen 4 #2 [hci0] 315.358069
LE Set Event Mask (0x08|0x0001) ncmd 1
Status: Success (0x00)
hcitool[842]: @ RAW Close: hcitool {0x0002} [hci0] 315.358218
hcitool[844]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 315.364082
hcitool[844]: @ RAW Close: hcitool {0x0002} 315.364124
hcitool[844]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 315.364163
hcitool[844]: @ RAW Close: hcitool {0x0002} 315.364169
hcitool[844]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} [hci0] 315.364196
hcitool[844]: < HCI Command: LE Set Extended Advertising Enable (0x08|0x0039) plen 2 #3 [hci0] 315.364407
Extended advertising: Disabled (0x00)
Number of sets: Disable all sets (0x00)
> HCI Event: Command Complete (0x0e) plen 4 #4 [hci0] 315.365548
LE Set Extended Advertising Enable (0x08|0x0039) ncmd 1
Status: Success (0x00)
hcitool[844]: @ RAW Close: hcitool {0x0002} [hci0] 315.365689
hcitool[846]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 315.372510
hcitool[846]: @ RAW Close: hcitool {0x0002} 315.372555
hcitool[846]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 315.372609
hcitool[846]: @ RAW Close: hcitool {0x0002} 315.372617
hcitool[846]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} [hci0] 315.372669
hcitool[846]: < HCI Command: LE Set Extended Advertising Parameters (0x08|0x0036) plen 25 #5 [hci0] 315.372906
Handle: 0x01
Properties: 0x0013
Connectable
Scannable
Use legacy advertising PDUs: ADV_IND
Min advertising interval: 20.000 msec (0x0020)
Max advertising interval: 20.000 msec (0x0020)
Channel map: 37, 38, 39 (0x07)
Own address type: Random (0x03)
Peer address type: Public (0x00)
Peer address: 00:00:00:00:00:00 (OUI 00-00-00)
Filter policy: Allow Scan Request from Any, Allow Connect Request from Any (0x00)
TX power: Host has no preference (0x7f)
Primary PHY: LE 1M (0x01)
Secondary max skip: 0x00
Secondary PHY: LE 1M (0x01)
SID: 0x00
Scan request notifications: Disabled (0x00)
> HCI Event: Command Complete (0x0e) plen 5 #6 [hci0] 315.373795
LE Set Extended Advertising Parameters (0x08|0x0036) ncmd 1
Status: Success (0x00)
TX power (selected): 16 dbm (0x10)
hcitool[846]: @ RAW Close: hcitool {0x0002} [hci0] 315.373957
hcitool[848]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 315.380060
hcitool[848]: @ RAW Close: hcitool {0x0002} 315.380101
hcitool[848]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 315.380139
hcitool[848]: @ RAW Close: hcitool {0x0002} 315.380144
hcitool[848]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} [hci0] 315.380181
hcitool[848]: < HCI Command: LE Set Advertising Set Random Address (0x08|0x0035) plen 7 #7 [hci0] 315.380389
Advertising handle: 0x01
Advertising random address: EE:FF:DD:CC:BB:AA (Static)
> HCI Event: Command Complete (0x0e) plen 4 #8 [hci0] 315.381116
LE Set Advertising Set Random Address (0x08|0x0035) ncmd 1
Status: Success (0x00)
hcitool[848]: @ RAW Close: hcitool {0x0002} [hci0] 315.381213
hcitool[850]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 315.387666
hcitool[850]: @ RAW Close: hcitool {0x0002} 315.387704
hcitool[850]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 315.387738
hcitool[850]: @ RAW Close: hcitool {0x0002} 315.387744
hcitool[850]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} [hci0] 315.387784
hcitool[850]: < HCI Command: LE Set Extended Advertising Data (0x08|0x0037) plen 30 #9 [hci0] 315.388012
Handle: 0x01
Operation: Complete extended advertising data (0x03)
Fragment preference: Fragment all (0x00)
Data length: 0x1a
Flags: 0x09
LE Limited Discoverable Mode
Simultaneous LE and BR/EDR (Controller)
Company: Panasonic Corporation (formerly Matsu**bleep**a Electric Industrial Co., Ltd.) (58)
Data[19]: c0ac2870219391e9a0802f4e4d8bdf5a2516b0
> HCI Event: Command Complete (0x0e) plen 4 #10 [hci0] 315.388846
LE Set Extended Advertising Data (0x08|0x0037) ncmd 1
Status: Success (0x00)
hcitool[850]: @ RAW Close: hcitool {0x0002} [hci0] 315.388971
hcitool[852]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 315.395112
hcitool[852]: @ RAW Close: hcitool {0x0002} 315.395153
hcitool[852]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 315.395192
hcitool[852]: @ RAW Close: hcitool {0x0002} 315.395198
hcitool[852]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} [hci0] 315.395225
hcitool[852]: < HCI Command: LE Set Extended Scan Response Data (0x08|0x0038) plen 4 #11 [hci0] 315.395435
Handle: 0x01
Operation: Complete scan response data (0x03)
Fragment preference: Fragment all (0x00)
Data length: 0x00
> HCI Event: Command Complete (0x0e) plen 4 #12 [hci0] 315.396166
LE Set Extended Scan Response Data (0x08|0x0038) ncmd 1
Status: Success (0x00)
hcitool[852]: @ RAW Close: hcitool {0x0002} [hci0] 315.396257
hcitool[854]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 315.402601
hcitool[854]: @ RAW Close: hcitool {0x0002} 315.402648
hcitool[854]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 315.402700
hcitool[854]: @ RAW Close: hcitool {0x0002} 315.402709
hcitool[854]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} [hci0] 315.402747
hcitool[854]: < HCI Command: LE Set Extended Advertising Enable (0x08|0x0039) plen 6 #13 [hci0] 315.403206
Extended advertising: Enabled (0x01)
Number of sets: 1 (0x01)
Entry 0
Handle: 0x01
Duration: 0 ms (0x00)
Max ext adv events: 0
> HCI Event: Command Complete (0x0e) plen 4 #14 [hci0] 315.404208
LE Set Extended Advertising Enable (0x08|0x0039) ncmd 1
Status: Success (0x00)
hcitool[854]: @ RAW Close: hcitool {0x0002} [hci0] 315.404326
hcitool[861]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 364.750590
hcitool[861]: @ RAW Close: hcitool {0x0002} 364.750630
hcitool[861]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 364.750673
hcitool[861]: @ RAW Close: hcitool {0x0002} 364.750681
hcitool[861]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} [hci0] 364.750727
hcitool[861]: < HCI Command: LE Set Event Mask (0x08|0x0001) plen 8 #15 [hci0] 364.750950
Mask: 0x00000000000fffff
LE Connection Complete
LE Advertising Report
LE Connection Update Complete
LE Read Remote Used Features Complete
LE Long Term Key Request
LE Remote Connection Parameter Request
LE Data Length Change
LE Read Local P-256 Public Key Complete
LE Generate DHKey Complete
LE Enhanced Connection Complete
LE Direct Advertising Report
LE PHY Update Complete
LE Extended Advertising Report
LE Periodic Advertising Sync Established
LE Periodic Advertising Report
LE Periodic Advertising Sync Lost
LE Extended Scan Timeout
LE Extended Advertising Set Terminated
LE Scan Request Received
LE Channel Selection Algorithm
> HCI Event: Command Complete (0x0e) plen 4 #16 [hci0] 364.774154
LE Set Event Mask (0x08|0x0001) ncmd 1
Status: Success (0x00)
hcitool[861]: @ RAW Close: hcitool {0x0002} [hci0] 364.774295
hcitool[862]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 364.778573
hcitool[862]: @ RAW Close: hcitool {0x0002} 364.778613
hcitool[862]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 364.778665
hcitool[862]: @ RAW Close: hcitool {0x0002} 364.778673
hcitool[862]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} [hci0] 364.778709
hcitool[862]: < HCI Command: LE Set Extended Advertising Enable (0x08|0x0039) plen 2 #17 [hci0] 364.778933
Extended advertising: Disabled (0x00)
Number of sets: Disable all sets (0x00)
> HCI Event: Command Complete (0x0e) plen 4 #18 [hci0] 364.780102
LE Set Extended Advertising Enable (0x08|0x0039) ncmd 1
Status: Success (0x00)
hcitool[862]: @ RAW Close: hcitool {0x0002} [hci0] 364.780352
hcitool[863]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 364.784974
hcitool[863]: @ RAW Close: hcitool {0x0002} 364.785013
hcitool[863]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 364.785051
hcitool[863]: @ RAW Close: hcitool {0x0002} 364.785057
hcitool[863]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} [hci0] 364.785094
hcitool[863]: < HCI Command: LE Set Extended Advertising Parameters (0x08|0x0036) plen 25 #19 [hci0] 364.785606
Handle: 0x01
Properties: 0x0013
Connectable
Scannable
Use legacy advertising PDUs: ADV_IND
Min advertising interval: 20.000 msec (0x0020)
Max advertising interval: 20.000 msec (0x0020)
Channel map: 37, 38, 39 (0x07)
Own address type: Random (0x03)
Peer address type: Public (0x00)
Peer address: 00:00:00:00:00:00 (OUI 00-00-00)
Filter policy: Allow Scan Request from Any, Allow Connect Request from Any (0x00)
TX power: Host has no preference (0x7f)
Primary PHY: LE 1M (0x01)
Secondary max skip: 0x00
Secondary PHY: LE 1M (0x01)
SID: 0x00
Scan request notifications: Disabled (0x00)
> HCI Event: Command Complete (0x0e) plen 5 #20 [hci0] 364.786576
LE Set Extended Advertising Parameters (0x08|0x0036) ncmd 1
Status: Success (0x00)
TX power (selected): 16 dbm (0x10)
hcitool[863]: @ RAW Close: hcitool {0x0002} [hci0] 364.786695
hcitool[864]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 364.790927
hcitool[864]: @ RAW Close: hcitool {0x0002} 364.790967
hcitool[864]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 364.791000
hcitool[864]: @ RAW Close: hcitool {0x0002} 364.791006
hcitool[864]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} [hci0] 364.791043
hcitool[864]: < HCI Command: LE Set Advertising Set Random Address (0x08|0x0035) plen 7 #21 [hci0] 364.791248
Advertising handle: 0x01
Advertising random address: EE:FF:DD:CC:BB:AA (Static)
> HCI Event: Command Complete (0x0e) plen 4 #22 [hci0] 364.791974
LE Set Advertising Set Random Address (0x08|0x0035) ncmd 1
Status: Success (0x00)
hcitool[864]: @ RAW Close: hcitool {0x0002} [hci0] 364.792064
hcitool[865]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 364.796600
hcitool[865]: @ RAW Close: hcitool {0x0002} 364.796641
hcitool[865]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 364.796681
hcitool[865]: @ RAW Close: hcitool {0x0002} 364.796686
hcitool[865]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} [hci0] 364.796727
hcitool[865]: < HCI Command: LE Set Extended Advertising Data (0x08|0x0037) plen 30 #23 [hci0] 364.796953
Handle: 0x01
Operation: Complete extended advertising data (0x03)
Fragment preference: Fragment all (0x00)
Data length: 0x1a
Flags: 0x09
LE Limited Discoverable Mode
Simultaneous LE and BR/EDR (Controller)
Company: Panasonic Corporation (formerly Matsu**bleep**a Electric Industrial Co., Ltd.) (58)
Data[19]: c0ac2870219391e9a0802f4e4d8bdf5a2516b0
> HCI Event: Command Complete (0x0e) plen 4 #24 [hci0] 364.797821
LE Set Extended Advertising Data (0x08|0x0037) ncmd 1
Status: Success (0x00)
hcitool[865]: @ RAW Close: hcitool {0x0002} [hci0] 364.797939
hcitool[866]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 364.802201
hcitool[866]: @ RAW Close: hcitool {0x0002} 364.802239
hcitool[866]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 364.802279
hcitool[866]: @ RAW Close: hcitool {0x0002} 364.802284
hcitool[866]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} [hci0] 364.802311
hcitool[866]: < HCI Command: LE Set Extended Scan Response Data (0x08|0x0038) plen 4 #25 [hci0] 364.802829
Handle: 0x01
Operation: Complete scan response data (0x03)
Fragment preference: Fragment all (0x00)
Data length: 0x00
> HCI Event: Command Complete (0x0e) plen 4 #26 [hci0] 364.803576
LE Set Extended Scan Response Data (0x08|0x0038) ncmd 1
Status: Success (0x00)
hcitool[866]: @ RAW Close: hcitool {0x0002} [hci0] 364.803719
hcitool[867]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 364.808289
hcitool[867]: @ RAW Close: hcitool {0x0002} 364.808330
hcitool[867]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} 364.808380
hcitool[867]: @ RAW Close: hcitool {0x0002} 364.808389
hcitool[867]: @ RAW Open: hcitool (privileged) version 2.22 {0x0002} [hci0] 364.808425
hcitool[867]: < HCI Command: LE Set Extended Advertising Enable (0x08|0x0039) plen 6 #27 [hci0] 364.808639
Extended advertising: Enabled (0x01)
Number of sets: 1 (0x01)
Entry 0
Handle: 0x01
Duration: 0 ms (0x00)
Max ext adv events: 0
> HCI Event: Command Complete (0x0e) plen 4 #28 [hci0] 364.809696
LE Set Extended Advertising Enable (0x08|0x0039) ncmd 1
Status: Success (0x00)
hcitool[867]: @ RAW Close: hcitool {0x0002} [hci0] 364.809851
Best regards,
Christine.