création d'un script de lancement

This commit is contained in:
FARINA Louis 2021-09-01 11:55:07 +02:00
parent d39c0de48e
commit db4aa33b6b
63 changed files with 342 additions and 90 deletions

1
RSTP_DSLink/.keys Normal file
View file

@ -0,0 +1 @@
N8Q5z2KAlHMQ6dEQHh2yydkoQuEhqI8/JmuXoe25tfA= BAuALlcXfgWF7YCzQ1SKiXlK2pExdUgIHPiCrQoupuuxEcXtej/HDf6WPfS8mh66BWMhszY4SGbG3qqvDmW2kpE=

Binary file not shown.

View file

@ -0,0 +1,5 @@
@echo off
IF "%1"=="" (SET "Server=localhost:8080") ELSE (SET "Server=%1")
echo Connecting to %Server%...
RSTP_DSLink\bin\Release\netcoreapp3.1\RSTP_DSLink.exe --name RTSP --broker http://%Server%/conn
pause

View file

@ -218,6 +218,7 @@ namespace RTSP_DSLink
if (streamRootNode == null) return;
if (streamRootNode.Children.ContainsKey(streamName)) return;
//on part du port 8081 et on scanne les ports jusqu'à en trouver un inutilisé
while (PortInUse(port))
port++;
@ -235,17 +236,11 @@ namespace RTSP_DSLink
}
}*/
var stream = streamRootNode.CreateChild(streamName, "stream").BuildNode();
stream.Value.Set(port);
stream.CreateChild("remove", "removeNode").BuildNode();
/*System.Diagnostics.Process.Start("CMD.exe", "/C \"C:\\Program Files\\VideoLAN\\VLC\\VLC.exe\"" +
" -vvv -Idummy " + address + " --sout #transcode{vcodec=MJPG,venc=ffmpeg{strict=1}}" +
":standard{access=http{mime=multipart/x-mixed-replace;boundary=--7b3cc56e5f51db803f790dad720ed50a}," +
"mux=mpjpeg,dst=:" + port + "/} vlc://quit;");*/
var proc = new Process {
StartInfo = new ProcessStartInfo
{
@ -257,7 +252,8 @@ namespace RTSP_DSLink
RedirectStandardOutput = false,
CreateNoWindow = true
}};
proc.Start();
proc.Start();//on lance la conversion du stream avec VLC
_processes.Add(streamName, proc);
await request.Close();
@ -274,27 +270,23 @@ namespace RTSP_DSLink
try
{
var alarmName = request.Parameters["Alarm name"].Value<string>();
//var cameraName = request.Parameters["Camera name"].Value<string>();
var address = request.Parameters["Raspberry Pi IP Address"].Value<string>();
var port = request.Parameters["Port Number"].Value<int>();
var pin = request.Parameters["GPIO Pin"].Value<int>();
Responder.SuperRoot.Children.TryGetValue("alarms", out Node alarmRootNode);
if (string.IsNullOrEmpty(alarmName)) return;
//if (string.IsNullOrEmpty(cameraName)) return;
if (alarmRootNode.Children.ContainsKey(alarmName)) return;
//if (!Responder.SuperRoot.Children.ContainsKey(cameraName)) return;
var alarm = alarmRootNode.CreateChild(alarmName, "alarm").BuildNode();
alarm.CreateChild("remove", "removeNode").BuildNode();
var ts = new CancellationTokenSource();
CancellationToken ct = ts.Token;
//on lance une tâche en parallèle, qui observe la pin et met à jour la valeur du noeud
Task.Run(() => _updateAlarm(alarm, address, port, pin, ct));
_alarmCTs.Add(alarmName, ts);
await request.Close();
await SaveNodes();
}
@ -324,6 +316,7 @@ namespace RTSP_DSLink
{
if (node.ClassName == "stream")
{
//si le noeud est un stream, on tue le processus VLC associé
var port = node.Value.Int;
_processes.TryGetValue(nodeName, out Process proc);
if (proc != null)
@ -337,6 +330,7 @@ namespace RTSP_DSLink
}
else if (node.ClassName == "alarm")
{
//si le noeud est une alarme, on arrête la tâche associée
_alarmCTs.TryGetValue(nodeName, out CancellationTokenSource ts);
if (ts != null)
ts.Cancel();
@ -371,15 +365,16 @@ namespace RTSP_DSLink
controller.SetPinMode(pin, PinMode.InputPullUp);
while (!ct.IsCancellationRequested)
//boucle infinie, qui s'arrête uniquement lorsque l'on annule la tâche
{
controller.WaitForEvent(pin, PinEventTypes.Falling, ct);
if (!ct.IsCancellationRequested)
{
Console.WriteLine("Beep boop");
// Console.WriteLine("Beep boop");
alarm.Value.Set(true);
}
}
Console.WriteLine("Task cancelled");
//Console.WriteLine("Task cancelled");
controller.ClosePin(pin);
}
}

