-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
serial: Add UART over Bluetooth LE #69881
serial: Add UART over Bluetooth LE #69881
Commits on Mar 19, 2024
-
bluetooth: services: nus: Add Nordic UART Service
NUS is implemented as a Bluetooth LE service, exchanging data treating the NUS characteristics as Serial endpoints: RX characteristic to receive, TX characteristic to send binary packets. This implementation also enables the ability to define multiple instances of the NUS Service, analogous to mutliple serial endpoints, to use each one for different purposes. Unless disabled through Kconfig, NUS instantiates a default instance, similar to what other services do, which allows users not interested in using multiple instances, to not worry about the inherent complexities. Signed-off-by: Luis Ubieda <luisf@croxel.com>
Configuration menu - View commit details
-
Copy full SHA for a1956e0 - Browse repository at this point
Copy the full SHA a1956e0View commit details -
samples: bluetooth: nus: Add Peripheral NUS sample
Demonstrating basic usage of NUS to exchange data. Signed-off-by: Luis Ubieda <luisf@croxel.com>
Configuration menu - View commit details
-
Copy full SHA for 86f965f - Browse repository at this point
Copy the full SHA 86f965fView commit details -
drivers: serial: bt: Add UART over NUS Bluetooth driver
Enables usage Bluetooth LE GATT as a serial endpoint to exchange data using UART APIs. This implementation is compatible with UART Interrupt Driven APIs and uses the nus-uart device-tree node properties to configure FIFO buffers for transmitting and receiving. Defining multiple instances of the driver is possible and it allows implementing multiple GATT NUS service instances to exchange data as separate serial endpoints. Signed-off-by: Luis Ubieda <luisf@croxel.com>
Configuration menu - View commit details
-
Copy full SHA for fd0d54e - Browse repository at this point
Copy the full SHA fd0d54eView commit details -
bluetooth: nus: Add Kconfig option to auto-start Bluetooth LE
Enables compatibility of NUS for codebases that are not Bluetooth-centric (e.g: Non-bluetooth samples that use UART over Bluetooth LE for Console, Logging, Shell, others). Signed-off-by: Luis Ubieda <luisf@croxel.com>
Configuration menu - View commit details
-
Copy full SHA for 5587824 - Browse repository at this point
Copy the full SHA 5587824View commit details -
snippets: Add nus-console snippet
Allowing to be applied on various samples to enable UART over Bluetooth LE NUS without added complexity. Tested with nrf52840dk/nrf52840 on the following samples: - samples/subsys/console/echo. - samples/subsys/console/getchar. - samples/subsys/console/getline. - samples/subsys/logging/logger. Signed-off-by: Luis Ubieda <luisf@croxel.com>
Configuration menu - View commit details
-
Copy full SHA for f58ae5b - Browse repository at this point
Copy the full SHA f58ae5bView commit details -
samples: logging: Add support for UART over Bluetooth LE NUS
Tested and working with nrf52840dk/nrf52840. Signed-off-by: Luis Ubieda <luisf@croxel.com>
Configuration menu - View commit details
-
Copy full SHA for 33b6a6a - Browse repository at this point
Copy the full SHA 33b6a6aView commit details -
samples: shell: Add support for UART over Bluetooth LE NUS
Tested and working with nrf52840dk/nrf52840. Signed-off-by: Luis Ubieda <luisf@croxel.com>
Configuration menu - View commit details
-
Copy full SHA for 010fe4a - Browse repository at this point
Copy the full SHA 010fe4aView commit details -
doc: release: Add information on UART over Bluetooth LE and NUS Service
Add documentation on relevant sections to list addition of Bluetooth LE service NUS (Nordic UART Service), as well as the UART driver for UART over Bluetooth LE and snippets to easily enable it. Signed-off-by: Luis Ubieda <luisf@croxel.com>
Configuration menu - View commit details
-
Copy full SHA for a2825ae - Browse repository at this point
Copy the full SHA a2825aeView commit details