/PSDU_Project

Primary LanguageC++GNU General Public License v3.0GPL-3.0

Usage: (Requires cmake, libbluetooth, libboost)
  $ mkdir build
  $ cd build
  $ cmake ..
  $ make aggregator

Execute:
  $ export LD_LIBRARY_PATH=shared_lib  #if don't have libboost
  $ ./aggregator -s /dev/ttyUSB0

On startup, it will load two files DATA0 and DATA1 which are the initial configuration data. During program execution, these files will be updated many times. 
If you want the program to start without any initial data, delete those files before execution.

Automation cross-compiling
  $ cd crossCompile
  $ ./auto-cross-compile.sh <TARGET_USER> <TARGET_IP>

Create virtual serial port:
  sudo socat PTY,link=/dev/ttyS10 PTY,link=/dev/ttyS11

Create rfcomm socket:
  server: rfcomm watch hci0 <channel>
  client: rfcomm connect <addr> <channel>

Testing (with Intel Edison):
  $ git checkout clientSim
  $ cd clientSimulator
  $ mkdir build; cd build; cmake ..; make; cd ..
  $ ./runTest build/{Test_bin}