Code Monkey home page Code Monkey logo

rssi-aggregator's Introduction

RSSI Data Aggregator

Backend Aggregation and Calculation code, along with the accompanying Arduino Harware code, for the Otago Polytechnic Bachelor of Information Technolgy Final Project: Autonomous Movement.

This code is designed to allow tracking of the movements of players on a sports field, by means of a tag attached to each player sending signals to base stations arrayed around the field. The base stations then send that data to the aggregator running on a computer, where it is smoothed and calculated to output the location of each player.

Our full Technical Report on the project, containing design details and justifications, can be found here. Any additional information can be found at the project page above, while it still exists.

A tutorial which explains some of the basics on how the hardware works can be found here.

rssi-aggregator's People

Contributors

dbeath avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rssi-aggregator's Issues

Rssi value is always returning value of 250

Hi,

I am using following code :
Xbee Router is configured in AT mode and Xbee coordinator is configured in Coordinator API mode.

Problem 1:

  • The condition if (xbee.getResponse().getApiId() == RX_16_RESPONSE) never gets true and goes to else case always and returns RSSI value of 250 and never gets changes even when moving xbee router/coordinator from each other. Please help to fix this asap.

//Receiver side
#include <XBee.h>

XBee xbee = XBee();

Rx16Response rx16 = Rx16Response();
Rx64Response rx64 = Rx64Response();
void setup()
{
Serial.begin(9600);
xbee.setSerial(Serial);
}

void loop()
{
xbee.readPacket(10);
if (xbee.getResponse().isAvailable())
{
if (xbee.getResponse().getApiId() == RX_16_RESPONSE)
{
xbee.getResponse().getRx16Response(rx16);
Serial.print( rx16.getRssi() );
}
else
{
xbee.getResponse().getRx64Response(rx64);
Serial.println("inside 64-bit");
Serial.print( rx16.getRssi() );
}

}

}
//Transmitter side
#include <XBee.h>

XBee xbee = XBee();

uint8_t payload[] = { 43, 34 };

XBeeAddress64 addr64 = XBeeAddress64(0x0013a200, 0x40BD3A94);

Tx16Request tx16 = Tx16Request(addr64, payload, sizeof(payload));

void setup()
{
Serial.begin(9600);
xbee.setSerial(Serial);
}

void loop()
{
xbee.send( tx16 );
delay(1000);
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.