View file

@ -13,3 +13,39 @@
2021-08-10 15:18:13.656 +02:00 [Information] Connecting
2021-08-10 15:18:13.694 +02:00 [Information] WebSocket connecting to ws://192.168.1.54:8080/ws?dsId=RTSP-OMdrHg0avIBTMlApcGJyO6F7_WThL5P0aIxLoTJwYrs&auth=0WXjdydamm39OqRForInn9t_ALW3ViShWWfAyLKMugg&format=msgpack
2021-08-10 15:18:13.899 +02:00 [Information] Connected to ws://192.168.1.54:8080/ws?dsId=RTSP-OMdrHg0avIBTMlApcGJyO6F7_WThL5P0aIxLoTJwYrs&auth=0WXjdydamm39OqRForInn9t_ALW3ViShWWfAyLKMugg&format=msgpack
2021-08-10 16:27:29.812 +02:00 [Information] Handshaking with 192.168.1.54:8081/conn?dsId=RTSP-OMdrHg0avIBTMlApcGJyO6F7_WThL5P0aIxLoTJwYrs
2021-08-10 16:27:29.968 +02:00 [Warning] An invalid request URI was provided. The request URI must either be an absolute URI or BaseAddress must be set.
2021-08-10 16:27:29.971 +02:00 [Warning] Failed to connect, delaying for 1 seconds
2021-08-10 16:27:30.984 +02:00 [Information] Handshaking with 192.168.1.54:8081/conn?dsId=RTSP-OMdrHg0avIBTMlApcGJyO6F7_WThL5P0aIxLoTJwYrs
2021-08-10 16:27:30.987 +02:00 [Warning] An invalid request URI was provided. The request URI must either be an absolute URI or BaseAddress must be set.
2021-08-10 16:27:30.988 +02:00 [Warning] Failed to connect, delaying for 2 seconds
2021-08-10 16:27:32.996 +02:00 [Information] Handshaking with 192.168.1.54:8081/conn?dsId=RTSP-OMdrHg0avIBTMlApcGJyO6F7_WThL5P0aIxLoTJwYrs
2021-08-10 16:27:33.000 +02:00 [Warning] An invalid request URI was provided. The request URI must either be an absolute URI or BaseAddress must be set.
2021-08-10 16:27:33.001 +02:00 [Warning] Failed to connect, delaying for 3 seconds
2021-08-10 16:27:36.018 +02:00 [Information] Handshaking with 192.168.1.54:8081/conn?dsId=RTSP-OMdrHg0avIBTMlApcGJyO6F7_WThL5P0aIxLoTJwYrs
2021-08-10 16:27:36.021 +02:00 [Warning] An invalid request URI was provided. The request URI must either be an absolute URI or BaseAddress must be set.
2021-08-10 16:27:36.022 +02:00 [Warning] Failed to connect, delaying for 4 seconds
2021-08-10 16:27:42.897 +02:00 [Information] Handshaking with 192.168.1.54:8080/conn?dsId=RTSP-OMdrHg0avIBTMlApcGJyO6F7_WThL5P0aIxLoTJwYrs
2021-08-10 16:27:42.974 +02:00 [Warning] An invalid request URI was provided. The request URI must either be an absolute URI or BaseAddress must be set.
2021-08-10 16:27:42.979 +02:00 [Warning] Failed to connect, delaying for 1 seconds
2021-08-10 16:27:43.994 +02:00 [Information] Handshaking with 192.168.1.54:8080/conn?dsId=RTSP-OMdrHg0avIBTMlApcGJyO6F7_WThL5P0aIxLoTJwYrs
2021-08-10 16:27:43.997 +02:00 [Warning] An invalid request URI was provided. The request URI must either be an absolute URI or BaseAddress must be set.
2021-08-10 16:27:43.999 +02:00 [Warning] Failed to connect, delaying for 2 seconds
2021-08-10 16:27:46.001 +02:00 [Information] Handshaking with 192.168.1.54:8080/conn?dsId=RTSP-OMdrHg0avIBTMlApcGJyO6F7_WThL5P0aIxLoTJwYrs
2021-08-10 16:27:46.006 +02:00 [Warning] An invalid request URI was provided. The request URI must either be an absolute URI or BaseAddress must be set.
2021-08-10 16:27:46.007 +02:00 [Warning] Failed to connect, delaying for 3 seconds
2021-08-10 16:28:05.491 +02:00 [Information] Handshaking with http://192.168.1.54:8080/conn?dsId=RTSP-OMdrHg0avIBTMlApcGJyO6F7_WThL5P0aIxLoTJwYrs
2021-08-10 16:28:05.746 +02:00 [Information] Handshake successful
2021-08-10 16:28:05.878 +02:00 [Information] Connecting
2021-08-10 16:28:05.904 +02:00 [Information] WebSocket connecting to ws://192.168.1.54:8080/ws?dsId=RTSP-OMdrHg0avIBTMlApcGJyO6F7_WThL5P0aIxLoTJwYrs&auth=Xn-PoACDHlFYCltU8XDA5T4LVH1xOFb_kX5oV_18B9I&format=msgpack
2021-08-10 16:28:05.950 +02:00 [Information] Connected to ws://192.168.1.54:8080/ws?dsId=RTSP-OMdrHg0avIBTMlApcGJyO6F7_WThL5P0aIxLoTJwYrs&auth=Xn-PoACDHlFYCltU8XDA5T4LVH1xOFb_kX5oV_18B9I&format=msgpack
2021-08-10 16:53:16.405 +02:00 [Information] Handshaking with http://192.168.1.54:8080/conn?dsId=RTSP-OMdrHg0avIBTMlApcGJyO6F7_WThL5P0aIxLoTJwYrs
2021-08-10 16:53:16.595 +02:00 [Information] Handshake successful
2021-08-10 16:53:16.669 +02:00 [Information] Connecting
2021-08-10 16:53:16.695 +02:00 [Information] WebSocket connecting to ws://192.168.1.54:8080/ws?dsId=RTSP-OMdrHg0avIBTMlApcGJyO6F7_WThL5P0aIxLoTJwYrs&auth=zUN0cCbT5Q_AijaCHuTbqABToNwffoz-mY6YhCkRn-0&format=msgpack
2021-08-10 16:53:16.733 +02:00 [Information] Connected to ws://192.168.1.54:8080/ws?dsId=RTSP-OMdrHg0avIBTMlApcGJyO6F7_WThL5P0aIxLoTJwYrs&auth=zUN0cCbT5Q_AijaCHuTbqABToNwffoz-mY6YhCkRn-0&format=msgpack
2021-08-10 16:54:10.115 +02:00 [Information] Handshaking with http://192.168.1.54:8080/conn?dsId=RTSP-OMdrHg0avIBTMlApcGJyO6F7_WThL5P0aIxLoTJwYrs
2021-08-10 16:54:10.411 +02:00 [Information] Handshake successful
2021-08-10 16:54:10.490 +02:00 [Information] Connecting
2021-08-10 16:54:10.520 +02:00 [Information] WebSocket connecting to ws://192.168.1.54:8080/ws?dsId=RTSP-OMdrHg0avIBTMlApcGJyO6F7_WThL5P0aIxLoTJwYrs&auth=EBj7OaHqqULVaG4f8BDz8wVHXfNi1y7gK1xQUXHNu_Y&format=msgpack
2021-08-10 16:54:10.568 +02:00 [Information] Connected to ws://192.168.1.54:8080/ws?dsId=RTSP-OMdrHg0avIBTMlApcGJyO6F7_WThL5P0aIxLoTJwYrs&auth=EBj7OaHqqULVaG4f8BDz8wVHXfNi1y7gK1xQUXHNu_Y&format=msgpack

View file

@ -44,12 +44,16 @@
"?class": "alarmAdd"
},
"alarms": {
"$is": "node",
"privateConfigs": {}
},
"streams": {
"$is": "node",
"privateConfigs": {},
"alarme1": {
"$is": "alarm",
"cam1": {
"$is": "stream",
"$writable": "read",
"$type": "bool",
"$type": "number",
"privateConfigs": {},
"remove": {
"$is": "removeNode",
@ -58,13 +62,9 @@
"privateConfigs": {},
"?class": "removeNode"
},
"?value": false,
"?class": "alarm"
}
},
"streams": {
"$is": "node",
"privateConfigs": {},
"?value": 8081,
"?class": "stream"
},
"cam2": {
"$is": "stream",
"$writable": "read",

View file

@ -0,0 +1 @@
fIgmfeM4nBrEf43FIOdny7uAizMiakwwRTOUDJVwRPk= BD4VtDgSTQLXvSGmAj0KzgfmuPFyjXWn7HOB55vmddffYM2+y2cUqE3MSomVTblds7J4qTimNbJ8suRwec7sUls=

View file

@ -0,0 +1,11 @@
2021-08-10 16:29:29.035 +02:00 [Warning] Failed to load nodes.json
2021-08-10 16:29:29.099 +02:00 [Warning] File does not exist: C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\nodes.json
2021-08-10 16:29:29.419 +02:00 [Warning] at StandardStorage.Folder.GetFileAsync(String name, CancellationToken cancellationToken)
at DSLink.VFS.SystemVFS._getFile(String fileName)
at DSLink.VFS.SystemVFS.ReadAsync(String fileName)
at DSLink.Respond.DiskSerializer.DeserializeFromDisk()
2021-08-10 16:29:29.559 +02:00 [Information] Handshaking with http://192.168.1.54:8080/conn?dsId=RTSP-kmS3ZynUOMIfzu1iULqqkTVS9SjCbL8iVeCkne0XCe0
2021-08-10 16:29:29.851 +02:00 [Information] Handshake successful
2021-08-10 16:29:30.102 +02:00 [Information] Connecting
2021-08-10 16:29:30.112 +02:00 [Information] WebSocket connecting to ws://192.168.1.54:8080/ws?dsId=RTSP-kmS3ZynUOMIfzu1iULqqkTVS9SjCbL8iVeCkne0XCe0&auth=vKUt6sCqqK4mOVAHm1qLyQ7_KbM0eeowXNgul_fieOg&format=msgpack
2021-08-10 16:29:30.217 +02:00 [Information] Connected to ws://192.168.1.54:8080/ws?dsId=RTSP-kmS3ZynUOMIfzu1iULqqkTVS9SjCbL8iVeCkne0XCe0&auth=vKUt6sCqqK4mOVAHm1qLyQ7_KbM0eeowXNgul_fieOg&format=msgpack

View file

@ -0,0 +1,54 @@
{
"$is": "node",
"privateConfigs": {},
"createStream": {
"$is": "streamAdd",
"$name": "Add Stream",
"$params": [
{
"name": "RSTP URL",
"type": "string"
},
{
"name": "Stream name",
"type": "string"
}
],
"$invokable": "config",
"privateConfigs": {},
"?class": "streamAdd"
},
"createAlarm": {
"$is": "alarmAdd",
"$name": "Add Alarm",
"$params": [
{
"name": "Alarm name",
"type": "string"
},
{
"name": "Raspberry Pi IP Address",
"type": "string"
},
{
"name": "Port Number",
"type": "number"
},
{
"name": "GPIO Pin",
"type": "number"
}
],
"$invokable": "config",
"privateConfigs": {},
"?class": "alarmAdd"
},
"alarms": {
"$is": "node",
"privateConfigs": {}
},
"streams": {
"$is": "node",
"privateConfigs": {}
}
}

View file

@ -1,23 +0,0 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Ce code a été généré par un outil.
// Version du runtime :4.0.30319.42000
//
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
// le code est régénéré.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("RSTP_DSLink")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("RSTP_DSLink")]
[assembly: System.Reflection.AssemblyTitleAttribute("RSTP_DSLink")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Généré par la classe MSBuild WriteCodeFragment.

View file

@ -1 +0,0 @@
1460c99dfa21333b31a4af92cc4c18110ef62d56

View file

@ -1 +0,0 @@
38f2e3c6f718af46c0bc45eb96010e1b0699066e

View file

@ -1,40 +0,0 @@
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\RSTP_DSLink.exe
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\RSTP_DSLink.deps.json
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\RSTP_DSLink.runtimeconfig.json
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\RSTP_DSLink.runtimeconfig.dev.json
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\RSTP_DSLink.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\RSTP_DSLink.pdb
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\CommandLine.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\MsgPack.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\Newtonsoft.Json.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\BouncyCastle.Crypto.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\Serilog.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\Serilog.Sinks.Console.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\Serilog.Sinks.Debug.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\Serilog.Sinks.File.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\Serilog.Sinks.RollingFile.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\StandardStorage.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\System.CodeDom.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\System.Security.Permissions.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\DSLink.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\obj\Debug\netcoreapp3.1\RSTP_DSLink.AssemblyInfoInputs.cache
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\obj\Debug\netcoreapp3.1\RSTP_DSLink.AssemblyInfo.cs
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\obj\Debug\netcoreapp3.1\RSTP_DSLink.csproj.CoreCompileInputs.cache
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\obj\Debug\netcoreapp3.1\RSTP_DSLink.csproj.CopyComplete
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\obj\Debug\netcoreapp3.1\RSTP_DSLink.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\obj\Debug\netcoreapp3.1\RSTP_DSLink.pdb
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\obj\Debug\netcoreapp3.1\RSTP_DSLink.genruntimeconfig.cache
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\Unosquare.Raspberry.Abstractions.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\Unosquare.RaspberryIO.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\Unosquare.RaspberryIO.Peripherals.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\Swan.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\Swan.Lite.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\Microsoft.Win32.Registry.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\System.Device.Gpio.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\System.Security.AccessControl.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\System.Security.Principal.Windows.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\runtimes\win\lib\netstandard2.0\Microsoft.Win32.Registry.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\runtimes\win\lib\netcoreapp2.0\System.Security.AccessControl.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\runtimes\unix\lib\netcoreapp2.1\System.Security.Principal.Windows.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Debug\netcoreapp3.1\runtimes\win\lib\netcoreapp2.1\System.Security.Principal.Windows.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\obj\Debug\netcoreapp3.1\RSTP_DSLink.csproj.AssemblyReference.cache

View file

@ -0,0 +1 @@
b15dba5b2e0439cf47130707df06b242186a9c06

View file

@ -0,0 +1,40 @@
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\RSTP_DSLink.exe
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\RSTP_DSLink.deps.json
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\RSTP_DSLink.runtimeconfig.json
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\RSTP_DSLink.runtimeconfig.dev.json
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\RSTP_DSLink.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\RSTP_DSLink.pdb
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\CommandLine.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\Microsoft.Win32.Registry.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\MsgPack.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\Newtonsoft.Json.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\BouncyCastle.Crypto.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\Serilog.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\Serilog.Sinks.Console.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\Serilog.Sinks.Debug.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\Serilog.Sinks.File.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\Serilog.Sinks.RollingFile.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\StandardStorage.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\System.CodeDom.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\System.Device.Gpio.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\System.Security.AccessControl.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\System.Security.Permissions.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\System.Security.Principal.Windows.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\Unosquare.Raspberry.Abstractions.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\Unosquare.RaspberryIO.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\Unosquare.RaspberryIO.Peripherals.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\Swan.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\Swan.Lite.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\runtimes\win\lib\netstandard2.0\Microsoft.Win32.Registry.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\runtimes\win\lib\netcoreapp2.0\System.Security.AccessControl.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\runtimes\unix\lib\netcoreapp2.1\System.Security.Principal.Windows.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\runtimes\win\lib\netcoreapp2.1\System.Security.Principal.Windows.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\bin\Release\netcoreapp3.1\DSLink.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\obj\Release\netcoreapp3.1\RSTP_DSLink.csproj.AssemblyReference.cache
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\obj\Release\netcoreapp3.1\RSTP_DSLink.AssemblyInfoInputs.cache
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\obj\Release\netcoreapp3.1\RSTP_DSLink.AssemblyInfo.cs
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\obj\Release\netcoreapp3.1\RSTP_DSLink.csproj.CoreCompileInputs.cache
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\obj\Release\netcoreapp3.1\RSTP_DSLink.csproj.CopyComplete
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\obj\Release\netcoreapp3.1\RSTP_DSLink.dll
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\obj\Release\netcoreapp3.1\RSTP_DSLink.pdb
C:\Users\l.farina\Desktop\UCRM_stage\RSTP_DSLink\RSTP_DSLink\obj\Release\netcoreapp3.1\RSTP_DSLink.genruntimeconfig.cache

View file

@ -0,0 +1,25 @@
2021-08-11 09:22:15.404 +02:00 [Information] Handshaking with http://192.168.1.54:8080/conn?dsId=RTSP-LVHIFD8Yqt1CIfLypVNnn8lDhrTHfJ-mbFNvADcENyk
2021-08-11 09:22:15.836 +02:00 [Information] Handshake successful
2021-08-11 09:22:15.930 +02:00 [Information] Connecting
2021-08-11 09:22:15.958 +02:00 [Information] WebSocket connecting to ws://192.168.1.54:8080/ws?dsId=RTSP-LVHIFD8Yqt1CIfLypVNnn8lDhrTHfJ-mbFNvADcENyk&auth=-5UqwsCcQAqr0JBT5RhHrlj5R2bU5BpyyBpA1u0r4zQ&format=msgpack
2021-08-11 09:22:16.008 +02:00 [Information] Connected to ws://192.168.1.54:8080/ws?dsId=RTSP-LVHIFD8Yqt1CIfLypVNnn8lDhrTHfJ-mbFNvADcENyk&auth=-5UqwsCcQAqr0JBT5RhHrlj5R2bU5BpyyBpA1u0r4zQ&format=msgpack
2021-08-11 19:37:17.941 +02:00 [Error] Exception processing message from web socket.
System.Net.WebSockets.WebSocketException (0x80004005): The remote party closed the WebSocket connection without completing the close handshake.
---> System.IO.IOException: Unable to read data from the transport connection: Une tentative de connexion a échoué car le parti connecté na pas répondu convenablement au-delà dune certaine durée ou une connexion établie a échoué car lhôte de connexion na pas répondu..
---> System.Net.Sockets.SocketException (10060): Une tentative de connexion a échoué car le parti connecté na pas répondu convenablement au-delà dune certaine durée ou une connexion établie a échoué car lhôte de connexion na pas répondu.
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)
at System.Net.Http.HttpConnection.ReadBufferedAsyncCore(Memory`1 destination)
at System.Net.Http.HttpConnection.RawConnectionStream.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken)
at System.Net.WebSockets.ManagedWebSocket.EnsureBufferContainsAsync(Int32 minimumRequiredBytes, CancellationToken cancellationToken, Boolean throwOnPrematureClosure)
at System.Net.WebSockets.ManagedWebSocket.ReceiveAsyncPrivate[TWebSocketReceiveResultGetter,TWebSocketReceiveResult](Memory`1 payloadBuffer, CancellationToken cancellationToken, TWebSocketReceiveResultGetter resultGetter)
at System.Net.WebSockets.ManagedWebSocket.ReceiveAsyncPrivate[TWebSocketReceiveResultGetter,TWebSocketReceiveResult](Memory`1 payloadBuffer, CancellationToken cancellationToken, TWebSocketReceiveResultGetter resultGetter)
at DSLink.Connection.WebSocketConnector.<_startReceiveTask>b__11_0()
2021-08-11 19:37:18.436 +02:00 [Information] Disconnected
2021-08-11 19:37:18.443 +02:00 [Information] Handshaking with http://192.168.1.54:8080/conn?dsId=RTSP-LVHIFD8Yqt1CIfLypVNnn8lDhrTHfJ-mbFNvADcENyk
2021-08-11 19:37:18.468 +02:00 [Information] Disconnecting
2021-08-11 19:37:18.597 +02:00 [Information] Handshake successful
2021-08-11 19:37:18.609 +02:00 [Information] Connecting
2021-08-11 19:37:18.633 +02:00 [Information] WebSocket connecting to ws://192.168.1.54:8080/ws?dsId=RTSP-LVHIFD8Yqt1CIfLypVNnn8lDhrTHfJ-mbFNvADcENyk&auth=b1d4m92tOSp-W-KJvqwTUY-299irD8Q0Nn-fv2rDh9U&format=msgpack
2021-08-11 19:37:18.682 +02:00 [Information] Connected to ws://192.168.1.54:8080/ws?dsId=RTSP-LVHIFD8Yqt1CIfLypVNnn8lDhrTHfJ-mbFNvADcENyk&auth=b1d4m92tOSp-W-KJvqwTUY-299irD8Q0Nn-fv2rDh9U&format=msgpack

View file

@ -0,0 +1,22 @@
2021-08-12 09:12:23.191 +02:00 [Information] Handshaking with http://localhost:8080/conn?dsId=RTSP-LVHIFD8Yqt1CIfLypVNnn8lDhrTHfJ-mbFNvADcENyk
2021-08-12 09:12:29.483 +02:00 [Error] Exception processing message from web socket.
System.Net.WebSockets.WebSocketException (0x80004005): The remote party closed the WebSocket connection without completing the close handshake.
---> System.IO.IOException: Unable to read data from the transport connection: Une tentative de connexion a échoué car le parti connecté na pas répondu convenablement au-delà dune certaine durée ou une connexion établie a échoué car lhôte de connexion na pas répondu..
---> System.Net.Sockets.SocketException (10060): Une tentative de connexion a échoué car le parti connecté na pas répondu convenablement au-delà dune certaine durée ou une connexion établie a échoué car lhôte de connexion na pas répondu.
--- End of inner exception stack trace ---
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.GetResult(Int16 token)
at System.Net.Http.HttpConnection.ReadBufferedAsyncCore(Memory`1 destination)
at System.Net.Http.HttpConnection.RawConnectionStream.ReadAsync(Memory`1 buffer, CancellationToken cancellationToken)
at System.Net.WebSockets.ManagedWebSocket.EnsureBufferContainsAsync(Int32 minimumRequiredBytes, CancellationToken cancellationToken, Boolean throwOnPrematureClosure)
at System.Net.WebSockets.ManagedWebSocket.ReceiveAsyncPrivate[TWebSocketReceiveResultGetter,TWebSocketReceiveResult](Memory`1 payloadBuffer, CancellationToken cancellationToken, TWebSocketReceiveResultGetter resultGetter)
at System.Net.WebSockets.ManagedWebSocket.ReceiveAsyncPrivate[TWebSocketReceiveResultGetter,TWebSocketReceiveResult](Memory`1 payloadBuffer, CancellationToken cancellationToken, TWebSocketReceiveResultGetter resultGetter)
at DSLink.Connection.WebSocketConnector.<_startReceiveTask>b__11_0()
2021-08-12 09:12:29.551 +02:00 [Information] Disconnected
2021-08-12 09:12:29.556 +02:00 [Information] Handshaking with http://192.168.1.54:8080/conn?dsId=RTSP-LVHIFD8Yqt1CIfLypVNnn8lDhrTHfJ-mbFNvADcENyk
2021-08-12 09:12:29.570 +02:00 [Information] Disconnecting
2021-08-12 12:24:00.446 +02:00 [Information] Handshaking with http://192.168.1.54:8080/conn?dsId=RTSP-LVHIFD8Yqt1CIfLypVNnn8lDhrTHfJ-mbFNvADcENyk
2021-08-12 12:24:01.198 +02:00 [Information] Handshake successful
2021-08-12 12:24:01.829 +02:00 [Information] Connecting
2021-08-12 12:24:01.855 +02:00 [Information] WebSocket connecting to ws://192.168.1.54:8080/ws?dsId=RTSP-LVHIFD8Yqt1CIfLypVNnn8lDhrTHfJ-mbFNvADcENyk&auth=vylINg-2bRKqlwthjnw2lshbHVo2Q9kRZ5K_WZ8cSEM&format=msgpack
2021-08-12 12:24:02.041 +02:00 [Information] Connected to ws://192.168.1.54:8080/ws?dsId=RTSP-LVHIFD8Yqt1CIfLypVNnn8lDhrTHfJ-mbFNvADcENyk&auth=vylINg-2bRKqlwthjnw2lshbHVo2Q9kRZ5K_WZ8cSEM&format=msgpack

View file

@ -0,0 +1,12 @@
2021-08-16 09:13:05.257 +02:00 [Information] Handshaking with http://localhost:8080/conn?dsId=RTSP-LVHIFD8Yqt1CIfLypVNnn8lDhrTHfJ-mbFNvADcENyk
2021-08-16 09:13:25.614 +02:00 [Information] Handshaking with http://192.168.1.54/conn?dsId=RTSP-LVHIFD8Yqt1CIfLypVNnn8lDhrTHfJ-mbFNvADcENyk
2021-08-16 09:13:26.234 +02:00 [Warning] Failed to connect, delaying for 1 seconds
2021-08-16 09:13:27.245 +02:00 [Information] Handshaking with http://192.168.1.54/conn?dsId=RTSP-LVHIFD8Yqt1CIfLypVNnn8lDhrTHfJ-mbFNvADcENyk
2021-08-16 09:13:27.271 +02:00 [Warning] Failed to connect, delaying for 2 seconds
2021-08-16 09:13:29.283 +02:00 [Information] Handshaking with http://192.168.1.54/conn?dsId=RTSP-LVHIFD8Yqt1CIfLypVNnn8lDhrTHfJ-mbFNvADcENyk
2021-08-16 09:13:29.293 +02:00 [Warning] Failed to connect, delaying for 3 seconds
2021-08-16 09:13:47.191 +02:00 [Information] Handshaking with http://192.168.1.54:8080/conn?dsId=RTSP-LVHIFD8Yqt1CIfLypVNnn8lDhrTHfJ-mbFNvADcENyk
2021-08-16 09:13:47.646 +02:00 [Information] Handshake successful
2021-08-16 09:13:48.031 +02:00 [Information] Connecting
2021-08-16 09:13:48.058 +02:00 [Information] WebSocket connecting to ws://192.168.1.54:8080/ws?dsId=RTSP-LVHIFD8Yqt1CIfLypVNnn8lDhrTHfJ-mbFNvADcENyk&auth=f0jL3yNPfc1tB40pQ0wywhxFnsGEklpdkSOKW5Vx5Vc&format=msgpack
2021-08-16 09:13:48.265 +02:00 [Information] Connected to ws://192.168.1.54:8080/ws?dsId=RTSP-LVHIFD8Yqt1CIfLypVNnn8lDhrTHfJ-mbFNvADcENyk&auth=f0jL3yNPfc1tB40pQ0wywhxFnsGEklpdkSOKW5Vx5Vc&format=msgpack

114
RSTP_DSLink/nodes.json Normal file
View file

@ -0,0 +1,114 @@
{
"$is": "node",
"privateConfigs": {},
"createStream": {
"$is": "streamAdd",
"$name": "Add Stream",
"$params": [
{
"name": "RSTP URL",
"type": "string"
},
{
"name": "Stream name",
"type": "string"
}
],
"$invokable": "config",
"privateConfigs": {},
"?class": "streamAdd"
},
"createAlarm": {
"$is": "alarmAdd",
"$name": "Add Alarm",
"$params": [
{
"name": "Alarm name",
"type": "string"
},
{
"name": "Raspberry Pi IP Address",
"type": "string"
},
{
"name": "Port Number",
"type": "number"
},
{
"name": "GPIO Pin",
"type": "number"
}
],
"$invokable": "config",
"privateConfigs": {},
"?class": "alarmAdd"
},
"alarms": {
"$is": "node",
"privateConfigs": {},
"alarmebis": {
"$is": "alarm",
"$writable": "read",
"$type": "bool",
"privateConfigs": {},
"remove": {
"$is": "removeNode",
"$name": "Remove",
"$invokable": "config",
"privateConfigs": {},
"?class": "removeNode"
},
"?value": false,
"?class": "alarm"
},
"alarme": {
"$is": "alarm",
"$writable": "read",
"$type": "bool",
"privateConfigs": {},
"remove": {
"$is": "removeNode",
"$name": "Remove",
"$invokable": "config",
"privateConfigs": {},
"?class": "removeNode"
},
"?value": false,
"?class": "alarm"
}
},
"streams": {
"$is": "node",
"privateConfigs": {},
"CAMERA1": {
"$is": "stream",
"$writable": "read",
"$type": "number",
"privateConfigs": {},
"remove": {
"$is": "removeNode",
"$name": "Remove",
"$invokable": "config",
"privateConfigs": {},
"?class": "removeNode"
},
"?value": 8081,
"?class": "stream"
},
"CAMERA2": {
"$is": "stream",
"$writable": "read",
"$type": "number",
"privateConfigs": {},
"remove": {
"$is": "removeNode",
"$name": "Remove",
"$invokable": "config",
"privateConfigs": {},
"?class": "removeNode"
},
"?value": 8082,
"?class": "stream"
}
}
}