Skip to content

Commit ac6ff56

Browse files
committed
Initial commit with tools folder & README
0 parents  commit ac6ff56

File tree

4 files changed

+44
-0
lines changed

4 files changed

+44
-0
lines changed

README.md

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Zephyr BLE Mesh
2+
3+
This is a part of my bachelor's degree paper with a title Bluetooth Mesh application on [Zephyr operating system](https://docs.zephyrproject.org/latest/). For demonstrating purposes I implemented simple switch & light applications provisioned in a mesh by an iOS or Android app [nRF Mesh](https://www.nordicsemi.com/Products/Development-tools/nRF-Mesh).
4+
5+
## Structure
6+
7+
8+
├── switch # Code & documentation for switch that controlls lights on other connected boards
9+
├── light # Code & documentation for lights that wait for messages from the switch
10+
├── tools # Tools for easier debugging & logging
11+
└── README.md
12+
## Prerequisites
13+
### Hardware
14+
The coding was done on a Nordic's [nRF52840](https://www.nordicsemi.com/Products/Development-hardware/nrf52840-dk) board, but will work on any board with Zephyr RTOS and Bluetooth Low energy support. For transferring binaries to the boards and their powering micro USB cables are necessary.
15+
### Software
16+
Zephry RTOS & alongside its SDK should be installed on the machine where application build will be done, during implementation version 1.14 was used and should work on Windows, MacOS or Linux environment.
17+
NRF mesh app from Nordic Semiconductor was used for Bluetooth mesh provisioning and configuration.
18+
## Author
19+
- [Jaka Purg](https://www.linkedin.com/in/jaka-purg-9b25551a6/)

tools/README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Zephyr BLE Mesh - Tools
2+
3+
Here you can find bash script for Real-Time Tracing logging from our boards to standard output. If you use any other board, you should change device parameter in script that runs JLinkRTTLogger installed with Segger J-Link Software. Zephyr's documentation for logging with RTT can be find [here](https://docs.zephyrproject.org/latest/guides/tools/nordic_segger.html#rtt-console).
4+
5+
## Structure
6+
7+
8+
├── logging.sh # Script for running RTT logger
9+
├── logging.desktop # Desktop shortcut for Linux for more efficient work
10+
└── README.md
11+
## Prerequisites
12+
### Software
13+
Script logging.sh uses JLinkRTTLogger binary that needs to be installed in /bin folder and can be download from Nordic's [webpage](https://www.nordicsemi.com/Products/Development-tools/nRF-Command-Line-Tools). If you use any other board than nRF52840, you should replace -Device parameter with your own board name.
14+
## Author
15+
- [Jaka Purg](https://www.linkedin.com/in/jaka-purg-9b25551a6/)

tools/logging.desktop

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[Desktop Entry]
2+
Type=Application
3+
Terminal=true
4+
Name=LoggingZephyr
5+
Icon=utilities-terminal
6+
Exec=gnome-terminal -e "bash -c './Desktop/logging.sh'"
7+
Categories=Application;

tools/logging.sh

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
cd /bin
3+
./JLinkRTTLogger -Device NRF52840_XXAA -if SWD -Speed 4000 -RTTChannel 0 /dev/stdout

0 commit comments

Comments
 (0)