Changes between Version 2 and Version 3 of Tutorials/Wireless/education-toolkit-sb1


Ignore:
Timestamp:
Sep 22, 2020, 1:51:14 AM (4 years ago)
Author:
skrimpon
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Tutorials/Wireless/education-toolkit-sb1

    v2 v3  
    4545
    4646=== Experiment Execution ===
    47 After setting up the nodes, we can now start exploring the K--12 wireless labs. To run the experiments we use a web friently interface
     47After setting up the nodes, we can now start exploring the K--12 STEM educational labs. To run the experiments we have developed a user-friendly web interface based on HTML and CSS, and back-end web-server developed in python that will control
     48and orchestrate the experiments.
    4849
    49 To execute the experiment and use the web framework you need to connect to the cosmos-sb1 and enable
    50 the HTTP port forwarding by using the following command:
     50To visualize the front-end web interface we need to forward the port 80 of the remote node to the local host. For the sdr2-s1-lg1 we will use port 8081, while for the sdr2-md1 we will use the 8082. To communicate with the back-end server we need to forward the port 8090 of the remote node to the local host. For the sdr2-s1-lg1 we will use port 8091, while for the sdr2-md1 we will use the 8092. Some of the experiments require to use audio at the transmitter or the receiver, for this purpose we create a TCP socket at port 8100 of the remote node. To forward port 8100 we will use port 8101 for the sdr2-s1-lg1, and port 8102 for sdr2-md1. At the host computer we developed a very simple python program that is attached at the bottom of the page. The program connects to the server that is running at the remote node, and outputs the received data to the local audio card.
     51
     52Almost all the GNU Radio experiments require the use of a QT GUI. For this reason, when you are connecting to sb1 and the node you should use either the -X or -Y option. This will forward the X-Server from the remote node to the local node.
     53
     54In order to to enable the port and X-Server forwarding for the sdr2-s1-lg1 you need to open a new terminal and execute the following commands:
    5155{{{#!shell-session
    52 not_a_user@laptop:~$ ssh -Y your_username@console.sb1.cosmos-lab.org 8080:sdr2-s1-lg1:80 8090:sdr2-s1-lg1:8090 8100:sdr2-s1-lg1:8100
     56not_a_user@laptop:~$ ssh -Y your_username@console.sb1.cosmos-lab.org -L 8081:sdr2-s1-lg1:80 -L 8091:sdr2-s1-lg1:8090 -L 8101:sdr2-s1-lg1:8100
    5357your_username@console:~$ ssh -Y root@sdr2-s1-lg1
    5458}}}
    5559
    56 Now in you need to open a new ssh session in order to enable the HTTP forwarding for the sdr2-md1
    57 
     60In order to to enable the port and X-Server forwarding for the sdr2-md1 you need to open a new terminal and execute the following commands:
    5861{{{#!shell-session
    59 not_a_user@laptop:~$ ssh -Y your_username@console.sb1.cosmos-lab.org 8082:sdr2-s1-lg1:80 8092:sdr2-s1-lg1:8090 8102:sdr2-s1-lg1:8100
     62not_a_user@laptop:~$ ssh -Y your_username@console.sb1.cosmos-lab.org -L 8082:sdr2-md1:80 -L 8092:sdr2-md1:8090 -L 8102:sdr2-md1:8100
    6063your_username@console:~$ ssh -Y root@sdr2-md1
    6164}}}
     65
     66Now you are ready to start exploring the COSMOS K--12 educational labs. To connect to the web interface of sdr2-s1-lg1 press the following link [https://localhost:8081], and to connect to the web interface of sdr2-md1 press the following link [https://localhost:8081]