Sida 1 av 1
Testprogram för SOS Access V4 (Larmprotokoll)
Postat: 14 augusti 2008, 08:45:14
av digitaliz
Jag gjorde nyligen ett projekt som skulle prata med SOS Alarms larmcentral via deras öppna protokoll för larmöverföring över internet - SOS Access V4.
Protokollet är XML-baserat och ganska enkelt. För att skicka in ett larm gör man bara en TCP-anslutning och skickar:
Kod: Markera allt
<?xml version="1.0" encoding="ISO-8859-1"?>
<alarmrequest>
<authentication>hxp4x9nnwxjatv8</authentication>
<receiver>42</receiver>
<alarmtype>AL</alarmtype>
<transmittertype>SV300</transmittertype>
<transmittercode>1234567</transmittercode>
<eventcode>BA</eventcode>
</alarmrequest>
För att slippa testa mot larmcentralen varje gång så gjorde jag en testserver och en testklient som finns att ladda ner här:
http://www.bxo.se/sv/produkter/ovriga-p ... olbox.html
En skärmdump:
(Edit: uppdaterade URLer)
Postat: 14 augusti 2008, 10:23:26
av JimmyAndersson
Lysande idé!
En grejj bara:
Jag skulle avsluta klienten och fick upp en ruta med texten:
"Unhandled exception has occurred in your application. If you click
Continue, the application will ignore thiss error and attempt to continue.
If you click Quit, the application will close immediately.
Object reference not set to an instance of an object."
Klickade på Details och fick:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Bxo.SosAccessTester.ClientForm.ClientForm_FormClosed(Object sender, FormClosedEventArgs e)
at System.Windows.Forms.Form.OnFormClosed(FormClosedEventArgs e)
at System.Windows.Forms.Form.WmClose(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///D:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Bxo.SosAccessTester
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///D:/Program/BXO%20Solutions%20AB/BXO%20Tools/Bxo.SosAccessTester.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///D:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///D:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///D:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
PostSharp.Laos
Assembly Version: 1.0.8.357
Win32 Version: 1.0.8.357
CodeBase: file:///D:/Program/BXO%20Solutions%20AB/BXO%20Tools/PostSharp.Laos.DLL
----------------------------------------
PostSharp.Public
Assembly Version: 1.0.8.361
Win32 Version: 1.0.8.361
CodeBase: file:///D:/Program/BXO%20Solutions%20AB/BXO%20Tools/PostSharp.Public.DLL
----------------------------------------
Bxo.SosAccess
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///D:/Program/BXO%20Solutions%20AB/BXO%20Tools/Bxo.SosAccess.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///D:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///D:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Fel eller feature?
Jag kör WinXP SP2.
Postat: 14 augusti 2008, 16:24:52
av digitaliz
En feature så klart

Men jag ska titta på det, jag tror att den försöker koppla från fast man inte har kopplat upp

Tack för buggrapporten

Re: Testprogram för SOS Access V4 (Larmprotokoll)
Postat: 11 augusti 2010, 03:38:07
av toffie
Känns som om man var 2 år sen bara

Finns detta kvar någonstans?
Hur som, det jag är "ute efter" är väl mer själva protokollet. Hittade inga specs när jag sökte på Google.
Var kan man hitta mer information om det hela?
Re: Testprogram för SOS Access V4 (Larmprotokoll)
Postat: 11 augusti 2010, 09:39:40
av digitaliz
Och för ett år sedan hade jag nog hittat dokumentet

nu verkar det ha försvunnit i den digitala röran...
SOS Alarm borde kunna gräva fram det åt dig, ring deras kundtjänst. (inte 112

)
Programmet ifråga finns kvar, men adressen är numera
http://www.bxo.se/sv/produkter/ovriga-p ... olbox.html