- Clone the repository...
git clone https://github.com/SUITS-Techteam/TSS_2024.git
- Navigate into the root of the repository
- To build the TSS Server, run...
This will require the C compiler gcc.
./build.bat
- To run the TSS Server, run ...
./server.exe
You should see the following lines appear...
Hello World
Launching Server at IP: 192.168.51.109:14141
Configuring Local Address...
Creating Socket...
Binding Socket...
Listening...
To run the server on local host (which might be useful if using WSL) run the following command
./server.exe --local
You should see the following lines appear...
Hello World
Launching Server at IP: 127.0.0.1:14141
Configuring Local Address...
Creating Socket...
Binding Socket...
Listening...
- Type the IP address printed by the server into a web browser (Replace with your IP)
Make sure you are on the same network as the server when connecting to it.
http://192.168.51.109:14141
- From this website, you can interact with the TSS.
This is where you can monitor the state of the server, verify the display of your system, and virtually interact with the EVA devices like you will be doing in May.
Sensor | Value True | Value False | Description |
---|---|---|---|
EMU1 POWER | ON | OFF | Remotely powers the suit for EVA 1 |
EV1 SUPPLY | OPEN | CLOSED | Fills EVA 1's liquid coolant |
EV1 WASTE | OPEN | CLOSED | Flushes EVA 1's liquid coolant |
EV1 OXYGEN | OPEN | CLOSED | Fills EVA 1's oxygen tanks |
EMU2 POWER | ON | OFF | Remotely powers the suit for EVA 2 |
EV2 SUPPLY | OPEN | CLOSED | Fills EVA 1's liquid coolant |
EV2 WASTE | OPEN | CLOSED | Flushes EVA 1's liquid coolant |
EV2 OXYGEN | OPEN | CLOSED | Fills EVA 1's oxygen tanks |
O2 Vent | OPEN | CLOSED | Flushes both EVAs oxygen tanks |
DEPRESS PUMP | ON | OFF | Pressurizes both EVA suits |
Sensor | Value True | Value False | Description |
---|---|---|---|
BATTERY | SUIT BATT | UMBILICAL POWER | Describes if the suit is running off its local battery or UIA power |
OXYGEN | PRI TANK | SEC TANK | Describes if the suit is pulling from primary or secondary oxygen tanks |
COMMS | Channel A | Channel B | Describes if the suit is connected to Channel A or Channel B on comms |
FAN | PRI FAN | SEC FAN | Describes if the suit is using the primary fan or secondary fan |
PUMP | OPEN | CLOSED | Describes if the coolant pump for the suit is open or closed (allows water to be flushed or supplied) |
CO2 | Scrubber A | Scrubber B | Describes which scrubber is currently filling with CO2 (other is venting) |
Sensor | Value True | Value False | Description |
---|---|---|---|
COMM | ON | OFF | Describes if the comm tower is powered or not |
Value | Description |
---|---|
POSX | Eastward UTM Coordinates |
POSY | Northward UTM Coordinates |
HEADING | Direction Facing |
Value | Description |
---|---|
POSX | Eastward UTM Coordinates |
POSY | Northward UTM Coordinates |
QR ID | Last QR code read |
Value | Description |
---|---|
NAME | Name of the rock sample |
ID | ID of the rock sample |
DATA | Chemical composition of the rock sample |
- Server.c: contains the main function with a loop that processes HTTP messages and simulates data in the backend.
- Network.c: contains helper functions for the server to communicate with other devices.
- Server_data.c: contains the data that the server maintains and how that data is updated.
- public folder: contains a frontend for testing your device with TSS, along with all the json files that you will need from the server.
This server is based on "Network Programming in C" and builds off of the HTTPs example.