Go to file
Cheng Chang 419cb3da69 tests: bluetooth: classic: Add test suite l2cap.
IUT works as a l2cap server with basic mode. The peer device,
l2cap client with basic mode, is a PC with running `bumble` on it.
This test only performs the function of L2CAP basic mode.
Support multiple l2cap enerties in new shell l2cap_br,
which may support more test function.

In the test suite , there are two groups in test cases.
Group 1 Including case1-case8 focuses on connection and
disconnection around l2cap. The impact of active and passive
acl connectivity, disconnectivity and authentication as well as
disconnection from ACL without l2cap disconnect is tested.

Group2 Including case9-case14 revolves around the basic
 parameters of L2CAPserver configuration, data transfer.
Case 9:   Test l2cap connection with max MTU(0xffff).But the max mtu
which the stack supports is (CONFIG_BT_BUF_ACL_RX_SIZE - 4U = 196).
Case 10: Test l2cap connection with min MTU(0x30),set server mtu = 48,
client mtu = 0xffff, l2cap connect successfully,
client mtu = 0xffff, server mtu = 48.
Case 11: Test l2cap connection with min MTU(0x30),set server mtu < 48,
client mtu = 0xffff, l2cap connect fail.
Case 12: Test l2cap connection with min MTU(0x30),set server mtu = 48,
client mtu<48,l2cap connect successfully,
client mtu=48,server mtu=48.
Case 13: Test l2cap connection with invaild PSM.
Case 14: Test l2cap multi_channel connection and data tranfer.
Case 15: Stress Test. Repeat l2cap connect, disconnect operation.
Case 16: Stress Test. Repeat data transfer in a single connection.
In Case 15 and 16, if enlarging STRESS_TEST_MAX_COUNT and test fail,
you can enlarge timeout in  testcase.yml.

test_l2cap_server.py is a file containing real test cases.
test_l2cap_common.py is a common file. It encapsulates some
test function functions that are commonly used for test cases.

Signed-off-by: Cheng Chang <cheng.chang@nxp.com>
2025-07-19 09:51:31 +02:00
.github release: update security policy to include 4.2 2025-07-18 18:17:09 -05:00
arch arc: cache: Support region operations, SLC, and entire cache operations 2025-07-19 09:42:20 +02:00
boards boards: arm: stm32h573 disco kit move partition to ext flash 2025-07-19 09:49:44 +02:00
cmake Revert "cmake: Add service section to commo-rom linker generator" 2025-07-16 16:39:36 -05:00
doc doc: release: Finalize v4.2.0 release notes and migration guide 2025-07-18 18:17:09 -05:00
drivers drivers: flash: stm32 xspi flash driver skip init when executing in place 2025-07-19 09:49:44 +02:00
dts am243x_evm/am2434/r5f0_0: add SPI support 2025-07-19 09:47:37 +02:00
include/zephyr Bluetooth: LE: CONN: Added bt_conn_le_set_default_phy function. 2025-07-19 09:46:34 +02:00
kernel Revert "init: Make entry init-function less and introduce service objects" 2025-07-16 16:39:36 -05:00
lib lib/libc/Kconfig: Simply C library choice dependencies 2025-07-19 09:38:15 +02:00
misc license: Remove non-copyrightable license 2025-02-26 22:04:51 +00:00
modules boards nrf_bsim: Add a new nrf54lm20bsim target 2025-07-19 09:38:37 +02:00
samples samples: mgmt: hawkbit: no BOOT_MAX_IMG_SECTORS for stm32h573i_dk 2025-07-19 09:49:44 +02:00
scripts script: west_commands: silabs: add device type for hostname dev 2025-07-19 09:43:43 +02:00
share build: kconfig: Add support for warning insecure features 2025-07-10 16:00:26 -05:00
snippets snippets: nordic-flpr: Fix nRF54LM20A memory layout 2025-07-03 11:55:42 -05:00
soc soc: stm32: symbol for application XiP from xspi external memory 2025-07-19 09:49:44 +02:00
submanifests tfm-tests: Bump tests to tfm-2.2.0 2025-06-27 18:52:39 -05:00
subsys Bluetooth: host: L2CAP: Fix configuration parameters not be checked 2025-07-19 09:51:02 +02:00
tests tests: bluetooth: classic: Add test suite l2cap. 2025-07-19 09:51:31 +02:00
.checkpatch.conf checkpatch: Adapt the braces check to Zephyr 2024-12-30 21:46:47 +01:00
.clang-format include: zephyr: sys: simplify MIN_HEAP_FOREACH macro 2025-06-26 11:58:05 -04:00
.codechecker.yml tests: Add a CodeChecker config file 2024-09-12 10:04:05 +02:00
.codecov.yml
.editorconfig
.gitattributes
.gitignore scripts: ci: add vermin (min python version check) 2025-06-06 08:45:13 +02:00
.gitlint gitlint: Fix dependabot exception 2025-04-09 09:02:39 +02:00
.mailmap mailmap: remove duplicate emails and normalize mapping entries 2025-01-09 14:14:10 +01:00
.ruff-excludes.toml scripts: west: remove excludes for west_commands/spdx.py 2025-06-10 13:28:38 +02:00
.ruff.toml Revert "scripts: Bump Python target version for ruff" 2025-07-04 15:50:06 -05:00
.yamllint
CMakeLists.txt cmake: Remove NATIVE_APPLICATION support 2025-07-19 09:38:15 +02:00
CODE_OF_CONDUCT.md
CODEOWNERS ci: add empty CODEOWNERS file 2025-03-27 09:50:45 +01:00
CONTRIBUTING.rst
Kconfig
Kconfig.constants
Kconfig.zephyr Kconfig: Remove NATIVE_APPLICATION option 2025-07-19 09:38:15 +02:00
LICENSE
MAINTAINERS.yml MAINTAINERS: Add iuliana-prodan as Open AMP maintainer 2025-07-16 05:22:23 -10:00
README.rst doc: remove more occurances of Nios II 2025-05-15 20:01:05 -04:00
SDK_VERSION SDK_VERSION: Use Zephyr SDK 0.17.2 2025-06-25 12:15:09 +02:00
VERSION release: Zephyr v4.2.0 2025-07-18 18:17:09 -05:00
version.h.in version.h.in: fix cmake comment 2025-05-28 05:53:55 +02:00
west.yml manifest: update tf-m sha 2025-07-16 16:39:04 -05:00
zephyr-env.cmd
zephyr-env.sh zephyr-env.sh: Use $XDG_CONFIG_HOME/zephry/zephyrrc if present 2025-06-25 15:33:06 -10:00

