Skip to content

Repository files navigation

tessel-roam

Collect geolocated radio decodings from a reelyActive Owl-in-One based on the Tessel 2 platform. Geolocates using a USB GPS and writes radio decodings (raddecs) from a reel module (BLE) and/or from tcpdump (WiFi) to a USB drive.

For complementary functionality, consider instead:

Consult the following tutorials as step-by-step configuration guides:

Installation

Clone this repository, browse to its root, then run:

npm install

Configuration

All configuration parameters can be found in the file config.js. Update only this file, as required.

ParameterDescription
LISTEN_TO_REELEnable listener on reel module (default: true)
LISTEN_TO_TCPDUMPEnable listener on tcpdump (default: false)
ENABLE_MIXINGCombine multiple decodings of an individual transmitter into a single raddec (default: true)
MIXING_DELAY_MILLISECONDSMixing delay of radio decodings (default: 1000)
RADDEC_FILTER_PARAMETERS(see raddec-filter)
LOGFILE_NAME_PREFIX(default: 'roamlog')
LOGFILE_EXTENSION(default: '.csv')
LOGFILE_DELIMITER(default: ',')
LOGFILE_MINUTES_TO_ROTATION(default: 60)
STORAGE_MOUNT_POINT(default: '/mnt/sda1')
GPS_MOUNT_POINT(default: '/dev/ttyUSB0')
IS_DEBUG_MODESet true and t2 run index.js for console log

Programming

Programming the Tessel 2 requires the t2-cli package which can be installed by following these instructions.

With the Tessel 2 connected to the programming station via USB, from the root of this repository run:

t2 push index.js

The code will be pushed to flash memory on the Tessel and will run every time it boots.

Output

By default, tessel-roam will write to logfiles roamlog-ble-YYMMDD-HHMMSS.csv and roamlog-wifi-YYMMDD-HHMMSS.csv, which it will rotate every 60 minutes, the following comma-separated values:

GPS Epoch,CPU Epoch,transmitterId,transmitterIdType,rssi,lat,lon,speed,course

Prerequisites

The tessel-roam software expects the following:

  • a reel or reelceiver module connected via UART on Port A
  • maximum baud rate of Port A set to at least 230400
  • tcpdump installed (only if LISTEN_TO_TCPDUMP is true)
  • coreutils-stty installed
  • GPS module connected via USB
  • thumb drive connected via USB

License

MIT License

Copyright (c) 2021-2022 reelyActive

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Collect geolocated radio decodings from a reelyActive Owl-in-One based on the Tessel 2 platform. We believe in an open Internet of Things.

Topics

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages