rw612 ble gatt Server paring how to fixed passkey rw612 -> gatt server NoInputNoOutput phone ->gatt client ble paring,how to fixed rw612 passkey (for example 123456,Not a random value),phone input 123456 to pair rw612 Re: rw612 ble gatt Server paring how to fixed passkey Hi @Christine_Li,
Thank you so much for the quick response! The patch you shared worked perfectly, and I’m now able to set the fixed PassKey successfully. Re: rw612 ble gatt Server paring how to fixed passkey Hi, @Siddhesh_Nayak
Thanks for reaching me out.
I will share the patch with you through working email.
And for your information, I already report this issue to our internal SAE team, I think they are evaluating to include the patch in our future release.
Best regards,
Christine. Re: rw612 ble gatt Server paring how to fixed passkey Hi @Christine_Li,
I am upgrading the SDK v25.09.00 from v2.15.00 in our MW.
I have noticed the same where in even If I set the CONFIG_BT_FIXED_PASSKEY and I call bt_passkey_set(FIXED_PASSKEY_VALUE).
the bt_conn_auth_cb.passkey_display callback gives me a random PassKey instead of the Fixed.
This was working perfectly with the SDK version v2.15.00.
Environment Details :
Board used: FRDM-RW612
SDK : v25.09.00
application : Custom Application.
Can you please help me out solve the issue? Re: rw612 ble gatt Server paring how to fixed passkey Hi, @flybir
Thanks for your trying and let me know your result!
Can you please create a new case to track the new issue and mark my answer as a solution for this case?
We always recommend to track one issue with one case, so that we can provide a better reference for future cases.
And for your info, we always deal with the case with different priority level.
If you have a company email, please do not hesitate to create case with your company's email. It might increase the priority of your case.
If you don't have, please ignore my hints. And we will still continue to support you with current priority.
Best regards,
Christine. Re: rw612 ble gatt Server paring how to fixed passkey Hi, @Christine_Li Thanks for the reply, I have tried it and it works,follow the steps you provided,passkey is fiexd to 123456, but a new problem arises: when finish bonding,I try to get Battery Service,it is not work and rw612 shell seems not work. Please take a look at my log to see if there are any problems, thanks for any help. @bt> bt.init
@bt> Bluetooth initialized
Settings Loaded
29224: DEBUG bt_pal_smp.c:9449:LE SC enabled
@bt> bt.advertise on
Advertising started
@bt> bt.auth display
@bt> bt.fixed-passkey 123456
----func: cmd_fixed_passkey, line: 4347-------
@bt> ----func: cmd_fixed_passkey, line: 4368--passkey 123456-----
@bt> BLE Connected: 44:BD:E2:B9:92:FD (random)
58269: DEBUG bt_pal_smp.c:7164:conn 200273BC handle 128
58269: DEBUG bt_pal_smp.c:5436:chan 2002948C cid 0x0006
44:BD:E2:B9:92:FD (random)@bt> LE data len updated: TX (len: 251 time: 2120) RX (len: 27 time: 328)
LE conn param req: int (0x0006, 0x0006) lat 0 to 500
LE PHY updated: TX PHY LE 1M, RX PHY LE 1M
LE conn param updated: int 0x0006 lat 0 to 500
LE conn param req: int (0x0018, 0x0018) lat 0 to 500
LE conn param updated: int 0x0018 lat 0 to 500
LE data len updated: TX (len: 251 time: 2120) RX (len: 27 time: 328)
LE PHY updated: TX PHY LE 2M, RX PHY LE 2M
LE data len updated: TX (len: 251 time: 2120) RX (len: 27 time: 2120)
LE data len updated: TX (len: 251 time: 2120) RX (len: 27 time: 328)
LE data len updated: TX (len: 251 time: 2120) RX (len: 27 time: 2120)
Confirm pairing for 44:BD:E2:B9:92:FD (random)
75262: DEBUG bt_pal_smp.c:9303:event 2
75262: DEBUG bt_pal_smp.c:9321:RX queue put buf 20029708
75262: DEBUG bt_pal_smp.c:8515:SMP event = SMP_AUTHENTICATION_REQUEST, status 0
75262: DEBUG bt_pal_smp.c:8535:conn = 0x200273BC
75262: DEBUG bt_pal_smp.c:8812:Recvd SMP_AUTHENTICATION_REQUEST
75262: DEBUG bt_pal_smp.c:8824:Bonding type : Bonding
44:BD:E2:B9:92:FD (random)@bt> bt.auth-pairing-confirm
44:BD:E2:B9:92:FD (random)@bt> Passkey for 44:BD:E2:B9:92:FD (random): 123456
81122: DEBUG bt_pal_smp.c:9303:event 4
81122: DEBUG bt_pal_smp.c:9321:RX queue put buf 20029708
81122: DEBUG bt_pal_smp.c:8515:SMP event = SMP_PASSKEY_DISPLAY_REQUEST, status 0
81122: DEBUG bt_pal_smp.c:8535:conn = 0x200273BC
81122: DEBUG bt_pal_smp.c:8946:Event : SMP_PASSKEY_DISPLAY_REQUEST
81122: DEBUG bt_pal_smp.c:8947:BD Address : FD 92 B9 E2 BD 44
88372: DEBUG bt_pal_smp.c:9303:event 6
88372: DEBUG bt_pal_smp.c:9321:RX queue put buf 20029708
88373: DEBUG bt_pal_smp.c:8515:SMP event = SMP_KEY_EXCHANGE_INFO_REQUEST, status 0
88373: DEBUG bt_pal_smp.c:8535:conn = 0x200273BC
88373: DEBUG bt_pal_smp.c:8965:Event : SMP_KEY_EXCHANGE_INFO_REQUEST
88373: DEBUG bt_pal_smp.c:8966:BD Address : FD 92 B9 E2 BD 44 Re: rw612 ble gatt Server paring how to fixed passkey Hi, @flybir
Yes, I send it again just now.
Please check your email and let me know whether you received the patch, and whether this patch works on your side.
Best regards,
Christine. Re: rw612 ble gatt Server paring how to fixed passkey Hi, @Christine_Li Thanks for the reply, I did not receive the patch you shared to me by email. Did you send to the yuxi_klrs@163.com ? Re: rw612 ble gatt Server paring how to fixed passkey Hi @flybir
Have you already added the patch I shared to you by email?
If no, please firstly add the patch, then have a try.
Thanks!
From your shared log, I see below:
The passkey doesn't fixed to 123456, it is showing: 047307 is your passkey.
I guess you didn't add my patch shared to you by email.
88617: DEBUG bt_pal_smp.c:8824:Bonding type : Bonding
bt.auth-pairing-confirm
49:7B:58:F5:35:CA (random)@bt> Passkey for 49:7B:58:F5:35:CA (random): 047307
Best regards,
Christine. Re: rw612 ble gatt Server paring how to fixed passkey Hi, @Christine_Li Thanks for the reply, I have tried it and it still didn't work,follow the steps you provided,passkey is still not fiexd to 123456; The FW image I have used provided by the directory: /components/conn_fwloader/fw_bin/rw61x_sb_ble_a2.bin Please take a look at my log to see if there are any problems, thanks for any help. /************************************************ENABLE DEBUG LOG *************************************/
@bt> bt.init
@bt> Bluetooth initialized
Settings Loaded
6065: DEBUG bt_pal_smp.c:9449:LE SC enabled
@bt> bt.advertise on
Advertising started
@bt> bt.auth display
@bt> bt.fixed-passkey 123456
----func: cmd_fixed_passkey, line: 4347-------
@bt> ----func: cmd_fixed_passkey, line: 4368--passkey 123456-----
BLE Connected: 49:7B:58:F5:35:CA (random)
81457: DEBUG bt_pal_smp.c:7164:conn 200273BC handle 128
81457: DEBUG bt_pal_smp.c:5436:chan 2002948C cid 0x0006
49:7B:58:F5:35:CA (random)@bt> LE data len updated: TX (len: 251 time: 2120) RX (len: 27 time: 328)
LE conn param req: int (0x0006, 0x0006) lat 0 to 500
LE PHY updated: TX PHY LE 1M, RX PHY LE 1M
LE data len updated: TX (len: 251 time: 2120) RX (len: 27 time: 328)
LE conn param updated: int 0x0006 lat 0 to 500
LE conn param req: int (0x0018, 0x0018) lat 0 to 500
LE conn param updated: int 0x0018 lat 0 to 500
Confirm pairing for 49:7B:58:F5:35:CA (random)
88617: DEBUG bt_pal_smp.c:9303:event 2
88617: DEBUG bt_pal_smp.c:9321:RX queue put buf 20029708
88617: DEBUG bt_pal_smp.c:8515:SMP event = SMP_AUTHENTICATION_REQUEST, status 0
88617: DEBUG bt_pal_smp.c:8535:conn = 0x200273BC
88617: DEBUG bt_pal_smp.c:8812:Recvd SMP_AUTHENTICATION_REQUEST
88617: DEBUG bt_pal_smp.c:8824:Bonding type : Bonding
bt.auth-pairing-confirm
49:7B:58:F5:35:CA (random)@bt> Passkey for 49:7B:58:F5:35:CA (random): 047307
94322: DEBUG bt_pal_smp.c:9303:event 4
94322: DEBUG bt_pal_smp.c:9321:RX queue put buf 20029708
94322: DEBUG bt_pal_smp.c:8515:SMP event = SMP_PASSKEY_DISPLAY_REQUEST, status 0
94322: DEBUG bt_pal_smp.c:8535:conn = 0x200273BC
94322: DEBUG bt_pal_smp.c:8946:Event : SMP_PASSKEY_DISPLAY_REQUEST
94322: DEBUG bt_pal_smp.c:8947:BD Address : CA 35 F5 58 7B 49
Pairing failed with 49:7B:58:F5:35:CA (random) reason: Authentication requirements (4)
Security failed: 49:7B:58:F5:35:CA (random) level 1 reason: Authentication failure (1)
106742: DEBUG bt_pal_smp.c:9303:event 1
106742: DEBUG bt_pal_smp.c:9321:RX queue put buf 20029708
106742: DEBUG bt_pal_smp.c:8515:SMP event = SMP_AUTHENTICATION_COMPLETE, status 1028
106742: DEBUG bt_pal_smp.c:8535:conn = 0x200273BC
Bond deleted for 49:7B:58:F5:35:CA (random), id 0
Disconnected: 49:7B:58:F5:35:CA (random) (reason 0x13)
109800: DEBUG bt_pal_smp.c:5452:chan 2002948C cid 0x0006
@bt> Re: rw612 ble gatt Server paring how to fixed passkey Hi, @flybir
I already tested it locally, and it can work on my side.
Please see attachment for my test logs.
Best regards,
Christine. Re: rw612 ble gatt Server paring how to fixed passkey Hi, @flybir
Firstly add the patch I shared to you by email, then test with below steps.
Please let me know whether it works for you.
If it does work, please do not hesitate to mark my answer as a solution for this case.
Thanks!
Please have a try with below steps:
Test process (RW61x as slave,phone with nrf app as master):
1/ bt.init
2/ bt.advertise on
3/ bt.auth display
4/ bt.fixed-passkey 123456
5/ nrf app connect redfinch
6/ nrf app bond
7/ bt.auth-pairing-confirm
8/ nrf app input passkey 123456
Best regards,
Christine. Re: rw612 ble gatt Server paring how to fixed passkey Hi, @Christine_Li Thanks for the reply, I have tried it and it didn't work, When my phone is paired with the RW612, I don't need to enter any passkey. Please take a look at my log to see if there are any problems, thanks for any help. SHELL build: Oct 24 2025
Copynight 2020 NXP
@bt> bt.init
@bt> Bluetooth initialized
Settings Loaded
@bt> bt.fixed-passkey 123456
@bt> bt.advertise on
Advertising started
@bt> BLE Connected: 78:7B:E1:EC:D5:AC(random) Re: rw612 ble gatt Server paring how to fixed passkey Hi, @flybir
Yes, you are right.
I checked and found that this API isn't called by anywhere.
You might need to call it by referring this example: edgefast_bluetooth_shell.
In this example, it calls this API bt_passkey_set();
And please remember enable this Macro:
#define CONFIG_BT_FIXED_PASSKEY 1
is also needed.
Please see below for my test logs, hope it can help you.
@bt> bt.fixed-passkey 123456
Christine:enter cmd_fixed_passkey!
@bt> Christine:fixed_passkey is: (passkey 123456)
Setting fixed passkey failed (err 0)
Best regards,
Christine. Re: rw612 ble gatt Server paring how to fixed passkey Hi, @flybir
Thanks for your quick reply.
Let me check it further, then share with you.
Best regards,
Christine. Re: rw612 ble gatt Server paring how to fixed passkey Hi, @Christine_Li Thanks for the reply, I have tried it and it didn't work. Re: rw612 ble gatt Server paring how to fixed passkey Hi, @flybir
Can you please have a try with below Macro in edgefast_bluetooth_config.h
#define CONFIG_BT_FIXED_PASSKEY 1
Please let me know whether it works for you.
Best regards,
Christine. Re: rw612 ble gatt Server paring how to fixed passkey Are you using FRDM-RW612? YES What's your MCUXpresso IDE version? v25.6 SDK version? FRDM-RW612 25.06.00 which example you are using? frdmrw612_wireless_uart I want the Bluetooth pairing code of the RW612 to be fixed to 123456, and the phone can be paired with the RW612 with a fixed pairing code. I have tryed bt_passkey_set(123456) not work. Thanks for any help! Re: rw612 ble gatt Server paring how to fixed passkey Hi, @flybir
Are you using FRDM-RW612?
What's your MCUXpresso IDE version? SDK version? and which example you are using?
Please let me know more backgrounds of your question, so that I can check further for you.
Best regards,
Christine. Re: rw612 ble gatt Server paring how to fixed passkey Thanks for any help Re: rw612 ble gatt Server paring how to fixed passkey Hi @Christine_Li , I'm facing the same issue mentioned above. Could you please share the patch with me. My email is: said.alghabra@subzero.com. Please also CC: marcus.dufrane@subzero.com Re: rw612 ble gatt Server paring how to fixed passkey Hi, @saidalghabra
Sorry for my late reply.
For this request, can you please help to create a new case to us?
We are not allowed to share the patch to anyone except have case tracking and company's system reviewing/verifying.
And also, please let me know which chipset you are using and your SDK version.
Thanks for your corporations!
Best regards,
Christine.
記事全体を表示