.. raw:: html

   <a href="https://www.zephyrproject.org">
     <p align="center">
       <picture>
         <source media="(prefers-color-scheme: dark)" srcset="doc/_static/images/logo-readme-dark.svg">
         <source media="(prefers-color-scheme: light)" srcset="doc/_static/images/logo-readme-light.svg">
         <img src="doc/_static/images/logo-readme-light.svg">
       </picture>
     </p>
   </a>

   <a href="https://bestpractices.coreinfrastructure.org/projects/74"><img src="https://bestpractices.coreinfrastructure.org/projects/74/badge"></a>
   <a href="https://scorecard.dev/viewer/?uri=github.com/zephyrproject-rtos/zephyr"><img src="https://api.securityscorecards.dev/projects/github.com/zephyrproject-rtos/zephyr/badge"></a>
   <a href="https://github.com/zephyrproject-rtos/zephyr/actions/workflows/twister.yaml?query=branch%3Amain"><img src="https://github.com/zephyrproject-rtos/zephyr/actions/workflows/twister.yaml/badge.svg?event=push"></a>


The Zephyr Project is a scalable real-time operating system (RTOS) supporting
multiple hardware architectures, optimized for resource constrained devices,
and built with security in mind.

The Zephyr OS is based on a small-footprint kernel designed for use on
resource-constrained systems: from simple embedded environmental sensors and
LED wearables to sophisticated smart watches and IoT wireless gateways.

The Zephyr kernel supports multiple architectures, including ARM (Cortex-A,
Cortex-R, Cortex-M), Intel x86, ARC, Tensilica Xtensa, and RISC-V,
SPARC, MIPS, and a large number of `supported boards`_.

.. below included in doc/introduction/introduction.rst


Getting Started
***************

Welcome to Zephyr! See the `Introduction to Zephyr`_ for a high-level overview,
and the documentation's `Getting Started Guide`_ to start developing.

.. start_include_here

Community Support
*****************

Community support is provided via mailing lists and Discord; see the Resources
below for details.

.. _project-resources:

Resources
*********

Here's a quick summary of resources to help you find your way around:

Getting Started
---------------

  | 📖 `Zephyr Documentation`_
  | 🚀 `Getting Started Guide`_
  | 🙋🏽 `Tips when asking for help`_
  | 💻 `Code samples`_

Code and Development
--------------------

  | 🌐 `Source Code Repository`_
  | 📦 `Releases`_
  | 🤝 `Contribution Guide`_

Community and Support
---------------------

  | 💬 `Discord Server`_ for real-time community discussions
  | 📧 `User mailing list (users@lists.zephyrproject.org)`_
  | 📧 `Developer mailing list (devel@lists.zephyrproject.org)`_
  | 📬 `Other project mailing lists`_
  | 📚 `Project Wiki`_

Issue Tracking and Security
---------------------------

  | 🐛 `GitHub Issues`_
  | 🔒 `Security documentation`_
  | 🛡️ `Security Advisories Repository`_
  | ⚠️ Report security vulnerabilities at vulnerabilities@zephyrproject.org

Additional Resources
--------------------
  | 🌐 `Zephyr Project Website`_
  | 📺 `Zephyr Tech Talks`_

.. _Zephyr Project Website: https://www.zephyrproject.org
.. _Discord Server: https://chat.zephyrproject.org
.. _supported boards: https://docs.zephyrproject.org/latest/boards/index.html
.. _Zephyr Documentation: https://docs.zephyrproject.org
.. _Introduction to Zephyr: https://docs.zephyrproject.org/latest/introduction/index.html
.. _Getting Started Guide: https://docs.zephyrproject.org/latest/develop/getting_started/index.html
.. _Contribution Guide: https://docs.zephyrproject.org/latest/contribute/index.html
.. _Source Code Repository: https://github.com/zephyrproject-rtos/zephyr
.. _GitHub Issues: https://github.com/zephyrproject-rtos/zephyr/issues
.. _Releases: https://github.com/zephyrproject-rtos/zephyr/releases
.. _Project Wiki: https://github.com/zephyrproject-rtos/zephyr/wiki
.. _User mailing list (users@lists.zephyrproject.org): https://lists.zephyrproject.org/g/users
.. _Developer mailing list (devel@lists.zephyrproject.org): https://lists.zephyrproject.org/g/devel
.. _Other project mailing lists: https://lists.zephyrproject.org/g/main/subgroups
.. _Code samples: https://docs.zephyrproject.org/latest/samples/index.html
.. _Security documentation: https://docs.zephyrproject.org/latest/security/index.html
.. _Security Advisories Repository: https://github.com/zephyrproject-rtos/zephyr/security
.. _Tips when asking for help: https://docs.zephyrproject.org/latest/develop/getting_started/index.html#asking-for-help
.. _Zephyr Tech Talks: https://www.zephyrproject.org/tech-talks