Files
qt5-legatus-legacy/Lts/Tools/Mout/bsmHit.html
T
2026-08-13 18:33:10 +02:00

124 lines
4.7 KiB
HTML
Executable File

<!DOCTYPE HTML>
<meta charset="utf-8" />
<html>
<head>
<title>BSM-Hit</title>
<style>
th {
text-align: left;
}
table {
text-align: left;
table-layout: fixed;
width: 100%;
}
</style>
<link rel="stylesheet" href="libs/jquery/jquery.mobile-1.4.5.min.css" />
<script src="libs/jquery/jquery-1.11.1.min.js"></script>
<script src="libs/jquery/jquery.mobile-1.4.5.min.js"></script>
<script type="text/javascript" src="js/bsmHit.js"></script>
</head>
<body>
<table style="width:40.5%" id="HeaderTable">
<tr id="HeaderTableRow">
<td>
<form action="Javascript:connect()">
<input id="ipadresse" placeholder="EXCTDS01:2080" value="EXCTDS01:2080">
<input type="submit" id="create" value="Connect to Server" onclick="Javascript:connect()">
</form>
</td>
<td>
<div id="Serverconnect">
<font color="red">
Server: not connected
</font>
</div>
</td>
</tr>
</table>
<font color="black">
<H2> Port für
<em>Connect to Server</em> finden:</H2>
<H3>Bei vielen Gebäuden:</H3>
<b>- in der Tabelle ism.is_main_structure_element die id zum Gebäude suchen</b>
<br>
<b>- die zugehörige PID suchen:</b>
<BLOCKQUOTE>
<em>ps ax|grep xxx</em> (xxx ist die id des Gebäudes)
</BLOCKQUOTE>
<b>- den zugehörigen Port suchen:</b>
<BLOCKQUOTE>
<em>ss -anp | grep xxx</em> (xxx ist die PID des Buildingprozesses)
</BLOCKQUOTE>
<H3>Bei einem Gebäude:</H3>
<BLOCKQUOTE>
<b>PID suchen: </b>
<em>ps ax|grep BuildingControlUnit </em><br>
<b>Port suchen: </b>
<em>ss -anp | grep PID </em><br>
Der Port ist im Eintrag von LISTEN... <br>
Der Port muss bei Connect to Server genommen werden.<br>
Beispiel: localhost:36501 oder EXCTDS06:36501<br>
<b>sensorId suchen:</b> <BR>
ggf. Sensormodul mounten: ToolOverview: Input and show Participant Positions (Justus-Tool)<br>
Asset type: BuildingSensorModule
cat /tmp/bldg_301_building_config.xml
</BLOCKQUOTE>
<H3>Ein komplexes Kommando:</H3>
<BLOCKQUOTE>
<font color="red">
<em>ss -anp | grep `ps -elf | grep BuildingControlUnit | grep <b>XXX</b> | awk -F ' ' '{print $4 }'` | grep LISTEN | awk -F ' ' '{print $5 }' | cut -d':' -f2</em>
</font>
</BLOCKQUOTE>
<br>
</font>
<div class="ui-grid-a">
<div class="ui-block-a">
<label for="sensorId" class="input">sensorId: (/tmp/bldg_xxx_building_config.xml)</label>
</div>
<div class="ui-block-b">
<input type="sensorId" value="11005" id="sensorId" name="sensorId" />
</div>
</div>
<div class="ui-grid-a">
<div class="ui-block-a">
<label for="originatorId" class="input">originatorId (Equipment-Number):</label>
</div>
<div class="ui-block-b">
<input type="originatorId" value="1" id="originatorId" name="originatorId" />
</div>
</div>
<div class="ui-grid-a">
<div class="ui-block-a">
<label for="tasCodeDirect" class="input">tasCodeDirect:</label>
</div>
<div class="ui-block-b">
<input type="tasCodeDirect" value="1" id="tasCodeDirect" name="tasCodeDirect" />
</div>
</div>
<div class="ui-grid-a">
<div class="ui-block-a">
<label for="deposition1" class="input">deposition1:</label>
</div>
<div class="ui-block-b">
<input type="deposition1" value="0" id="deposition1" name="deposition1" />
</div>
</div>
<div class="ui-grid-a">
<div class="ui-block-a">
<label for="deposition2" class="input">deposition2:</label>
</div>
<div class="ui-block-b">
<input type="deposition2" value="0" id="deposition2" name="deposition2" />
</div>
</div>
<div id="Send Hit">
<input type="button" id="create" value="Send BSM Direct Hit" onclick="Javascript:sendBsmHit()">
</div>
</body>