Ground Station Controlling Procedures

NodeJS server

To install the Dashboard into the Server you have to follow these steps:

  1. git clone https://github.com/granasat/GranaSATDashboard
    curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
    sudo apt-get install -y nodejs
  2. sudo apt-get install sqlite mysql
    sudo npm install bower -g
    npm install (install server dependencies)
    bower install (install client dependencies)
    
  3.  Copy configsample.json to config.json
  4. Modify config.json:”serial_rotors”: “/dev/ttyS1”,
    “serial_transceiver_keenwoodts2000”: “/dev/ttyS0”,
    “serial_transceiver_icom9100”: “/dev/ttyUSB0”,
  5. Modify app.js//Database stuff
    // var db = new require(“./utils/test_database.js”)()
    var db = new require(“./utils/database.js”)();
  6. Start NodeJS app with sudo to be able to read/write the COM ports.
    ginder@merxicol:~/GranaSATDashboard$ sudo node app.js
    31/10/2017 12:31:07 Info: [Recordings.js] Loading previous json file
    31/10/2017 12:31:07 Info: Web server listening: 0.0.0.0:8002
    31/10/2017 12:31:07 Info: Yaesu Rotors serial port opened
    31/10/2017 12:31:07 Info: ICOM 9100 serial port opened
    31/10/2017 12:31:08 Warn: Adding NOAA 19 to passes
    31/10/2017 12:31:08 Warn: Adding NOAA 18 to passes
    31/10/2017 12:31:08 Warn: Adding NOAA 15 to passes
    31/10/2017 12:31:08 Warn: Adding METEOR-M 2 to passes
    31/10/2017 12:31:08 Warn: Adding ISS (ZARYA) to passes
    31/10/2017 12:31:08 Warn: Adding E-ST@R-II to passes
    31/10/2017 12:31:08 Warn: Adding OUFTI-1 to passes
    31/10/2017 12:31:08 Warn: Adding FUNCUBE-1 (AO-73) to passes
    31/10/2017 12:31:08 Warn: Adding UKUBE-1 to passes
    31/10/2017 12:31:08 Warn: Calculating passes from Tue Oct 31 2017 12:31:08 GMT+0100 (CET) to Fri Nov 03 2017 12:31:08 GMT+0100 (CET)
    31/10/2017 12:31:59 Warn: Trying to login: trokotroko from 127.0.0.1
    31/10/2017 12:31:59 Info: Logged pablogs9 from 127.0.0.1
    31/10/2017 12:31:59 Warn: Picking up info of trokotroko
    31/10/2017 12:31:59 Info: Getting recordings
    31/10/2017 12:31:59 Warn: Picking up user list from trokotroko 127.0.0.1

ROTOR

To control the ROTOR it is necessary to open /dev/ttyS1 9600

ginder@merxicol:~$ sudo miniterm.py /dev/ttyS1 9600
— Miniterm on /dev/ttyS1 9600,8,N,1 —
— Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H —
?>C + ENTER
?>
?>
?>
-0001
?>C2 +ENTER
-0001+0000

ICOM 9100 TRANSCEIVER

To control the RS232 port of the ICOM9100 transceiver it is necessary to open /dev/ttyS1 9600

ginder@merxicol:~$ lsusb
Bus 001 Device 062: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Bus 001 Device 061: ID 08bb:2901 Texas Instruments PCM2901 Audio Codec
Bus 001 Device 060: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light
Bus 001 Device 059: ID 0451:2046 Texas Instruments, Inc. TUSB2046 Hub
Bus 001 Device 065: ID 046d:c50e Logitech, Inc. Cordless Mouse Receiver
Bus 001 Device 064: ID 04f3:0210 Elan Microelectronics Corp. Optical Mouse
Bus 001 Device 058: ID 1a40:0201 Terminus Technology Inc. FE 2.1 7-port Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 012: ID 1241:1503 Belkin Keyboard
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

ginder@merxicol:~$ sudo miniterm.py
[sudo] password for ginder:

— Available ports:
— 1: /dev/ttyS0 ttyS0
— 2: /dev/ttyS1 ttyS1
— 3: /dev/ttyUSB0 CP2102 USB to UART Bridge Controller
— 4: /dev/ttyUSB1 CP2102 USB to UART Bridge Controller
— Enter port index or full name: