-
Notifications
You must be signed in to change notification settings - Fork 16
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
doc: add documentation framework and basic docs #239
Changes from 1 commit
2d140a0
421519e
d6d4036
bf5f2b9
57bff80
af09f60
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Publish documentation to Zoomin dev | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- doc/docs | ||
workflow_dispatch: | ||
|
||
jobs: | ||
create-zoomin-bundle: | ||
name: Create Zoomin bundle | ||
uses: './.github/workflows/zoomin.yml' | ||
publish-zoomin-bundle: | ||
name: Publish Zoomin bundle to dev | ||
needs: create-zoomin-bundle | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get bundle | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: nrf-connect-rssi-viewer | ||
- name: Upload documentation | ||
run: | | ||
# trust server | ||
mkdir -p ~/.ssh | ||
ssh-keyscan upload-v1.zoominsoftware.io >> ~/.ssh/known_hosts | ||
|
||
# prepare key | ||
echo "${{ secrets.ZOOMIN_KEY }}" > zoomin_key | ||
chmod 600 zoomin_key | ||
|
||
# upload bundle: | ||
sftp -v -i zoomin_key [email protected] <<EOF | ||
cd /nordic-be-dev.zoominsoftware.io/markdown/incoming | ||
put nrf-connect-rssi-viewer.zip | ||
quit | ||
EOF |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Publish documentation to Zoomin prod | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
create-zoomin-bundle: | ||
name: Create Zoomin bundle | ||
uses: './.github/workflows/zoomin.yml' | ||
publish-zoomin-bundle: | ||
name: Publish Zoomin bundle | ||
needs: create-zoomin-bundle | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get bundle | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: nrf-connect-rssi-viewer | ||
- name: Upload documentation | ||
run: | | ||
# trust server | ||
mkdir -p ~/.ssh | ||
ssh-keyscan upload-v1.zoominsoftware.io >> ~/.ssh/known_hosts | ||
|
||
# prepare key | ||
echo "${{ secrets.ZOOMIN_KEY }}" > zoomin_key | ||
chmod 600 zoomin_key | ||
|
||
# upload bundle: | ||
sftp -v -i zoomin_key [email protected] <<EOF | ||
cd /docs-be.nordicsemi.com/markdown/incoming | ||
put nrf-connect-rssi-viewer.zip | ||
quit | ||
EOF |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Create Zoomin bundle | ||
|
||
on: | ||
pull_request: | ||
types: [synchronize, opened, reopened] | ||
paths: | ||
- '.github/workflows/zoomin.yml' | ||
workflow_dispatch: | ||
workflow_call: | ||
|
||
jobs: | ||
create-zoomin-bundle: | ||
name: Create Zoomin bundle | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Copy zoomin properties | ||
run: | | ||
cp doc/zoomin/custom.properties doc/ \ | ||
&& cp doc/zoomin/tags.yml doc/ | ||
|
||
- name: Create zip file | ||
run: | | ||
cd doc/ \ | ||
&& zip -r ../nrf-connect-rssi-viewer.zip \ | ||
docs/* mkdocs.yml custom.properties tags.yml | ||
|
||
- name: Upload documentation artifact | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: nrf-connect-rssi-viewer | ||
path: nrf-connect-rssi-viewer.zip | ||
retention-days: 7 |
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,12 @@ | ||||||
# nRF Connect RSSI Viewer | ||||||
|
||||||
nRF Connect RSSI Viewer is a cross-platform tool that shows dBm per frequency in the 2.4 GHz range. It scans the 2400-2480 MHz range, records signal level on particular frequencies, and presents combined results in several ways. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. “particular frequencies” and “combined results in several ways” seems a bit wishy-washy to me. How about:
Suggested change
|
||||||
|
||||||
You can use the tool with a sniffer device to look for interferers, check how channels are used, and to tweak settings like sweep delay and animation duration. | ||||||
|
||||||
RSSI Viewer is installed and updated using [nRF Connect for Desktop](https://docs.nordicsemi.com/bundle/nrf-connect-desktop/page/index.html). | ||||||
|
||||||
## Supported devices | ||||||
|
||||||
Any of the nRF52 Series boards can be used as the sniffer with the RSSI Viewer application. | ||||||
When you [select the device](overview.md#select-device), the tool will reprogram the connected board to act as the sniffer. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Installing RSSI Viewer app | ||
|
||
For installation instructions, see [Installing nRF Connect for Desktop apps](https://docs.nordicsemi.com/bundle/nrf-connect-desktop/page/installing_apps.html) in the nRF Connect for Desktop documentation. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Overview and user interface | ||
|
||
After starting RSSI Viewer, the main application window is displayed. | ||
|
||
![RSSI Viewer application window](./screenshots/rssi_overview.png "RSSI Viewer application window") | ||
|
||
The available options and information change after you **Select Device**. | ||
|
||
## Before selection | ||
|
||
Before a device is selected, the side panel contains the following buttons: | ||
|
||
### Select Device | ||
|
||
Dropdown to list the devices attached to the computer. When you select a [supported device](index.md#supported-devices), the app programs the device with the sniffer firmware, and then connects to one of the available serial ports. Sniffing starts automatically. | ||
|
||
## After selection | ||
|
||
When a device is selected, sniffing in the 2.4 GHz range starts automatically and the side panel options become available. | ||
|
||
![RSSI Viewer application window after selecting a device](./screenshots/rssi_viewer_working.gif "RSSI Viewer application window after selecting a device") | ||
|
||
### Controls | ||
|
||
This side panel area contains buttons that control the sniffing process: | ||
|
||
- **Start** and **Pause** - Lets you start or pause the sniffing process. | ||
- **Reset** - Lets you reset the sniffing output. | ||
|
||
### Sweep Scan | ||
|
||
This option lets you control the frequency with which the sniffing scan are run and with which the results are updated in the **RSSI Viewer** tab. | ||
|
||
### Channel Details | ||
|
||
The options in this area refer to the Bluetooth Low Energy channels displayed in the **RSSI Viewer** tab. | ||
|
||
### Filters | ||
|
||
The options in this area allows you to filter out specific Bluetooth LE channels and dBm values in the **RSSI Viewer** tab. | ||
Once you select the values, the sniffing will be performed only within your custom range. | ||
|
||
### Device | ||
|
||
The **Toggle LED** button lets you toggle the LED on the connected device. | ||
|
||
## RSSI Viewer tab | ||
|
||
This is the main area of the application where the sniffing results are displayed. Changing the side panel option settings is automatically reflected on the sniffing results when the sniffing is ongoing. | ||
|
||
![Chaning RSSI Viewer options during sniffing](./screenshots/rssi_viewer_showcase.gif "Chaning RSSI Viewer options during sniffing") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needs review, @kylebonnici . Please answer my questions on chat. |
||
|
||
## Log | ||
|
||
The Log panel allows you to view the most important log events, tagged with a timestamp. Each time you open the app, a new session log file is created. You can find the Log panel and its controls, below the main application Window. | ||
|
||
- When troubleshooting, to view more detailed information than shown in the Log panel, use **Open log file** to open the current log file in a text editor. | ||
- To clear the information currently displayed in the Log panel, use **Clear Log**. The contents of the log file are not affected. | ||
- To hide or display the Log panel in the user interface, use **Show Log**. | ||
- To freeze Log panel scrolling, use **Autoscroll Log**. | ||
|
||
## About tab | ||
|
||
You can view application information, restore defaults, access source code and documentation. You also can find information on the selected device, access support tools, send feedback, and enable verbose logging. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
site_name: nRF Connect RSSI Viewer documentation | ||
site_url: | ||
use_directory_urls: false | ||
|
||
theme: | ||
name: material | ||
palette: | ||
- scheme: custom-blue | ||
toggle: | ||
icon: material/lightbulb-outline | ||
name: Switch to dark mode | ||
- scheme: custom-blue-dark | ||
toggle: | ||
icon: material/lightbulb | ||
name: Switch to light mode | ||
# logo: assets/logo.png | ||
# favicon: assets/logo.png | ||
features: | ||
- content.code.annotate | ||
- content.tooltips | ||
- content.tabs.link | ||
- navigation.indexes | ||
- navigation.top | ||
- navigation.tracking | ||
- search.highlight | ||
- toc.follow | ||
|
||
|
||
extra_css: | ||
- stylesheets/style.css | ||
|
||
copyright: | ||
Copyright © 2023 | ||
|
||
markdown_extensions: | ||
- abbr | ||
- admonition | ||
- attr_list | ||
- md_in_html | ||
- meta | ||
- pymdownx.details | ||
- pymdownx.keys | ||
- pymdownx.tabbed | ||
- pymdownx.superfences | ||
- pymdownx.emoji: | ||
emoji_index: !!python/name:materialx.emoji.twemoji | ||
emoji_generator: !!python/name:materialx.emoji.to_svg | ||
- toc: | ||
permalink: true | ||
toc_depth: 4 | ||
|
||
plugins: | ||
- macros | ||
- search | ||
|
||
|
||
extra: | ||
test: This is a test abbreviation snippet | ||
|
||
nav: | ||
- Home: index.md | ||
- Installing RSSI Viewer app: installing.md | ||
- Overview and user interface: overview.md |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
manual.name=nrf-connect-rssi-viewer | ||
booktitle=nRF Connect RSSI Viewer | ||
shortdesc=Documentation for the nRF Connect RSSI Viewer application. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Document tags for Zoomin. | ||
|
||
# Tags for all topics: | ||
mapping_global: | ||
- nrf-connect-rssi-viewer | ||
|
||
# Tags for individual topics: | ||
#mapping_topics: | ||
# - filename.md: ["tag1","tag2"] | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To fix the linter issue: