Skip to content

SPP: Add dynamic log control for SPP data transmission#415

Open
Yezmax wants to merge 1 commit intoopen-vela:devfrom
Yezmax:feat/spp-dynamic-dump
Open

SPP: Add dynamic log control for SPP data transmission#415
Yezmax wants to merge 1 commit intoopen-vela:devfrom
Yezmax:feat/spp-dynamic-dump

Conversation

@Yezmax
Copy link
Contributor

@Yezmax Yezmax commented Jan 29, 2026

bug: v/85159

Implemented dynamically controlled SPP data dump functionality for troubleshooting SPP transmission errors.

Modified spp_service.c, changing the spp_dumpbuffer macro to the
spp_dump_buffer function, adding checks for bt_log_spp_dump_is_enable(),
NULL pointer safety, and a maximum 16-byte limit. Added support for
LOG_ID_SPP_DUMP and spp_dump_enable state management in log_server.c.
Added handling for BT_DEBUG_MODE_SPP_DUMP in adapter_service.c, added
support for the spp_dump command in bt_tools.c, and added the
BT_DEBUG_MODE_SPP_DUMP enumeration in bluetooth.h.

@Yezmax Yezmax force-pushed the feat/spp-dynamic-dump branch 3 times, most recently from d7093cb to a12afbe Compare February 3, 2026 02:30
@Yezmax
Copy link
Contributor Author

Yezmax commented Feb 3, 2026

/check-cla

@github-actions
Copy link

github-actions bot commented Feb 3, 2026

✅ CLA Verification Complete

@Yezmax All contributors have signed the CLA!

  • v-chenghuijin@xiaomi.com

📋 View detailed check results: Action Run #21615949754

Your pull request can now proceed with the review process! 🎉

gzh-terry
gzh-terry previously approved these changes Feb 3, 2026
gzh-terry
gzh-terry previously approved these changes Feb 3, 2026
@Yezmax Yezmax force-pushed the feat/spp-dynamic-dump branch from 4a7fd08 to 8fbfaae Compare February 5, 2026 10:23
@Yezmax Yezmax force-pushed the feat/spp-dynamic-dump branch 2 times, most recently from d954c0d to cad6bcc Compare February 5, 2026 13:09
BT_LOGE("Spp write to slave port %d failed", device->conn_port);
break;
}
spp_dumpbuffer("master buffer write:", buf->buffer, buf->length);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@chejinxian Please double check if these two "master write" are with the same meaning.

@Yezmax Yezmax force-pushed the feat/spp-dynamic-dump branch from cad6bcc to 81b811d Compare February 5, 2026 13:37
@Yezmax Yezmax requested a review from gzh-terry February 5, 2026 13:52
gzh-terry
gzh-terry previously approved these changes Feb 5, 2026
gzh-terry
gzh-terry previously approved these changes Feb 5, 2026
chengkai15
chengkai15 previously approved these changes Feb 5, 2026
@Yezmax Yezmax dismissed stale reviews from chengkai15 and gzh-terry via 0c8b7a8 February 6, 2026 08:27
@Yezmax Yezmax force-pushed the feat/spp-dynamic-dump branch from 342d67f to 0c8b7a8 Compare February 6, 2026 08:27
@Yezmax Yezmax requested a review from chengkai15 February 6, 2026 10:18
bug: v/85159

Implemented dynamically controlled SPP data dump functionality for troubleshooting SPP transmission errors.

Modified spp_service.c, changing the spp_dumpbuffer macro to the
spp_dump_buffer function, adding checks for bt_log_spp_dump_is_enable(),
NULL pointer safety, and a maximum 16-byte limit. Added support for
LOG_ID_SPP_DUMP and spp_dump_enable state management in log_server.c.
Added handling for BT_DEBUG_MODE_SPP_DUMP in adapter_service.c, added
support for the spp_dump command in bt_tools.c, and added the
BT_DEBUG_MODE_SPP_DUMP enumeration in bluetooth.h.

Signed-off-by: v-chenghuijin <v-chenghuijin@xiaomi.com>
@Yezmax Yezmax force-pushed the feat/spp-dynamic-dump branch from 0c8b7a8 to a6aa3cc Compare February 6, 2026 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants