https://github.com/keomabrun/k7
Connectivity Traces on Tape
https://github.com/keomabrun/k7
connectivity dataset ieee-802154 wsn
Last synced: 7 months ago
JSON representation
Connectivity Traces on Tape
- Host: GitHub
- URL: https://github.com/keomabrun/k7
- Owner: keomabrun
- License: gpl-3.0
- Created: 2018-03-28T13:38:43.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-31T09:14:13.000Z (about 5 years ago)
- Last Synced: 2025-02-19T07:38:36.197Z (8 months ago)
- Topics: connectivity, dataset, ieee-802154, wsn
- Language: Python
- Homepage:
- Size: 2.36 MB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# k7
[](https://pypi.python.org/pypi/k7)
[](https://pypi.python.org/pypi/k7)
[](https://travis-ci.org/keomabrun/k7)
CCBY: Cassette by Alvaro Cabrera from the Noun Project
# Usage
### Check file format
```
python -m k7.k7 --check myfile.k7
```# k7 format
```
{"location": "grenoble", "tx_length": 100, "start_date": "2018-01-11 16:32:22", "stop_date": "2018-01-13 16:21:30", "node_count": 44, "channels": [11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26], "interframe_duration": 100}
datetime,src,dst,channel,mean_rssi,pdr,tx_count
2018-01-11 16:33:07,18,19,11,-53.2,1.0
2018-01-11 16:33:07,17,14,11,-84.03,0.97
2018-01-11 16:33:07,23,27,11,-83.88,1.0
2018-01-11 16:33:30,16,14,11,-67.03,1.0
2018-01-11 16:33:30,22,49,11,-70.0,1.0
...
```## Header
Each k7 starts with a one-line header. The header is the json dump of a dict. The header contains the dataset meta data.
Ex:
```
{"location": "grenoble", "tx_length": 100, "start_date": "2017-06-20 16:22:15", "stop_date": "2017-06-21 10:29:29", "node_count": 50, "channels": [11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26], "interframe_duration": 10}
```## Data
| datetime | src | dst | channel | mean_rssi | pdr | tx_count |
|---------------------|---------|---------|---------|-----------|-------------|----------|
| iso8601 string | int | int | int | float | float (0-1) | int |### Standard example:
| datetime | src | dst | channel | mean_rssi | pdr | tx_count |
|---------------------|---------|---------|---------|-----------|------|----------|
| 2017-12-19 21:35:41 | 0 | 1 | 11 | -74.5 | 1.0 | 100 |### The source or destination can be empty (i.e when measured on all the neighbors of the src):
| datetime | src | dst | channel | mean_rssi | pdr | tx_count |
|---------------------|---------|---------|---------|-----------|------|----------|
| 2017-12-19 21:35:41 | | | 11 | -74.5 | 0.7 | 100 |### Unknown channel:
| datetime | src | dst | channel | mean_rssi | pdr | tx_count |
|---------------------|---------|---------|---------|-----------|------|----------|
| 2017-12-19 21:35:41 | 1 | 2 | | -79.5 | 1.0 | 100 |When the channel value is empty, it means that the channel is unknown for that measurement.