Skip to content

Bluetooth: Classic: L2CAP: implement ECHO REQ/RSP #88990

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

lylezhu2012
Copy link
Collaborator

Handle the ECHO request/response of classic L2CAP signaling packets.

Add the functions bt_l2cap_br_echo_cb_register() and bt_l2cap_br_echo_cb_unregister() to register/unregister the ECHO
callbacks to monitor the ECHO REQ and RSP.

Add the function bt_l2cap_br_echo_req() to send the ECHO REQ through classic L2CAP signaling channel.

Add the function bt_l2cap_br_echo_rsp() to reply the ECHO REQ through the classic L2CAP signaling channel.

@lylezhu2012 lylezhu2012 force-pushed the classic_l2cap_enable_echo branch from 0a74f97 to 25a834b Compare April 24, 2025 10:19
@lylezhu2012 lylezhu2012 requested a review from hermabe April 24, 2025 10:23
@lylezhu2012 lylezhu2012 force-pushed the classic_l2cap_enable_echo branch from 25a834b to 644a1ec Compare May 21, 2025 06:29
@hermabe hermabe removed their request for review May 26, 2025 10:42
@lylezhu2012 lylezhu2012 requested a review from hermabe May 28, 2025 09:13
@lylezhu2012
Copy link
Collaborator Author

Just reminder.

@hermabe
Copy link
Member

hermabe commented May 28, 2025

Just reminder.

I just reviewed the LE parts. Now that all the changes are in the classic parts, I will leave the review up to the classic maintainers.

@hermabe hermabe removed their request for review May 28, 2025 10:24
@lylezhu2012 lylezhu2012 force-pushed the classic_l2cap_enable_echo branch from 644a1ec to a122343 Compare May 29, 2025 11:08
Handle the ECHO request/response of classic L2CAP signaling packets.

Add the functions `bt_l2cap_br_echo_cb_register()` and
`bt_l2cap_br_echo_cb_unregister()` to register/unregister the ECHO
callbacks to monitor the ECHO REQ and RSP.

Add the function `bt_l2cap_br_echo_req()` to send the ECHO REQ through
classic L2CAP signaling channel.

Add the function `bt_l2cap_br_echo_rsp()` to reply the ECHO REQ
through the classic L2CAP signaling channel.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
Add echo test shell commands, `register`, `unregister`, `req`, and
`rsp`.

Signed-off-by: Lyle Zhu <lyle.zhu@nxp.com>
@lylezhu2012 lylezhu2012 force-pushed the classic_l2cap_enable_echo branch from a122343 to 7e9427c Compare May 29, 2025 11:33
Copy link

@nashif nashif merged commit f34d776 into zephyrproject-rtos:main May 30, 2025
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Bluetooth Classic Bluetooth Classic (BR/EDR) area: Bluetooth Host Bluetooth Host (excluding BR/EDR) area: Bluetooth
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants