├── AllYabeProjects.sln ├── CodeExamples ├── AnotherStorageImplementation │ ├── AnotherStorageImplementation.csproj │ ├── AnotherStorageImplementation.sln │ ├── BacnetActivity.cs │ ├── BacnetObjects │ │ ├── AnalogInput.cs │ │ ├── AnalogObject.cs │ │ ├── AnalogObjectEvent.cs │ │ ├── AnalogOutput.cs │ │ ├── BaCSharpObject.cs │ │ ├── BaCSharpType.cs │ │ ├── BacnetDateTime.cs │ │ ├── BacnetFile.cs │ │ ├── BinaryInput.cs │ │ ├── BinaryObject.cs │ │ ├── BinaryOutput.cs │ │ ├── Calendar.cs │ │ ├── CharacterString.cs │ │ ├── DeviceObject.cs │ │ ├── MultiStateInput.cs │ │ ├── MultiStateOutput.cs │ │ ├── NotificationClass.cs │ │ ├── Schedule.cs │ │ ├── StructuredView.cs │ │ ├── TrendLog.cs │ │ └── TrendLogCustom.cs │ ├── DataPersistence │ │ ├── Newtonsoft.Json Licence.txt │ │ ├── Newtonsoft.Json.dll │ │ └── Readme.txt.txt │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── Subscription.cs ├── Bacnet.Room.Simulator │ ├── BACnetActivity.cs │ ├── Bacnet.Room.Simulator.csproj │ ├── Bacnet.Room.Simulator.sln │ ├── DeviceStorage.xml │ ├── DeviceStorageUs.xml │ ├── Form1.Designer.cs │ ├── Form1.cs │ ├── Form1.resx │ ├── ImgMode │ │ ├── HArret.png │ │ ├── H_Chaud.png │ │ └── H_Froid.png │ ├── Ini.cs │ ├── Program.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings │ ├── Readme.txt │ ├── RoomModel.cs │ ├── app.config │ └── nuage-soleil-meteo-icone-8152.ico ├── BacnetToDatabase │ ├── BacnetToDatabase.csproj │ ├── BacnetToDatabase.sln │ ├── Main.Designer.cs │ ├── Main.cs │ ├── Main.resx │ ├── Program.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ ├── Resources.Designer.cs │ │ ├── Resources.resx │ │ ├── Settings.Designer.cs │ │ └── Settings.settings │ └── SampleDatabase.sdf ├── BasicAdviseCOV │ ├── BasicAdviseCOV.csproj │ ├── BasicAdviseCOV.sln │ ├── Program.cs │ └── Properties │ │ └── AssemblyInfo.cs ├── BasicAlarmListener │ ├── BasicAlarmListener.csproj │ ├── BasicAlarmListener.sln │ ├── DeviceDescriptor.xml │ ├── Program.cs │ └── Properties │ │ └── AssemblyInfo.cs ├── BasicReadWrite │ ├── BasicReadWrite.csproj │ ├── BasicReadWrite.sln │ ├── Program.cs │ └── Properties │ │ └── AssemblyInfo.cs ├── BasicServer │ ├── BasicServer.csproj │ ├── BasicServer.sln │ ├── DeviceDescriptor.xml │ ├── Program.cs │ └── Properties │ │ └── AssemblyInfo.cs ├── DemoBBMD │ ├── BACnetActivity.cs │ ├── Config.txt │ ├── DemoBBMD.csproj │ ├── DemoBBMD.sln │ ├── DeviceStorage.xml │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ └── app.config ├── LibBacnet │ ├── LibBacnet.csproj │ ├── LibBacnet.sln │ ├── Properties │ │ └── AssemblyInfo.cs │ └── bin │ │ └── Release │ │ └── LibBacnet.dll ├── RaspberrySample │ ├── DeviceDescriptor.xml │ ├── FileGPIO.cs │ ├── MemGPIO.cs │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── RaspberrySample.csproj │ └── RaspberrySample.sln ├── Readme.txt ├── Wheather2_to_Bacnet │ ├── AAUtil.cs │ ├── BacnetActivity.cs │ ├── Program.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Readme.txt │ ├── Wheather2_to_Bacnet.csproj │ ├── Wheather2_to_Bacnet.csproj.user │ ├── Wheather2_to_Bacnet.sln │ ├── Wheather2config.reg │ └── parapluie-icone-6978.ico └── Xamarin │ ├── AndroidVeryBasic │ ├── AndroidVeryBasic.csproj │ ├── AndroidVeryBasic.sln │ ├── AndroidVeryBasic.userprefs │ ├── Assets │ │ └── AboutAssets.txt │ ├── MainActivity.cs │ ├── Properties │ │ ├── AndroidManifest.xml │ │ └── AssemblyInfo.cs │ └── Resources │ │ ├── AboutResources.txt │ │ ├── Resource.designer.cs │ │ ├── drawable │ │ └── Icon.png │ │ ├── layout │ │ └── Main.axml │ │ └── values │ │ └── Strings.xml │ ├── Readme.txt │ └── YabeStack │ ├── Resources │ ├── AboutResources.txt │ ├── Resource.designer.cs │ └── values │ │ └── Strings.xml │ ├── YabeStack.csproj │ ├── YabeStack.sln │ ├── YabeStack.userprefs │ └── bin │ └── Release │ └── YabeStack.dll ├── DemoServer ├── DemoServer.csproj ├── DemoServer.sln ├── DeviceStorage - CASServer.xml ├── DeviceStorage - SourceForge.xml ├── DeviceStorage.cs ├── DeviceStorage.xml ├── Program.cs └── Properties │ └── AssemblyInfo.cs ├── Docs ├── BacnetCaptureScreenshot1.png ├── CalendarEditor.png ├── DemoServerScreenshot1.png ├── MIT_license.txt ├── README.txt ├── Schedule.png ├── Treeview_license.txt ├── YabeScreenshot1.png ├── YabeScreenshot2.png ├── YabeScreenshot3.png ├── ZedGraph Calendar SharpPcap License-LGPL.txt └── history.txt ├── InstallYabe └── InnoSetup │ ├── Setup.iss │ └── license.txt ├── Mstp.BacnetCapture ├── BacnetCapture.Designer.cs ├── BacnetCapture.cs ├── BacnetCapture.resx ├── BacnetNode.cs ├── Mstp.BacnetCapture.csproj ├── Mstp.BacnetCapture.sln ├── Program.cs ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings ├── WiresharkSender.cs ├── app.config └── ico │ ├── Icons8-Ios7-Animals-Shark.ico │ ├── License.txt │ ├── Loupe.png │ ├── Plc.png │ └── Stat2.png ├── OfflineDebug ├── OfflineStackDebug.csproj ├── OfflineStackDebug.sln ├── Program.cs ├── ReadPropMultiple.pcap └── Readme.txt ├── Yabe ├── AlarmSummary.Designer.cs ├── AlarmSummary.cs ├── AlarmSummary.resx ├── BACnetBase.cs ├── BACnetClient.cs ├── BACnetTransport.cs ├── BACnetTransportIPv6.cs ├── BBMDEditor.Designer.cs ├── BBMDEditor.cs ├── BBMDEditor.resx ├── BacnetTransportEthernet.cs ├── BacnetTransportSerial.cs ├── CalendarEditor.Designer.cs ├── CalendarEditor.cs ├── CalendarEditor.resx ├── CreateObject.Designer.cs ├── CreateObject.cs ├── CreateObject.resx ├── DeviceCommunicationControlDialog.Designer.cs ├── DeviceCommunicationControlDialog.cs ├── DeviceCommunicationControlDialog.resx ├── DynamicPropertyGridContainer.cs ├── FileTransfers.cs ├── ForeignRegistry.cs ├── ForeignRegistry.designer.cs ├── ForeignRegistry.resx ├── GenericInputBox.cs ├── IYabePlugin.cs ├── MainDialog.Designer.cs ├── MainDialog.cs ├── MainDialog.resx ├── NotificationEditor.Designer.cs ├── NotificationEditor.cs ├── NotificationEditor.resx ├── Program.cs ├── ProgressDialog.Designer.cs ├── ProgressDialog.cs ├── ProgressDialog.resx ├── Properties │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── Resources.resx │ ├── Settings.Designer.cs │ └── Settings.settings ├── ReadSinglePropDescr.xml ├── ReadSinglePropDescrDefault.xml ├── Resources │ ├── EmbeddedDll │ │ ├── CalendarView.dll │ │ ├── PacketDotNet.dll │ │ ├── SharpPcap.dll │ │ └── ZedGraph.dll │ ├── add.png │ ├── application_form.png │ ├── bell.png │ ├── book_open.png │ ├── calendar.png │ ├── calendar_view_week.png │ ├── chart_line.png │ ├── clock.png │ ├── cross.png │ ├── database.png │ ├── database_delete.png │ ├── database_edit.png │ ├── database_go1.png │ ├── date.png │ ├── error.png │ ├── eye.png │ ├── find.png │ ├── information.png │ ├── magnifier.png │ ├── monitor.png │ ├── note.png │ ├── pencil_add.png │ ├── pencil_delete.png │ ├── plugin.png │ ├── text_smallcaps.png │ ├── time_go.png │ ├── transmit.png │ └── world.png ├── ScheduleDisplay.Designer.cs ├── ScheduleDisplay.cs ├── ScheduleDisplay.resx ├── Search.ico ├── SearchDialog.Designer.cs ├── SearchDialog.cs ├── SearchDialog.resx ├── SettingsDialog.Designer.cs ├── SettingsDialog.cs ├── SettingsDialog.resx ├── SourceAddressDialog.Designer.cs ├── SourceAddressDialog.cs ├── SourceAddressDialog.resx ├── TreeView.cs ├── TrendLogDisplay.Designer.cs ├── TrendLogDisplay.cs ├── TrendLogDisplay.resx ├── Yabe.csproj ├── Yabe.sln ├── YabeDeviceDescriptor.xml ├── app.config └── latestBin │ └── Yabe.exe └── YabePlugins ├── CheckReliability ├── CheckReliability.cs ├── CheckReliability.csproj ├── Properties │ └── AssemblyInfo.cs ├── Reliability.Designer.cs ├── Reliability.cs └── Reliability.resx ├── CheckStatusFlags ├── CheckStatusFlags.cs ├── CheckStatusFlags.csproj ├── IconsLicense.txt ├── Properties │ └── AssemblyInfo.cs ├── StatusFlags.Designer.cs ├── StatusFlags.cs └── StatusFlags.resx ├── ListCOV_Increment ├── COV_Increment.Designer.cs ├── COV_Increment.cs ├── COV_Increment.resx ├── ListCOV_Increment.csproj ├── ListCOV_Inrement.cs └── Properties │ └── AssemblyInfo.cs └── Readme.txt /CodeExamples/AnotherStorageImplementation/AnotherStorageImplementation.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual C# Express 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AnotherStorageImplementation", "AnotherStorageImplementation.csproj", "{EE8E3C58-371E-4164-93DA-13D055D5BDDE}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|x86 = Debug|x86 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {EE8E3C58-371E-4164-93DA-13D055D5BDDE}.Debug|x86.ActiveCfg = Debug|x86 13 | {EE8E3C58-371E-4164-93DA-13D055D5BDDE}.Debug|x86.Build.0 = Debug|x86 14 | {EE8E3C58-371E-4164-93DA-13D055D5BDDE}.Release|x86.ActiveCfg = Release|x86 15 | {EE8E3C58-371E-4164-93DA-13D055D5BDDE}.Release|x86.Build.0 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /CodeExamples/AnotherStorageImplementation/BacnetObjects/AnalogInput.cs: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * MIT License 3 | * 4 | * Copyright (C) 2015 Frederic Chaxel 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | *********************************************************************/ 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | using System.IO.BACnet; 31 | 32 | namespace BaCSharp 33 | { 34 | public class AnalogInput : AnalogObject 35 | { 36 | public uint m_PROP_RELIABILITY; 37 | [BaCSharpType(BacnetApplicationTags.BACNET_APPLICATION_TAG_ENUMERATED)] 38 | public virtual uint PROP_RELIABILITY 39 | { 40 | get { return m_PROP_RELIABILITY; } 41 | } 42 | 43 | public AnalogInput(int ObjId, String ObjName, String Description, T InitialValue, BacnetUnitsId Unit) 44 | : base(new BacnetObjectId(BacnetObjectTypes.OBJECT_ANALOG_INPUT, (uint)ObjId), ObjName, Description, InitialValue, Unit) 45 | { 46 | m_PRESENT_VALUE_ReadOnly = true; 47 | } 48 | public AnalogInput(BacnetObjectId ObjId, String ObjName, String Description, T InitialValue, BacnetUnitsId Unit) 49 | : base(ObjId, ObjName, Description, InitialValue, Unit) 50 | { 51 | m_PRESENT_VALUE_ReadOnly = true; 52 | } 53 | public AnalogInput() { } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /CodeExamples/AnotherStorageImplementation/BacnetObjects/BaCSharpType.cs: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * MIT License 3 | * 4 | * Copyright (C) 2015 Frederic Chaxel 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | *********************************************************************/ 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | using System.IO.BACnet; 31 | 32 | namespace BaCSharp 33 | { 34 | class BaCSharpTypeAttribute : Attribute 35 | { 36 | public BacnetApplicationTags BacnetNativeType; 37 | 38 | public BaCSharpTypeAttribute(BacnetApplicationTags BacnetNativeType) 39 | { 40 | this.BacnetNativeType = BacnetNativeType; 41 | } 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /CodeExamples/AnotherStorageImplementation/BacnetObjects/BacnetDateTime.cs: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * MIT License 3 | * 4 | * Copyright (C) 2016 Frederic Chaxel 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | *********************************************************************/ 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | using System.IO.BACnet; 31 | 32 | namespace BaCSharp 33 | { 34 | class BacnetDateTime:BaCSharpObject 35 | { 36 | public DateTime m_PresentValue = new DateTime(1, 1, 1); 37 | [BaCSharpType(BacnetApplicationTags.BACNET_APPLICATION_TAG_DATETIME)] 38 | public virtual DateTime PROP_PRESENT_VALUE 39 | { 40 | get { return m_PresentValue; } 41 | } 42 | 43 | BacnetBitString m_PROP_STATUS_FLAGS = new BacnetBitString(); 44 | [BaCSharpType(BacnetApplicationTags.BACNET_APPLICATION_TAG_BIT_STRING)] 45 | public virtual BacnetBitString PROP_STATUS_FLAGS 46 | { 47 | get { return m_PROP_STATUS_FLAGS; } 48 | } 49 | 50 | public BacnetDateTime(int ObjId, String ObjName, String Description) 51 | : base(new BacnetObjectId(BacnetObjectTypes.OBJECT_DATETIME_VALUE, (uint)ObjId), ObjName, Description) 52 | { 53 | m_PROP_STATUS_FLAGS.SetBit((byte)0, false); 54 | m_PROP_STATUS_FLAGS.SetBit((byte)1, false); 55 | m_PROP_STATUS_FLAGS.SetBit((byte)2, false); 56 | m_PROP_STATUS_FLAGS.SetBit((byte)3, false); 57 | } 58 | 59 | public BacnetDateTime() { } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /CodeExamples/AnotherStorageImplementation/BacnetObjects/BinaryInput.cs: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * MIT License 3 | * 4 | * Copyright (C) 2015 Frederic Chaxel 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | *********************************************************************/ 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | using System.IO.BACnet; 31 | 32 | namespace BaCSharp 33 | { 34 | public class BinaryInput : BinaryObject 35 | { 36 | public uint m_PROP_RELIABILITY; 37 | [BaCSharpType(BacnetApplicationTags.BACNET_APPLICATION_TAG_ENUMERATED)] 38 | public virtual uint PROP_RELIABILITY 39 | { 40 | get { return m_PROP_RELIABILITY; } 41 | } 42 | 43 | public BinaryInput(int ObjId, String ObjName, String Description, bool InitialValue) 44 | : base(new BacnetObjectId(BacnetObjectTypes.OBJECT_BINARY_INPUT, (uint)ObjId), ObjName, Description, InitialValue) 45 | { 46 | m_PRESENT_VALUE_ReadOnly = true; 47 | } 48 | public BinaryInput() { } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /CodeExamples/AnotherStorageImplementation/BacnetObjects/CharacterString.cs: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * MIT License 3 | * 4 | * Copyright (C) 2015 Frederic Chaxel 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | *********************************************************************/ 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | using System.IO.BACnet; 31 | 32 | namespace BaCSharp 33 | { 34 | public class CharacterString : BaCSharpObject 35 | { 36 | 37 | public BacnetBitString m_PROP_STATUS_FLAGS = new BacnetBitString(); 38 | [BaCSharpType(BacnetApplicationTags.BACNET_APPLICATION_TAG_BIT_STRING)] 39 | public virtual BacnetBitString PROP_STATUS_FLAGS 40 | { 41 | get { return m_PROP_STATUS_FLAGS; } 42 | } 43 | 44 | public bool m_PRESENT_VALUE_ReadOnly = false; 45 | public String m_PROP_PRESENT_VALUE; 46 | 47 | public virtual String PROP_PRESENT_VALUE 48 | { 49 | get { return m_PROP_PRESENT_VALUE; } 50 | set 51 | { 52 | if (m_PRESENT_VALUE_ReadOnly == false) 53 | { 54 | m_PROP_PRESENT_VALUE = value; 55 | ExternalCOVManagement(BacnetPropertyIds.PROP_PRESENT_VALUE); 56 | } 57 | else 58 | ErrorCode_PropertyWrite = ErrorCodes.WriteAccessDenied; 59 | } 60 | } 61 | 62 | // This property shows the same attribut as the previous, but without restriction 63 | // for internal usage, not for network callbacks 64 | public virtual String internal_PROP_PRESENT_VALUE 65 | { 66 | get { return m_PROP_PRESENT_VALUE; } 67 | set { m_PROP_PRESENT_VALUE = value; ExternalCOVManagement(BacnetPropertyIds.PROP_PRESENT_VALUE); } 68 | } 69 | 70 | public CharacterString(int ObjId, String ObjName, String Description, String InitialValue, bool ReadOnly) 71 | : base(new BacnetObjectId(BacnetObjectTypes.OBJECT_CHARACTERSTRING_VALUE,(uint)ObjId), ObjName, Description) 72 | { 73 | m_PROP_STATUS_FLAGS.SetBit((byte)0, false); 74 | m_PROP_STATUS_FLAGS.SetBit((byte)1, false); 75 | m_PROP_STATUS_FLAGS.SetBit((byte)2, false); 76 | m_PROP_STATUS_FLAGS.SetBit((byte)3, false); 77 | 78 | m_PRESENT_VALUE_ReadOnly = ReadOnly; 79 | m_PROP_PRESENT_VALUE = InitialValue; 80 | } 81 | public CharacterString() { } 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /CodeExamples/AnotherStorageImplementation/BacnetObjects/MultiStateInput.cs: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * MIT License 3 | * 4 | * Copyright (C) 2015 Frederic Chaxel 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | *********************************************************************/ 26 | 27 | using System; 28 | using System.Collections.Generic; 29 | using System.Linq; 30 | using System.Text; 31 | using System.IO.BACnet; 32 | 33 | namespace BaCSharp 34 | { 35 | 36 | public class MultiStateInput : AnalogInput 37 | { 38 | public uint m_PROP_RELIABILITY; 39 | [BaCSharpType(BacnetApplicationTags.BACNET_APPLICATION_TAG_ENUMERATED)] 40 | public virtual uint PROP_RELIABILITY 41 | { 42 | get { return m_PROP_RELIABILITY; } 43 | } 44 | 45 | public uint m_PROP_NUMBER_OF_STATES; 46 | [BaCSharpType(BacnetApplicationTags.BACNET_APPLICATION_TAG_UNSIGNED_INT)] 47 | public virtual uint PROP_NUMBER_OF_STATES 48 | { 49 | get { return m_PROP_NUMBER_OF_STATES; } 50 | } 51 | 52 | public BacnetValue[] m_PROP_STATE_TEXT; 53 | [BaCSharpType(BacnetApplicationTags.BACNET_APPLICATION_TAG_OBJECT_ID)] 54 | public virtual BacnetValue[] PROP_STATE_TEXT 55 | { 56 | get { return m_PROP_STATE_TEXT; } 57 | } 58 | 59 | public MultiStateInput(int ObjId, String ObjName, String Description, uint StatesNumber, uint InitialValue, bool WithPriorityArray) 60 | : base(new BacnetObjectId(BacnetObjectTypes.OBJECT_MULTI_STATE_INPUT, (uint)ObjId), ObjName, Description, InitialValue, BacnetUnitsId.UNITS_DEGREES_PHASE) 61 | { 62 | // InitialValue must be within 1 and m_PROP_NUMBER_OF_STATES 63 | m_PROP_NUMBER_OF_STATES = StatesNumber; 64 | m_PROP_STATE_TEXT = new BacnetValue[StatesNumber]; 65 | } 66 | public MultiStateInput() { } 67 | 68 | protected override uint BacnetMethodNametoId(String Name) 69 | { 70 | if (Name == "get_PROP_UNITS") // Hide this property 71 | return (uint)((int)BacnetPropertyIds.MAX_BACNET_PROPERTY_ID ); 72 | else 73 | return base.BacnetMethodNametoId(Name); 74 | } 75 | } 76 | } 77 | -------------------------------------------------------------------------------- /CodeExamples/AnotherStorageImplementation/BacnetObjects/StructuredView.cs: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * MIT License 3 | * 4 | * Copyright (C) 2015 Frederic Chaxel 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | *********************************************************************/ 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | using System.IO.BACnet; 31 | using System.IO.BACnet.Serialize; 32 | 33 | namespace BaCSharp 34 | { 35 | public class StructuredView : BaCSharpObject 36 | { 37 | protected List m_PROP_SUBORDINATE_LIST = new List(); 38 | 39 | [BaCSharpType(BacnetApplicationTags.BACNET_APPLICATION_TAG_DEVICE_OBJECT_REFERENCE)] 40 | public virtual List PROP_SUBORDINATE_LIST 41 | { 42 | get { return m_PROP_SUBORDINATE_LIST; } 43 | } 44 | 45 | public StructuredView(int ObjId, String ObjName, String Description) 46 | : base(new BacnetObjectId(BacnetObjectTypes.OBJECT_STRUCTURED_VIEW, (uint)ObjId), ObjName, Description) 47 | { 48 | } 49 | 50 | public StructuredView() { } 51 | 52 | public void AddBacnetObject(BaCSharpObject newObj) 53 | { 54 | BacnetValue v = new BacnetValue(BacnetApplicationTags.BACNET_APPLICATION_TAG_DEVICE_OBJECT_REFERENCE, new BacnetDeviceObjectReference(newObj.PROP_OBJECT_IDENTIFIER)); 55 | m_PROP_SUBORDINATE_LIST.Add(v); 56 | // Each object provided by the server must be added one by one to the DeviceObject 57 | Mydevice.AddBacnetObject(newObj); 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /CodeExamples/AnotherStorageImplementation/DataPersistence/Newtonsoft.Json Licence.txt: -------------------------------------------------------------------------------- 1 | Copyright (c) 2007 James Newton-King 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this 4 | software and associated documentation files (the "Software"), to deal in the Software 5 | without restriction, including without limitation the rights to use, copy, modify, 6 | merge, publish, distribute, sublicense, and/or sell copies of the Software, and to 7 | permit persons to whom the Software is furnished to do so, subject to the following 8 | conditions: 9 | 10 | The above copyright notice and this permission notice shall be included in all copies 11 | or substantial portions of the Software. 12 | 13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 14 | INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 15 | PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 16 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 17 | CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE 18 | OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -------------------------------------------------------------------------------- /CodeExamples/AnotherStorageImplementation/DataPersistence/Newtonsoft.Json.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/CodeExamples/AnotherStorageImplementation/DataPersistence/Newtonsoft.Json.dll -------------------------------------------------------------------------------- /CodeExamples/AnotherStorageImplementation/DataPersistence/Readme.txt.txt: -------------------------------------------------------------------------------- 1 | TODO 2 | 3 | This shows how data persistence could be implemented using a much more powerfull 4 | serializer than the one included in the .Net framework : 5 | JSON.NET 6 | by Newtonsoft 7 | 8 | Basic serializer cannot handle the polymorphism and generic class used in 9 | AntoherStorageImplementation, code by Newtonsoft yes ! 10 | 11 | See Programs.SaveAndRestoreBackSample 12 | Make a reference to Newtonsoft.Json.dll 13 | 14 | -------------------------------------------------------------------------------- /CodeExamples/AnotherStorageImplementation/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("AnotherStorageImplementation")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("F. Chaxel")] 9 | [assembly: AssemblyProduct("AnotherStorageImplementation")] 10 | [assembly: AssemblyCopyright("Copyright © F. Chaxel 2015")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | 14 | [assembly: ComVisible(false)] 15 | 16 | [assembly: Guid("ff6b5fbc-8a64-42d7-b52d-57d788e5a518")] 17 | 18 | [assembly: AssemblyVersion("1.0.0.0")] 19 | [assembly: AssemblyFileVersion("1.0.0.0")] 20 | -------------------------------------------------------------------------------- /CodeExamples/Bacnet.Room.Simulator/Bacnet.Room.Simulator.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual C# Express 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Bacnet.Room.Simulator", "Bacnet.Room.Simulator.csproj", "{07552C4C-AD80-4645-AC91-D6138B5888AA}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Debug|x86 = Debug|x86 10 | R|Any CPU = R|Any CPU 11 | R|x86 = R|x86 12 | Release|Any CPU = Release|Any CPU 13 | Release|x86 = Release|x86 14 | EndGlobalSection 15 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 16 | {07552C4C-AD80-4645-AC91-D6138B5888AA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 17 | {07552C4C-AD80-4645-AC91-D6138B5888AA}.Debug|Any CPU.Build.0 = Debug|Any CPU 18 | {07552C4C-AD80-4645-AC91-D6138B5888AA}.Debug|x86.ActiveCfg = Debug|x86 19 | {07552C4C-AD80-4645-AC91-D6138B5888AA}.Debug|x86.Build.0 = Debug|x86 20 | {07552C4C-AD80-4645-AC91-D6138B5888AA}.R|Any CPU.ActiveCfg = R|Any CPU 21 | {07552C4C-AD80-4645-AC91-D6138B5888AA}.R|Any CPU.Build.0 = R|Any CPU 22 | {07552C4C-AD80-4645-AC91-D6138B5888AA}.R|x86.ActiveCfg = R|x86 23 | {07552C4C-AD80-4645-AC91-D6138B5888AA}.R|x86.Build.0 = R|x86 24 | {07552C4C-AD80-4645-AC91-D6138B5888AA}.Release|Any CPU.ActiveCfg = Release|Any CPU 25 | {07552C4C-AD80-4645-AC91-D6138B5888AA}.Release|Any CPU.Build.0 = Release|Any CPU 26 | {07552C4C-AD80-4645-AC91-D6138B5888AA}.Release|x86.ActiveCfg = Release|x86 27 | {07552C4C-AD80-4645-AC91-D6138B5888AA}.Release|x86.Build.0 = Release|x86 28 | EndGlobalSection 29 | GlobalSection(SolutionProperties) = preSolution 30 | HideSolutionNode = FALSE 31 | EndGlobalSection 32 | EndGlobal 33 | -------------------------------------------------------------------------------- /CodeExamples/Bacnet.Room.Simulator/ImgMode/HArret.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/CodeExamples/Bacnet.Room.Simulator/ImgMode/HArret.png -------------------------------------------------------------------------------- /CodeExamples/Bacnet.Room.Simulator/ImgMode/H_Chaud.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/CodeExamples/Bacnet.Room.Simulator/ImgMode/H_Chaud.png -------------------------------------------------------------------------------- /CodeExamples/Bacnet.Room.Simulator/ImgMode/H_Froid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/CodeExamples/Bacnet.Room.Simulator/ImgMode/H_Froid.png -------------------------------------------------------------------------------- /CodeExamples/Bacnet.Room.Simulator/Ini.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Runtime.InteropServices; 4 | using System.Text; 5 | 6 | namespace Ini 7 | { 8 | /// 9 | /// Create a New INI file to store or load data 10 | /// 11 | public class IniFile 12 | { 13 | public string path; 14 | 15 | [DllImport("kernel32")] 16 | private static extern long WritePrivateProfileString(string section,string key,string val,string filePath); 17 | [DllImport("kernel32")] 18 | private static extern int GetPrivateProfileString(string section,string key,string def,StringBuilder retVal,int size,string filePath); 19 | 20 | /// 21 | /// INIFile Constructor. 22 | /// 23 | /// 24 | public IniFile(string INIPath) 25 | { 26 | path = INIPath; 27 | } 28 | /// 29 | /// Write Data to the INI File 30 | /// 31 | /// 32 | /// Section name 33 | /// 34 | /// Key Name 35 | /// 36 | /// Value Name 37 | public void IniWriteValue(string Section,string Key,string Value) 38 | { 39 | WritePrivateProfileString(Section,Key,Value,this.path); 40 | } 41 | 42 | /// 43 | /// Read Data Value From the Ini File 44 | /// 45 | /// 46 | /// 47 | /// 48 | /// 49 | public string IniReadValue(string Section,string Key, string DefaultValue) 50 | { 51 | StringBuilder temp = new StringBuilder(1024); 52 | int i = GetPrivateProfileString(Section,Key,"",temp,1024,this.path); 53 | if (i != 0) 54 | return temp.ToString(); 55 | else 56 | return DefaultValue; 57 | 58 | } 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /CodeExamples/Bacnet.Room.Simulator/Program.cs: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * MIT License 3 | * 4 | * Copyright (C) 2015 Frederic Chaxel 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | *********************************************************************/ 26 | 27 | using System; 28 | using System.Collections.Generic; 29 | using System.Linq; 30 | using System.Windows.Forms; 31 | using System.Threading; 32 | using System.Diagnostics; 33 | using System.Management; 34 | 35 | namespace Bacnet.Room.Simulator 36 | { 37 | 38 | 39 | static class Program 40 | { 41 | public static int Count; 42 | 43 | /// 44 | /// Point d'entrée principal de l'application. 45 | /// 46 | [STAThread] 47 | static void Main() 48 | { 49 | 50 | // Le semaphore sert a donner un id unqiue au noeud Bacnet 51 | Semaphore s = new Semaphore(63, 63, "Bacnet.Room{FAED-FAED}"); 52 | if (s.WaitOne() == true) 53 | { 54 | Count = 64-s.Release(); 55 | s.WaitOne(); 56 | } 57 | 58 | try 59 | { 60 | Application.EnableVisualStyles(); 61 | Application.SetCompatibleTextRenderingDefault(false); 62 | Application.Run(new BacForm()); 63 | } 64 | catch 65 | { 66 | MessageBox.Show("Fatal Error", "Bacnet.Room.Simulator", MessageBoxButtons.OK, MessageBoxIcon.Error); 67 | } 68 | 69 | s.Release(); 70 | } 71 | 72 | } 73 | } 74 | -------------------------------------------------------------------------------- /CodeExamples/Bacnet.Room.Simulator/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // Les informations générales relatives à un assembly dépendent de 6 | // l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations 7 | // associées à un assembly. 8 | [assembly: AssemblyTitle("Bacnet.Room.Simulator")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("MicroNetworkTech")] 12 | [assembly: AssemblyProduct("Bacnet.Room.Simulator")] 13 | [assembly: AssemblyCopyright("Copyright © MicroNetworkTech 2014")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly 18 | // aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de 19 | // COM, affectez la valeur true à l'attribut ComVisible sur ce type. 20 | [assembly: ComVisible(false)] 21 | 22 | // Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM 23 | [assembly: Guid("2b922b85-0e05-4323-a905-0c4e011e2700")] 24 | 25 | // Les informations de version pour un assembly se composent des quatre valeurs suivantes : 26 | // 27 | // Version principale 28 | // Version secondaire 29 | // Numéro de build 30 | // Révision 31 | // 32 | // Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut 33 | // en utilisant '*', comme indiqué ci-dessous : 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /CodeExamples/Bacnet.Room.Simulator/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // Ce code a été généré par un outil. 4 | // Version du runtime :4.0.30319.17929 5 | // 6 | // Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si 7 | // le code est régénéré. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Bacnet.Room.Simulator.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /CodeExamples/Bacnet.Room.Simulator/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /CodeExamples/Bacnet.Room.Simulator/Readme.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/CodeExamples/Bacnet.Room.Simulator/Readme.txt -------------------------------------------------------------------------------- /CodeExamples/Bacnet.Room.Simulator/RoomModel.cs: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * MIT License 3 | * 4 | * Copyright (C) 2015 Frederic Chaxel 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | *********************************************************************/ 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | 31 | namespace Bacnet.Room.Simulator 32 | { 33 | // A room with energy losts proportional to internal Temp minus external Temp 34 | // an gains proportional to insuflated Temp minus internal Temp 35 | // and random effects 36 | // and some delays 37 | class RoomModel 38 | { 39 | 40 | double Tempint; 41 | double RollingCounter = 0; 42 | Random random = new Random(); 43 | 44 | const int NBDelay = 10; 45 | double[] EnergieDelay = new double[NBDelay]; 46 | int IdxDelay=0; 47 | 48 | public RoomModel(double Tini) 49 | { 50 | Tempint= Tini; 51 | 52 | } 53 | 54 | double Delay(double newVal) 55 | { 56 | double RetVal; 57 | 58 | EnergieDelay[IdxDelay] = newVal; 59 | 60 | RetVal = EnergieDelay[(IdxDelay + NBDelay - 1) % NBDelay]; 61 | 62 | IdxDelay++; 63 | IdxDelay = IdxDelay % NBDelay; 64 | 65 | return RetVal; 66 | } 67 | 68 | public double GetNextTemp(double TempAirSoufle, double TempExt, int PSoufflage) 69 | { 70 | 71 | double Perte = 0.03 * (Tempint - TempExt); 72 | double Gain = 0.015 * Delay(PSoufflage * (TempAirSoufle - Tempint)) ; 73 | 74 | double Perturbation = 0.0005 * Math.Cos(RollingCounter / 10.0) ; 75 | RollingCounter += 2 * random.NextDouble(); 76 | 77 | Tempint = Tempint - Perte + Gain + Perturbation; 78 | 79 | return Tempint; 80 | 81 | } 82 | } 83 | } 84 | -------------------------------------------------------------------------------- /CodeExamples/Bacnet.Room.Simulator/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /CodeExamples/Bacnet.Room.Simulator/nuage-soleil-meteo-icone-8152.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/CodeExamples/Bacnet.Room.Simulator/nuage-soleil-meteo-icone-8152.ico -------------------------------------------------------------------------------- /CodeExamples/BacnetToDatabase/BacnetToDatabase.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BacnetToDatabase", "BacnetToDatabase.csproj", "{AB80ADFC-41DD-4E98-87CB-89C358B9E65D}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|x86 = Debug|x86 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {AB80ADFC-41DD-4E98-87CB-89C358B9E65D}.Debug|x86.ActiveCfg = Debug|x86 13 | {AB80ADFC-41DD-4E98-87CB-89C358B9E65D}.Debug|x86.Build.0 = Debug|x86 14 | {AB80ADFC-41DD-4E98-87CB-89C358B9E65D}.Release|x86.ActiveCfg = Release|x86 15 | {AB80ADFC-41DD-4E98-87CB-89C358B9E65D}.Release|x86.Build.0 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /CodeExamples/BacnetToDatabase/Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Windows.Forms; 5 | 6 | namespace BacnetToDatabase 7 | { 8 | static class Program 9 | { 10 | /// 11 | /// The main entry point for the application. 12 | /// 13 | [STAThread] 14 | static void Main() 15 | { 16 | Application.EnableVisualStyles(); 17 | Application.SetCompatibleTextRenderingDefault(false); 18 | Application.Run(new Main()); 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /CodeExamples/BacnetToDatabase/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("BacnetToDatabase")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("BacnetToDatabase")] 13 | [assembly: AssemblyCopyright("Copyright © 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("33f2319a-cb86-4e57-9499-5b9a9ebdbee0")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /CodeExamples/BacnetToDatabase/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace BacnetToDatabase.Properties 12 | { 13 | 14 | 15 | /// 16 | /// A strongly-typed resource class, for looking up localized strings, etc. 17 | /// 18 | // This class was auto-generated by the StronglyTypedResourceBuilder 19 | // class via a tool like ResGen or Visual Studio. 20 | // To add or remove a member, edit your .ResX file then rerun ResGen 21 | // with the /str option, or rebuild your VS project. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources 26 | { 27 | 28 | private static global::System.Resources.ResourceManager resourceMan; 29 | 30 | private static global::System.Globalization.CultureInfo resourceCulture; 31 | 32 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 33 | internal Resources() 34 | { 35 | } 36 | 37 | /// 38 | /// Returns the cached ResourceManager instance used by this class. 39 | /// 40 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 41 | internal static global::System.Resources.ResourceManager ResourceManager 42 | { 43 | get 44 | { 45 | if ((resourceMan == null)) 46 | { 47 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("BacnetToDatabase.Properties.Resources", typeof(Resources).Assembly); 48 | resourceMan = temp; 49 | } 50 | return resourceMan; 51 | } 52 | } 53 | 54 | /// 55 | /// Overrides the current thread's CurrentUICulture property for all 56 | /// resource lookups using this strongly typed resource class. 57 | /// 58 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 59 | internal static global::System.Globalization.CultureInfo Culture 60 | { 61 | get 62 | { 63 | return resourceCulture; 64 | } 65 | set 66 | { 67 | resourceCulture = value; 68 | } 69 | } 70 | } 71 | } 72 | -------------------------------------------------------------------------------- /CodeExamples/BacnetToDatabase/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace BacnetToDatabase.Properties 12 | { 13 | 14 | 15 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] 17 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase 18 | { 19 | 20 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 21 | 22 | public static Settings Default 23 | { 24 | get 25 | { 26 | return defaultInstance; 27 | } 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /CodeExamples/BacnetToDatabase/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /CodeExamples/BacnetToDatabase/SampleDatabase.sdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/CodeExamples/BacnetToDatabase/SampleDatabase.sdf -------------------------------------------------------------------------------- /CodeExamples/BasicAdviseCOV/BasicAdviseCOV.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | x86 6 | 8.0.30703 7 | 2.0 8 | {C501E026-4977-49C6-8DCB-5B9600C17FF1} 9 | Exe 10 | Properties 11 | BasicAdviseCOV 12 | BasicAdviseCOV 13 | v4.0 14 | Client 15 | 512 16 | 17 | 18 | x86 19 | true 20 | full 21 | false 22 | bin\Debug\ 23 | DEBUG;TRACE 24 | prompt 25 | 4 26 | 27 | 28 | x86 29 | pdbonly 30 | true 31 | bin\Release\ 32 | TRACE 33 | prompt 34 | 4 35 | 36 | 37 | 38 | False 39 | ..\..\Yabe\PacketDotNet.dll 40 | 41 | 42 | False 43 | ..\..\Yabe\SharpPcap.dll 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | BACnetBase.cs 56 | 57 | 58 | BACnetClient.cs 59 | 60 | 61 | BACnetTransport.cs 62 | 63 | 64 | BACnetTransport.cs 65 | 66 | 67 | BACnetTransportIPv6.cs 68 | 69 | 70 | 71 | 72 | 73 | 80 | -------------------------------------------------------------------------------- /CodeExamples/BasicAdviseCOV/BasicAdviseCOV.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual C# Express 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicAdviseCOV", "BasicAdviseCOV.csproj", "{C501E026-4977-49C6-8DCB-5B9600C17FF1}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|x86 = Debug|x86 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {C501E026-4977-49C6-8DCB-5B9600C17FF1}.Debug|x86.ActiveCfg = Debug|x86 13 | {C501E026-4977-49C6-8DCB-5B9600C17FF1}.Debug|x86.Build.0 = Debug|x86 14 | {C501E026-4977-49C6-8DCB-5B9600C17FF1}.Release|x86.ActiveCfg = Release|x86 15 | {C501E026-4977-49C6-8DCB-5B9600C17FF1}.Release|x86.Build.0 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /CodeExamples/BasicAdviseCOV/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // Les informations générales relatives à un assembly dépendent de 6 | // l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations 7 | // associées à un assembly. 8 | [assembly: AssemblyTitle("BasicAdviseCOV")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("BasicAdviseCOV")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly 18 | // aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de 19 | // COM, affectez la valeur true à l'attribut ComVisible sur ce type. 20 | [assembly: ComVisible(false)] 21 | 22 | // Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM 23 | [assembly: Guid("c4f852d0-ffda-4fd6-a2a7-1708b530dd22")] 24 | 25 | // Les informations de version pour un assembly se composent des quatre valeurs suivantes : 26 | // 27 | // Version principale 28 | // Version secondaire 29 | // Numéro de build 30 | // Révision 31 | // 32 | // Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut 33 | // en utilisant '*', comme indiqué ci-dessous : 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /CodeExamples/BasicAlarmListener/BasicAlarmListener.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual C# Express 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicAlarmListener", "BasicAlarmListener.csproj", "{91C94BC2-B863-4415-AB5F-2C4D02B2F2CE}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|x86 = Debug|x86 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {91C94BC2-B863-4415-AB5F-2C4D02B2F2CE}.Debug|x86.ActiveCfg = Debug|x86 13 | {91C94BC2-B863-4415-AB5F-2C4D02B2F2CE}.Debug|x86.Build.0 = Debug|x86 14 | {91C94BC2-B863-4415-AB5F-2C4D02B2F2CE}.Release|x86.ActiveCfg = Release|x86 15 | {91C94BC2-B863-4415-AB5F-2C4D02B2F2CE}.Release|x86.Build.0 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /CodeExamples/BasicAlarmListener/DeviceDescriptor.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | OBJECT_DEVICE:0 8 | 9 | 10 | OBJECT_DEVICE:0 11 | 12 | 13 | Alarm Listener 14 | 15 | 16 | 8 17 | 18 | 19 | 0 20 | 21 | 22 | Morten Kvistgaard, Frederic Chaxel MIT licence, 2015 23 | 24 | 25 | 61440 26 | 27 | 28 | YABE_2015 29 | 30 | 31 | 0 32 | 33 | 34 | 0 35 | 36 | 37 | 1 38 | 39 | 40 | 14 41 | 42 | 43 | 0000000000001010000000000010000000100000 44 | 45 | 46 | 000000001000000000000000000000000000000000000000000 47 | 48 | 49 | 1476 50 | 51 | 52 | 3 53 | 54 | 55 | 3000 56 | 57 | 58 | 3 59 | 60 | 61 | 62 | 0 63 | 64 | 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /CodeExamples/BasicAlarmListener/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // Les informations générales relatives à un assembly dépendent de 6 | // l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations 7 | // associées à un assembly. 8 | [assembly: AssemblyTitle("BasicAlarmListener")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("BasicAlarmListener")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly 18 | // aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de 19 | // COM, affectez la valeur true à l'attribut ComVisible sur ce type. 20 | [assembly: ComVisible(false)] 21 | 22 | // Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM 23 | [assembly: Guid("852a93dc-b492-444a-a2c0-7feb57f133cd")] 24 | 25 | // Les informations de version pour un assembly se composent des quatre valeurs suivantes : 26 | // 27 | // Version principale 28 | // Version secondaire 29 | // Numéro de build 30 | // Révision 31 | // 32 | // Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut 33 | // en utilisant '*', comme indiqué ci-dessous : 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /CodeExamples/BasicReadWrite/BasicReadWrite.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | x86 6 | 8.0.30703 7 | 2.0 8 | {28F7604F-7DCD-4330-8261-55AEB2B0BAC4} 9 | Exe 10 | Properties 11 | BasicReadWrite 12 | BasicReadWrite 13 | v4.0 14 | Client 15 | 512 16 | 17 | 18 | x86 19 | true 20 | full 21 | false 22 | bin\Debug\ 23 | DEBUG;TRACE 24 | prompt 25 | 4 26 | 27 | 28 | x86 29 | pdbonly 30 | true 31 | bin\Release\ 32 | TRACE 33 | prompt 34 | 4 35 | 36 | 37 | 38 | False 39 | ..\..\Yabe\Resources\EmbeddedDll\PacketDotNet.dll 40 | 41 | 42 | False 43 | ..\..\Yabe\Resources\EmbeddedDll\SharpPcap.dll 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | BACnetBase.cs 56 | 57 | 58 | BACnetClient.cs 59 | 60 | 61 | BACnetTransport.cs 62 | 63 | 64 | BACnetTransport.cs 65 | 66 | 67 | BACnetTransportIPv6.cs 68 | 69 | 70 | 71 | 72 | 73 | 80 | -------------------------------------------------------------------------------- /CodeExamples/BasicReadWrite/BasicReadWrite.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual C# Express 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicReadWrite", "BasicReadWrite.csproj", "{28F7604F-7DCD-4330-8261-55AEB2B0BAC4}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|x86 = Debug|x86 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {28F7604F-7DCD-4330-8261-55AEB2B0BAC4}.Debug|x86.ActiveCfg = Debug|x86 13 | {28F7604F-7DCD-4330-8261-55AEB2B0BAC4}.Debug|x86.Build.0 = Debug|x86 14 | {28F7604F-7DCD-4330-8261-55AEB2B0BAC4}.Release|x86.ActiveCfg = Release|x86 15 | {28F7604F-7DCD-4330-8261-55AEB2B0BAC4}.Release|x86.Build.0 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /CodeExamples/BasicReadWrite/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // Les informations générales relatives à un assembly dépendent de 6 | // l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations 7 | // associées à un assembly. 8 | [assembly: AssemblyTitle("BasicReadWrite")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("BasicReadWrite")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly 18 | // aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de 19 | // COM, affectez la valeur true à l'attribut ComVisible sur ce type. 20 | [assembly: ComVisible(false)] 21 | 22 | // Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM 23 | [assembly: Guid("225d9cdc-3c22-460a-a7be-7fd54ba86b3d")] 24 | 25 | // Les informations de version pour un assembly se composent des quatre valeurs suivantes : 26 | // 27 | // Version principale 28 | // Version secondaire 29 | // Numéro de build 30 | // Révision 31 | // 32 | // Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut 33 | // en utilisant '*', comme indiqué ci-dessous : 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /CodeExamples/BasicServer/BasicServer.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual C# Express 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicServer", "BasicServer.csproj", "{DB89E653-7DBF-45BC-A92E-3754D8091E89}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|x86 = Debug|x86 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {DB89E653-7DBF-45BC-A92E-3754D8091E89}.Debug|x86.ActiveCfg = Debug|x86 13 | {DB89E653-7DBF-45BC-A92E-3754D8091E89}.Debug|x86.Build.0 = Debug|x86 14 | {DB89E653-7DBF-45BC-A92E-3754D8091E89}.Release|x86.ActiveCfg = Release|x86 15 | {DB89E653-7DBF-45BC-A92E-3754D8091E89}.Release|x86.Build.0 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /CodeExamples/BasicServer/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // Les informations générales relatives à un assembly dépendent de 6 | // l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations 7 | // associées à un assembly. 8 | [assembly: AssemblyTitle("BasicServer")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("BasicServer")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly 18 | // aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de 19 | // COM, affectez la valeur true à l'attribut ComVisible sur ce type. 20 | [assembly: ComVisible(false)] 21 | 22 | // Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM 23 | [assembly: Guid("9d8ca50b-593d-46f9-bc4b-39ed9aaa2188")] 24 | 25 | // Les informations de version pour un assembly se composent des quatre valeurs suivantes : 26 | // 27 | // Version principale 28 | // Version secondaire 29 | // Numéro de build 30 | // Révision 31 | // 32 | // Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut 33 | // en utilisant '*', comme indiqué ci-dessous : 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /CodeExamples/DemoBBMD/Config.txt: -------------------------------------------------------------------------------- 1 | // BBMD Peer List 2 | // IP ; Mask ; Port in decimal 3 | // for IPV6 Mask is not used but must be present : put ::1 for instance 4 | // 2a01:f347:ea97:6a2e:c4:1d24:714a:3de3;::1;47808 5 | // One entry per line 6 | // first char must be / for comment 7 | // No blank line 8 | 172.20.54.222;255.255.255.255;47808 9 | 192.168.0.12;255.255.255.255;47808 10 | -------------------------------------------------------------------------------- /CodeExamples/DemoBBMD/DemoBBMD.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | x86 6 | 8.0.30703 7 | 2.0 8 | {A2CE9357-71B6-40F7-97C7-74AF1E5659A5} 9 | Exe 10 | Properties 11 | DemoBBMD 12 | DemoBBMD 13 | v4.0 14 | 15 | 16 | 512 17 | 18 | 19 | x86 20 | true 21 | full 22 | false 23 | bin\Debug\ 24 | DEBUG;TRACE 25 | prompt 26 | 4 27 | 28 | 29 | x86 30 | pdbonly 31 | true 32 | bin\Release\ 33 | TRACE 34 | prompt 35 | 4 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | DeviceStorage.cs 49 | 50 | 51 | BACnetBase.cs 52 | 53 | 54 | BACnetClient.cs 55 | 56 | 57 | BACnetTransport.cs 58 | 59 | 60 | BACnetTransportIPv6.cs 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | Designer 72 | 73 | 74 | 75 | 76 | Always 77 | 78 | 79 | 80 | 87 | -------------------------------------------------------------------------------- /CodeExamples/DemoBBMD/DemoBBMD.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual C# Express 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DemoBBMD", "DemoBBMD.csproj", "{A2CE9357-71B6-40F7-97C7-74AF1E5659A5}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|x86 = Debug|x86 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {A2CE9357-71B6-40F7-97C7-74AF1E5659A5}.Debug|x86.ActiveCfg = Debug|x86 13 | {A2CE9357-71B6-40F7-97C7-74AF1E5659A5}.Debug|x86.Build.0 = Debug|x86 14 | {A2CE9357-71B6-40F7-97C7-74AF1E5659A5}.Release|x86.ActiveCfg = Release|x86 15 | {A2CE9357-71B6-40F7-97C7-74AF1E5659A5}.Release|x86.Build.0 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /CodeExamples/DemoBBMD/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // Les informations générales relatives à un assembly dépendent de 6 | // l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations 7 | // associées à un assembly. 8 | [assembly: AssemblyTitle("DemoBBMD")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("DemoBBMD")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly 18 | // aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de 19 | // COM, affectez la valeur true à l'attribut ComVisible sur ce type. 20 | [assembly: ComVisible(false)] 21 | 22 | // Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM 23 | [assembly: Guid("2be634fa-2d05-40bc-9698-1be44e02a5fd")] 24 | 25 | // Les informations de version pour un assembly se composent des quatre valeurs suivantes : 26 | // 27 | // Version principale 28 | // Version secondaire 29 | // Numéro de build 30 | // Révision 31 | // 32 | // Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut 33 | // en utilisant '*', comme indiqué ci-dessous : 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /CodeExamples/DemoBBMD/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /CodeExamples/LibBacnet/LibBacnet.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | AnyCPU 6 | 8.0.30703 7 | 2.0 8 | {66832876-01FC-4B7C-8D92-54195773FABF} 9 | Library 10 | Properties 11 | LibBacnet 12 | LibBacnet 13 | v4.0 14 | 512 15 | 16 | 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | pdbonly 27 | true 28 | bin\Release\ 29 | TRACE 30 | prompt 31 | 4 32 | 33 | 34 | 35 | False 36 | ..\..\Yabe\Resources\EmbeddedDll\PacketDotNet.dll 37 | 38 | 39 | False 40 | ..\..\Yabe\Resources\EmbeddedDll\SharpPcap.dll 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | DeviceStorage.cs 53 | 54 | 55 | BACnetBase.cs 56 | 57 | 58 | BACnetClient.cs 59 | 60 | 61 | BACnetTransport.cs 62 | 63 | 64 | BACnetTransportIPv6.cs 65 | 66 | 67 | BACnetTransport.cs 68 | 69 | 70 | BacnetTransportSerial.cs 71 | 72 | 73 | 74 | 75 | 82 | -------------------------------------------------------------------------------- /CodeExamples/LibBacnet/LibBacnet.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual C# Express 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LibBacnet", "LibBacnet.csproj", "{66832876-01FC-4B7C-8D92-54195773FABF}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {66832876-01FC-4B7C-8D92-54195773FABF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {66832876-01FC-4B7C-8D92-54195773FABF}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {66832876-01FC-4B7C-8D92-54195773FABF}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {66832876-01FC-4B7C-8D92-54195773FABF}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /CodeExamples/LibBacnet/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("LibBacnet")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("Yabe")] 9 | [assembly: AssemblyProduct("LibBacnet")] 10 | [assembly: AssemblyCopyright("Copyright © Morten Kvistgaard 2015, MIT License")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | 14 | [assembly: ComVisible(false)] 15 | 16 | [assembly: Guid("fce4c8e3-0d3a-4d90-9c26-349177129433")] 17 | 18 | [assembly: AssemblyVersion("1.0.0.0")] 19 | [assembly: AssemblyFileVersion("1.0.0.0")] 20 | -------------------------------------------------------------------------------- /CodeExamples/LibBacnet/bin/Release/LibBacnet.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/CodeExamples/LibBacnet/bin/Release/LibBacnet.dll -------------------------------------------------------------------------------- /CodeExamples/RaspberrySample/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // Les informations générales relatives à un assembly dépendent de 6 | // l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations 7 | // associées à un assembly. 8 | [assembly: AssemblyTitle("RaspberrySample")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("RasberrySample")] 13 | [assembly: AssemblyCopyright("Copyright ©2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly 18 | // aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de 19 | // COM, affectez la valeur true à l'attribut ComVisible sur ce type. 20 | [assembly: ComVisible(false)] 21 | 22 | // Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM 23 | [assembly: Guid("4640765b-1c38-40c9-8167-9ce1edd444f9")] 24 | 25 | // Les informations de version pour un assembly se composent des quatre valeurs suivantes : 26 | // 27 | // Version principale 28 | // Version secondaire 29 | // Numéro de build 30 | // Révision 31 | // 32 | // Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut 33 | // en utilisant '*', comme indiqué ci-dessous : 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /CodeExamples/RaspberrySample/RaspberrySample.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual C# Express 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RaspberrySample", "RaspberrySample.csproj", "{47FC9B60-CC4A-479C-8267-DCEEE53067AC}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Debug|x86 = Debug|x86 10 | Release|Any CPU = Release|Any CPU 11 | Release|x86 = Release|x86 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {47FC9B60-CC4A-479C-8267-DCEEE53067AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {47FC9B60-CC4A-479C-8267-DCEEE53067AC}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {47FC9B60-CC4A-479C-8267-DCEEE53067AC}.Debug|x86.ActiveCfg = Debug|x86 17 | {47FC9B60-CC4A-479C-8267-DCEEE53067AC}.Debug|x86.Build.0 = Debug|x86 18 | {47FC9B60-CC4A-479C-8267-DCEEE53067AC}.Release|Any CPU.ActiveCfg = Release|Any CPU 19 | {47FC9B60-CC4A-479C-8267-DCEEE53067AC}.Release|Any CPU.Build.0 = Release|Any CPU 20 | {47FC9B60-CC4A-479C-8267-DCEEE53067AC}.Release|x86.ActiveCfg = Release|x86 21 | {47FC9B60-CC4A-479C-8267-DCEEE53067AC}.Release|x86.Build.0 = Release|x86 22 | EndGlobalSection 23 | GlobalSection(SolutionProperties) = preSolution 24 | HideSolutionNode = FALSE 25 | EndGlobalSection 26 | EndGlobal 27 | -------------------------------------------------------------------------------- /CodeExamples/Wheather2_to_Bacnet/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("Wheather2_to_Bacnet")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("F. Chaxel")] 9 | [assembly: AssemblyProduct("Wheather2_to_Bacnet")] 10 | [assembly: AssemblyCopyright("Copyright © F. Chaxel 2016")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | 14 | [assembly: ComVisible(false)] 15 | [assembly: Guid("793f11bf-ae81-40c1-acf3-ff19e1403737")] 16 | 17 | [assembly: AssemblyVersion("1.0.0.0")] 18 | [assembly: AssemblyFileVersion("1.0.0.0")] 19 | -------------------------------------------------------------------------------- /CodeExamples/Wheather2_to_Bacnet/Readme.txt: -------------------------------------------------------------------------------- 1 | /******************************************************************** 2 | * MIT License 3 | * 4 | * Copyright (C) 2016 Frederic Chaxel 5 | * Icon Copyright David Vignoni, licence LGPL 6 | * 7 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 8 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 9 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 10 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 11 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 12 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 13 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 14 | * 15 | *********************************************************************/ 16 | 17 | This program (windows service or console) gets current weather data 18 | from WeatherUnlocked Internet Webservice and 'sends' them on Bacnet. 19 | 20 | You must first creates a user account into https://developer.weatherunlocked.com/ 21 | in order to get an AppId & Key : see https://developer.weatherunlocked.com/signup 22 | It's free of charge for basic services. 23 | 24 | You have to modify and add information into the registry : have a look to 25 | the .Reg file (AppId, UserAccessKey, Latitude, Longitude must be modified). 26 | Latitude, Longitude with no more than 3 decimal places. 27 | 28 | On an old Win32 only PC, removes Wow6432Node from the .reg file entry : 29 | [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Weather2_to_Bacnet] 30 | changes by 31 | [HKEY_LOCAL_MACHINE\SOFTWARE\Weather2_to_Bacnet] 32 | 33 | This .reg file should be registered by a double click. 34 | 35 | To use it as a console application just run the application. 36 | 37 | To register the Windows service : in an admin console type : 38 | installutil.exe Wheather2_to_Bacnet.exe 39 | installutil is located on Windows\Microsoft.NET\Framework\V4xxxx 40 | 41 | then start manually the service or reboot the pc 42 | 43 | 44 | The code could be simply ported to Linux-Mono : 45 | removes the 3 lines of code concerning services in the Main method 46 | hard code (for instance) the 4 parameters : UserAccessKey ... 47 | removes the inheritence between MyService and ServiceBase 48 | removes MyServiceInstaller class 49 | 50 | Weather2 was the service name before 1st March 2018: application name is unchanged. -------------------------------------------------------------------------------- /CodeExamples/Wheather2_to_Bacnet/Wheather2_to_Bacnet.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | NotService 9 | 10 | -------------------------------------------------------------------------------- /CodeExamples/Wheather2_to_Bacnet/Wheather2_to_Bacnet.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual C# Express 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Wheather2_to_Bacnet", "Wheather2_to_Bacnet.csproj", "{7995A5E4-3DD5-40DE-BFB4-E9952B095F1F}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|x86 = Debug|x86 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {7995A5E4-3DD5-40DE-BFB4-E9952B095F1F}.Debug|x86.ActiveCfg = Debug|x86 13 | {7995A5E4-3DD5-40DE-BFB4-E9952B095F1F}.Debug|x86.Build.0 = Debug|x86 14 | {7995A5E4-3DD5-40DE-BFB4-E9952B095F1F}.Release|x86.ActiveCfg = Release|x86 15 | {7995A5E4-3DD5-40DE-BFB4-E9952B095F1F}.Release|x86.Build.0 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /CodeExamples/Wheather2_to_Bacnet/Wheather2config.reg: -------------------------------------------------------------------------------- 1 | Windows Registry Editor Version 5.00 2 | 3 | [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Weather2_to_Bacnet] 4 | "BacnetDeviceId"="12345" 5 | "AppId"="xxxxxx" 6 | "Lang"="fr" 7 | "UserAccessKey"="xxxxxxxxxxx" 8 | "Latitude"="48.658" 9 | "Longitude"="6.151" -------------------------------------------------------------------------------- /CodeExamples/Wheather2_to_Bacnet/parapluie-icone-6978.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/CodeExamples/Wheather2_to_Bacnet/parapluie-icone-6978.ico -------------------------------------------------------------------------------- /CodeExamples/Xamarin/AndroidVeryBasic/AndroidVeryBasic.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | AnyCPU 6 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 7 | {5394E285-DA8D-4432-BBD6-1025115841A4} 8 | Library 9 | AndroidVeryBasic 10 | Resources 11 | Assets 12 | True 13 | True 14 | Resources\Resource.designer.cs 15 | Resource 16 | AndroidVeryBasic 17 | v4.4 18 | Properties\AndroidManifest.xml 19 | 20 | 21 | true 22 | full 23 | false 24 | bin\Debug 25 | DEBUG; 26 | prompt 27 | 4 28 | None 29 | false 30 | 31 | 32 | full 33 | true 34 | bin\Release 35 | prompt 36 | 4 37 | false 38 | false 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | ..\YabeStack\bin\Release\YabeStack.dll 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | -------------------------------------------------------------------------------- /CodeExamples/Xamarin/AndroidVeryBasic/AndroidVeryBasic.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AndroidVeryBasic", "AndroidVeryBasic.csproj", "{5394E285-DA8D-4432-BBD6-1025115841A4}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {5394E285-DA8D-4432-BBD6-1025115841A4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {5394E285-DA8D-4432-BBD6-1025115841A4}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {5394E285-DA8D-4432-BBD6-1025115841A4}.Debug|Any CPU.Deploy.0 = Debug|Any CPU 15 | {5394E285-DA8D-4432-BBD6-1025115841A4}.Release|Any CPU.ActiveCfg = Release|Any CPU 16 | {5394E285-DA8D-4432-BBD6-1025115841A4}.Release|Any CPU.Build.0 = Release|Any CPU 17 | {5394E285-DA8D-4432-BBD6-1025115841A4}.Release|Any CPU.Deploy.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(MonoDevelopProperties) = preSolution 20 | StartupItem = AndroidVeryBasic.csproj 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /CodeExamples/Xamarin/AndroidVeryBasic/AndroidVeryBasic.userprefs: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /CodeExamples/Xamarin/AndroidVeryBasic/Assets/AboutAssets.txt: -------------------------------------------------------------------------------- 1 | Any raw assets you want to be deployed with your application can be placed in 2 | this directory (and child directories) and given a Build Action of "AndroidAsset". 3 | 4 | These files will be deployed with your package and will be accessible using Android's 5 | AssetManager, like this: 6 | 7 | public class ReadAsset : Activity 8 | { 9 | protected override void OnCreate (Bundle bundle) 10 | { 11 | base.OnCreate (bundle); 12 | 13 | InputStream input = Assets.Open ("my_asset.txt"); 14 | } 15 | } 16 | 17 | Additionally, some Android functions will automatically load asset files: 18 | 19 | Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf"); 20 | -------------------------------------------------------------------------------- /CodeExamples/Xamarin/AndroidVeryBasic/MainActivity.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using Android.App; 4 | using Android.Content; 5 | using Android.Runtime; 6 | using Android.Views; 7 | using Android.Widget; 8 | using Android.OS; 9 | using System.IO.BACnet; 10 | 11 | namespace AndroidVeryBasic 12 | { 13 | [Activity (Label = "AndroidVeryBasic", MainLauncher = true, Icon = "@drawable/icon")] 14 | public class MainActivity : Activity 15 | { 16 | 17 | static BacnetClient bacnet_client; // static to get it along the full process life and not only during the activity life. 18 | TextView tv; 19 | 20 | protected override void OnCreate (Bundle bundle) 21 | { 22 | base.OnCreate (bundle); 23 | 24 | // Set our view from the "main" layout resource 25 | SetContentView (Resource.Layout.Main); 26 | 27 | tv = FindViewById(Resource.Id.textView1); 28 | 29 | StartActivity (); 30 | 31 | } 32 | 33 | protected override void OnStart() 34 | { 35 | base.OnStart(); 36 | 37 | tv.Text = ""; 38 | 39 | bacnet_client.OnIam += new BacnetClient.IamHandler(handler_OnIam); 40 | 41 | // Send WhoIs in order to get back all the Iam responses : 42 | bacnet_client.WhoIs(); 43 | 44 | } 45 | 46 | protected override void OnStop() 47 | { 48 | bacnet_client.OnIam -= new BacnetClient.IamHandler(handler_OnIam); 49 | base.OnStop(); 50 | } 51 | 52 | void StartActivity() 53 | { 54 | if (bacnet_client != null) return; 55 | 56 | // Bacnet on UDP/IP/Ethernet 57 | bacnet_client = new BacnetClient(new BacnetIpUdpProtocolTransport(0xBAC0, false)); 58 | 59 | bacnet_client.Start(); // go 60 | 61 | } 62 | 63 | void handler_OnIam(BacnetClient sender, BacnetAddress adr, uint device_id, uint max_apdu, BacnetSegmentations segmentation, ushort vendor_id) 64 | { 65 | // simple write some information concerning the device 66 | RunOnUiThread (() => { 67 | 68 | tv.Text =tv.Text + System.Environment.NewLine+ " BacnetAdr : "+adr.ToString () + ", Device Id : " + device_id.ToString (); 69 | }); 70 | 71 | } 72 | } 73 | } 74 | 75 | 76 | -------------------------------------------------------------------------------- /CodeExamples/Xamarin/AndroidVeryBasic/Properties/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /CodeExamples/Xamarin/AndroidVeryBasic/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using Android.App; 4 | 5 | // Information about this assembly is defined by the following attributes. 6 | // Change them to the values specific to your project. 7 | 8 | [assembly: AssemblyTitle ("AndroidVeryBasic")] 9 | [assembly: AssemblyDescription ("")] 10 | [assembly: AssemblyConfiguration ("")] 11 | [assembly: AssemblyCompany ("")] 12 | [assembly: AssemblyProduct ("")] 13 | [assembly: AssemblyCopyright ("Administrateur")] 14 | [assembly: AssemblyTrademark ("")] 15 | [assembly: AssemblyCulture ("")] 16 | 17 | // The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}". 18 | // The form "{Major}.{Minor}.*" will automatically update the build and revision, 19 | // and "{Major}.{Minor}.{Build}.*" will update just the revision. 20 | 21 | [assembly: AssemblyVersion ("1.0.0")] 22 | 23 | // The following attributes are used to specify the signing key for the assembly, 24 | // if desired. See the Mono documentation for more information about signing. 25 | 26 | //[assembly: AssemblyDelaySign(false)] 27 | //[assembly: AssemblyKeyFile("")] 28 | 29 | -------------------------------------------------------------------------------- /CodeExamples/Xamarin/AndroidVeryBasic/Resources/AboutResources.txt: -------------------------------------------------------------------------------- 1 | Images, layout descriptions, binary blobs and string dictionaries can be included 2 | in your application as resource files. Various Android APIs are designed to 3 | operate on the resource IDs instead of dealing with images, strings or binary blobs 4 | directly. 5 | 6 | For example, a sample Android app that contains a user interface layout (main.axml), 7 | an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png) 8 | would keep its resources in the "Resources" directory of the application: 9 | 10 | Resources/ 11 | drawable/ 12 | icon.png 13 | 14 | layout/ 15 | main.axml 16 | 17 | values/ 18 | strings.xml 19 | 20 | In order to get the build system to recognize Android resources, set the build action to 21 | "AndroidResource". The native Android APIs do not operate directly with filenames, but 22 | instead operate on resource IDs. When you compile an Android application that uses resources, 23 | the build system will package the resources for distribution and generate a class called "R" 24 | (this is an Android convention) that contains the tokens for each one of the resources 25 | included. For example, for the above Resources layout, this is what the R class would expose: 26 | 27 | public class R { 28 | public class drawable { 29 | public const int icon = 0x123; 30 | } 31 | 32 | public class layout { 33 | public const int main = 0x456; 34 | } 35 | 36 | public class strings { 37 | public const int first_string = 0xabc; 38 | public const int second_string = 0xbcd; 39 | } 40 | } 41 | 42 | You would then use R.drawable.icon to reference the drawable/icon.png file, or R.layout.main 43 | to reference the layout/main.axml file, or R.strings.first_string to reference the first 44 | string in the dictionary file values/strings.xml. 45 | -------------------------------------------------------------------------------- /CodeExamples/Xamarin/AndroidVeryBasic/Resources/Resource.designer.cs: -------------------------------------------------------------------------------- 1 | #pragma warning disable 1591 2 | //------------------------------------------------------------------------------ 3 | // 4 | // Ce code a été généré par un outil. 5 | // Version du runtime :4.0.30319.18408 6 | // 7 | // Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si 8 | // le code est régénéré. 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | [assembly: global::Android.Runtime.ResourceDesignerAttribute("AndroidVeryBasic.Resource", IsApplication=true)] 13 | 14 | namespace AndroidVeryBasic 15 | { 16 | 17 | 18 | [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")] 19 | public partial class Resource 20 | { 21 | 22 | static Resource() 23 | { 24 | global::Android.Runtime.ResourceIdManager.UpdateIdValues(); 25 | } 26 | 27 | public static void UpdateIdValues() 28 | { 29 | global::YabeStack.Resource.String.library_name = global::AndroidVeryBasic.Resource.String.library_name; 30 | } 31 | 32 | public partial class Attribute 33 | { 34 | 35 | static Attribute() 36 | { 37 | global::Android.Runtime.ResourceIdManager.UpdateIdValues(); 38 | } 39 | 40 | private Attribute() 41 | { 42 | } 43 | } 44 | 45 | public partial class Drawable 46 | { 47 | 48 | // aapt resource value: 0x7f020000 49 | public const int Icon = 2130837504; 50 | 51 | // aapt resource value: 0x7f020001 52 | public const int monoandroidsplash = 2130837505; 53 | 54 | static Drawable() 55 | { 56 | global::Android.Runtime.ResourceIdManager.UpdateIdValues(); 57 | } 58 | 59 | private Drawable() 60 | { 61 | } 62 | } 63 | 64 | public partial class Id 65 | { 66 | 67 | // aapt resource value: 0x7f060000 68 | public const int textView1 = 2131099648; 69 | 70 | static Id() 71 | { 72 | global::Android.Runtime.ResourceIdManager.UpdateIdValues(); 73 | } 74 | 75 | private Id() 76 | { 77 | } 78 | } 79 | 80 | public partial class Layout 81 | { 82 | 83 | // aapt resource value: 0x7f030000 84 | public const int Main = 2130903040; 85 | 86 | static Layout() 87 | { 88 | global::Android.Runtime.ResourceIdManager.UpdateIdValues(); 89 | } 90 | 91 | private Layout() 92 | { 93 | } 94 | } 95 | 96 | public partial class String 97 | { 98 | 99 | // aapt resource value: 0x7f040002 100 | public const int app_name = 2130968578; 101 | 102 | // aapt resource value: 0x7f040001 103 | public const int hello = 2130968577; 104 | 105 | // aapt resource value: 0x7f040000 106 | public const int library_name = 2130968576; 107 | 108 | static String() 109 | { 110 | global::Android.Runtime.ResourceIdManager.UpdateIdValues(); 111 | } 112 | 113 | private String() 114 | { 115 | } 116 | } 117 | 118 | public partial class Style 119 | { 120 | 121 | // aapt resource value: 0x7f050000 122 | public const int Mono_Android_Theme_Splash = 2131034112; 123 | 124 | static Style() 125 | { 126 | global::Android.Runtime.ResourceIdManager.UpdateIdValues(); 127 | } 128 | 129 | private Style() 130 | { 131 | } 132 | } 133 | } 134 | } 135 | #pragma warning restore 1591 136 | -------------------------------------------------------------------------------- /CodeExamples/Xamarin/AndroidVeryBasic/Resources/drawable/Icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/CodeExamples/Xamarin/AndroidVeryBasic/Resources/drawable/Icon.png -------------------------------------------------------------------------------- /CodeExamples/Xamarin/AndroidVeryBasic/Resources/layout/Main.axml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /CodeExamples/Xamarin/AndroidVeryBasic/Resources/values/Strings.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | Hello World, Click Me! 4 | AndroidVeryBasic 5 | 6 | -------------------------------------------------------------------------------- /CodeExamples/Xamarin/Readme.txt: -------------------------------------------------------------------------------- 1 | ------------------------------------------------------------------------------------------------ 2 | Some codes based on Yabe stack for Xamarin 3 | 4 | Send us your own code (MIT licence) 5 | ------------------------------------------------------------------------------------------------ 6 | 7 | YabeStack Android 8 | YabeStack.dll for Android devices. 9 | 10 | 11 | AndroidVeryBasic 12 | Send WhoIs and displays devices Id in the surrounding. 13 | Bacnet discovery process uses network broadcast, so running the code in the emulator 14 | fails : no devices. One solution is to have a BBMD on the network and register the 15 | application as a Foreign device : see StartActivity in BasicReadWrite code 16 | (the last commented lines of code). If BBMD services is not supported by any PLC, 17 | a sample code for that is avaible in the DemoBBMD directory. -------------------------------------------------------------------------------- /CodeExamples/Xamarin/YabeStack/Resources/AboutResources.txt: -------------------------------------------------------------------------------- 1 | Images, layout descriptions, binary blobs and string dictionaries can be included 2 | in your application as resource files. Various Android APIs are designed to 3 | operate on the resource IDs instead of dealing with images, strings or binary blobs 4 | directly. 5 | 6 | For example, a sample Android app that contains a user interface layout (main.axml), 7 | an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png) 8 | would keep its resources in the "Resources" directory of the application: 9 | 10 | Resources/ 11 | drawable/ 12 | icon.png 13 | 14 | layout/ 15 | main.axml 16 | 17 | values/ 18 | strings.xml 19 | 20 | In order to get the build system to recognize Android resources, set the build action to 21 | "AndroidResource". The native Android APIs do not operate directly with filenames, but 22 | instead operate on resource IDs. When you compile an Android application that uses resources, 23 | the build system will package the resources for distribution and generate a class called "R" 24 | (this is an Android convention) that contains the tokens for each one of the resources 25 | included. For example, for the above Resources layout, this is what the R class would expose: 26 | 27 | public class R { 28 | public class drawable { 29 | public const int icon = 0x123; 30 | } 31 | 32 | public class layout { 33 | public const int main = 0x456; 34 | } 35 | 36 | public class strings { 37 | public const int first_string = 0xabc; 38 | public const int second_string = 0xbcd; 39 | } 40 | } 41 | 42 | You would then use R.drawable.icon to reference the drawable/icon.png file, or R.layout.main 43 | to reference the layout/main.axml file, or R.strings.first_string to reference the first 44 | string in the dictionary file values/strings.xml. 45 | -------------------------------------------------------------------------------- /CodeExamples/Xamarin/YabeStack/Resources/Resource.designer.cs: -------------------------------------------------------------------------------- 1 | #pragma warning disable 1591 2 | //------------------------------------------------------------------------------ 3 | // 4 | // Ce code a été généré par un outil. 5 | // Version du runtime :4.0.30319.18408 6 | // 7 | // Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si 8 | // le code est régénéré. 9 | // 10 | //------------------------------------------------------------------------------ 11 | 12 | [assembly: global::Android.Runtime.ResourceDesignerAttribute("YabeStack.Resource", IsApplication=false)] 13 | 14 | namespace YabeStack 15 | { 16 | 17 | 18 | [System.CodeDom.Compiler.GeneratedCodeAttribute("Xamarin.Android.Build.Tasks", "1.0.0.0")] 19 | public partial class Resource 20 | { 21 | 22 | static Resource() 23 | { 24 | global::Android.Runtime.ResourceIdManager.UpdateIdValues(); 25 | } 26 | 27 | public partial class Attribute 28 | { 29 | 30 | static Attribute() 31 | { 32 | global::Android.Runtime.ResourceIdManager.UpdateIdValues(); 33 | } 34 | 35 | private Attribute() 36 | { 37 | } 38 | } 39 | 40 | public partial class String 41 | { 42 | 43 | // aapt resource value: 0x7f020000 44 | public static int library_name = 2130837504; 45 | 46 | static String() 47 | { 48 | global::Android.Runtime.ResourceIdManager.UpdateIdValues(); 49 | } 50 | 51 | private String() 52 | { 53 | } 54 | } 55 | } 56 | } 57 | #pragma warning restore 1591 58 | -------------------------------------------------------------------------------- /CodeExamples/Xamarin/YabeStack/Resources/values/Strings.xml: -------------------------------------------------------------------------------- 1 |  2 | 3 | YabeStack 4 | 5 | -------------------------------------------------------------------------------- /CodeExamples/Xamarin/YabeStack/YabeStack.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Debug 5 | AnyCPU 6 | {EFBA0AD7-5A72-4C68-AF49-83D382785DCF};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 7 | {6B36C0B6-407F-496B-BCC1-0EEBD647F357} 8 | Library 9 | YabeStack 10 | Assets 11 | True 12 | Resources 13 | Resources\Resource.designer.cs 14 | Resource 15 | YabeStack 16 | v4.4 17 | 18 | 19 | true 20 | full 21 | false 22 | bin\Debug 23 | DEBUG 24 | prompt 25 | 4 26 | None 27 | false 28 | 29 | 30 | true 31 | bin\Release 32 | prompt 33 | 4 34 | false 35 | false 36 | XAMARIN 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | BACnetBase.cs 48 | 49 | 50 | BACnetClient.cs 51 | 52 | 53 | BACnetTransport.cs 54 | 55 | 56 | BACnetTransportIPv6.cs 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /CodeExamples/Xamarin/YabeStack/YabeStack.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 2012 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YabeStack", "YabeStack.csproj", "{6B36C0B6-407F-496B-BCC1-0EEBD647F357}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|Any CPU = Debug|Any CPU 9 | Release|Any CPU = Release|Any CPU 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {6B36C0B6-407F-496B-BCC1-0EEBD647F357}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 13 | {6B36C0B6-407F-496B-BCC1-0EEBD647F357}.Debug|Any CPU.Build.0 = Debug|Any CPU 14 | {6B36C0B6-407F-496B-BCC1-0EEBD647F357}.Release|Any CPU.ActiveCfg = Release|Any CPU 15 | {6B36C0B6-407F-496B-BCC1-0EEBD647F357}.Release|Any CPU.Build.0 = Release|Any CPU 16 | EndGlobalSection 17 | GlobalSection(MonoDevelopProperties) = preSolution 18 | StartupItem = YabeStack.csproj 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /CodeExamples/Xamarin/YabeStack/YabeStack.userprefs: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /CodeExamples/Xamarin/YabeStack/bin/Release/YabeStack.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/CodeExamples/Xamarin/YabeStack/bin/Release/YabeStack.dll -------------------------------------------------------------------------------- /DemoServer/DemoServer.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | x86 6 | 8.0.30703 7 | 2.0 8 | {ACF2683C-BDA5-445F-BF9D-196D133D2460} 9 | Exe 10 | Properties 11 | DemoServer 12 | DemoServer 13 | v4.0 14 | Client 15 | 512 16 | 17 | 18 | x86 19 | true 20 | full 21 | false 22 | bin\Debug\ 23 | DEBUG;TRACE 24 | prompt 25 | 4 26 | 27 | 28 | AnyCPU 29 | pdbonly 30 | true 31 | bin\Release\ 32 | TRACE 33 | prompt 34 | 4 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | BACnetBase.cs 47 | 48 | 49 | BACnetClient.cs 50 | 51 | 52 | BACnetTransport.cs 53 | 54 | 55 | BACnetTransportIPv6.cs 56 | 57 | 58 | BacnetTransportSerial.cs 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | PreserveNewest 67 | Designer 68 | 69 | 70 | 71 | 78 | -------------------------------------------------------------------------------- /DemoServer/DemoServer.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DemoServer", "DemoServer.csproj", "{ACF2683C-BDA5-445F-BF9D-196D133D2460}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|x86 = Debug|x86 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {ACF2683C-BDA5-445F-BF9D-196D133D2460}.Debug|x86.ActiveCfg = Debug|x86 13 | {ACF2683C-BDA5-445F-BF9D-196D133D2460}.Debug|x86.Build.0 = Debug|x86 14 | {ACF2683C-BDA5-445F-BF9D-196D133D2460}.Release|x86.ActiveCfg = Release|x86 15 | {ACF2683C-BDA5-445F-BF9D-196D133D2460}.Release|x86.Build.0 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /DemoServer/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("DemoServer")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("DemoServer")] 13 | [assembly: AssemblyCopyright("Copyright © 2013")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("ff49211f-bd36-4e87-b3cc-4d11b97e2527")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.3.0")] 36 | [assembly: AssemblyFileVersion("1.0.3.0")] 37 | -------------------------------------------------------------------------------- /Docs/BacnetCaptureScreenshot1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Docs/BacnetCaptureScreenshot1.png -------------------------------------------------------------------------------- /Docs/CalendarEditor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Docs/CalendarEditor.png -------------------------------------------------------------------------------- /Docs/DemoServerScreenshot1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Docs/DemoServerScreenshot1.png -------------------------------------------------------------------------------- /Docs/MIT_license.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Yabe project 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /Docs/README.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Docs/README.txt -------------------------------------------------------------------------------- /Docs/Schedule.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Docs/Schedule.png -------------------------------------------------------------------------------- /Docs/Treeview_license.txt: -------------------------------------------------------------------------------- 1 | https://sourceforge.net/projects/mstreeview 2 | 3 | Common Public License 1.0 4 | 5 | Copyright 2004, Coder's Lab 6 | All rights reserved. The software and associated documentation 7 | supplied hereunder are the proprietary information of Coder's Lab 8 | and are supplied subject to licence terms. 9 | 10 | Email: ludwig.stuyck@coders-lab.be 11 | Home page: http://www.coders-lab.be 12 | -------------------------------------------------------------------------------- /Docs/YabeScreenshot1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Docs/YabeScreenshot1.png -------------------------------------------------------------------------------- /Docs/YabeScreenshot2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Docs/YabeScreenshot2.png -------------------------------------------------------------------------------- /Docs/YabeScreenshot3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Docs/YabeScreenshot3.png -------------------------------------------------------------------------------- /Docs/history.txt: -------------------------------------------------------------------------------- 1 | ------------------------------------------------------------------------------- 2 | YABE - YET ANOTHER BACNET EXPLORER 3 | ------------------------------------------------------------------------------- 4 | Roadmap 5 | - Yabe for Android, maybe ? 6 | 7 | 1.1.6 - 20171111 8 | - Devices treeview sorted by deviceId 9 | - Try Reading PROP_LIST if ReadPropertyMultiple is reject 10 | - Data type can be chosen in the Schedule editor 11 | - Serial Bacnet code split in a separated file : simpler for Android/IOs Xamarin 12 | - Multi-selection in the Address Space : allows multi COV advise 13 | - Some bug removal 14 | 15 | 1.1.5 - 20170531 16 | - Remote BBMD tables edition : read & write 17 | - Integration of externals dll into Yabe.exe 18 | 19 | 1.1.4 - 20170312 20 | - Some fixes 21 | - Create/Delete objects services in Yabe menu 22 | 23 | 1.1.3 - 20170101 24 | - File logging of Cov notification Event & Alarm 25 | 26 | 1.1.2 - 20161103 27 | - Gets objects name using ReadPropertyMultiple 28 | - Hide edition of priority array button 29 | 30 | 1.1.0 - 20160630 31 | - Remove a sporadic bug while sorting the object dictionary 32 | - Wheather2_to_Bacnet service application added into the package 33 | - Clean DateTime propertites display 34 | - Remove bug in Mstp & Ptp code 35 | 36 | 1.0.8 - 20160501 37 | - Remote Bacnet/IP node access without BBMD 38 | - Some array index display modifications in the propertyGrid (priority array, ...) 39 | - Write Priority levels keyboard shortcuts 40 | 41 | 1.0.7 - 20160122 42 | - Fix missing DataExpectingReply bit for some querys 43 | 44 | 1.0.5 - 20160104 45 | - Bacnet IPV6 46 | 47 | 1.0.4 - 20151207 48 | - Bacnet/Ethernet support 49 | - Persistant object names database 50 | - Alarm summary 51 | 52 | 1.0.3 - 20150930 53 | - Fix version inconsistencies (installer/inprogram/db) 54 | - A lot minor adjusts by F. Chaxel 55 | - A few by A. Guzik 56 | - Added Bacnet.Room.Simulator + Mstp.BacnetCapture to installer 57 | 58 | 0.9.8 - 2015xxxx 59 | - Added ListView to TrendLog 60 | - Added TrendLog example to DemoServer 61 | 62 | 0.9.7 - 20150427 63 | - Applied many patches by F. Chaxel 64 | - Foreign Device Registration added by F. Chaxel 65 | - Schedule Dialog by F. Chaxel 66 | 67 | 0.9.6 - 20140504 68 | - Added Structured View object 69 | - Added PTP transport 70 | - Added optional Local endpoint for udp 71 | - Object List fallback to retrieve list by index 72 | 73 | 0.9.5 - 20140130 74 | - Added Group object 75 | - Fixed error in Iam encoding 76 | - Fixed error in basic encoding (seen in upload file) 77 | - Improved Iam 78 | - Added better MTU in udp 79 | - Fixed 'supported' bitstring 80 | - Fixed float error 81 | - Improved subscription status 82 | 83 | 0.9.4 - 20140128 84 | - Added Time Synchronize 85 | - Added Device Communication Control 86 | - Added ReinitializedDevice 87 | 88 | 0.9.3 - 20140128 89 | - Segementation 90 | - Some refactoring 91 | - Added some menus 92 | - FileTransfer Tests 93 | 94 | 0.9.2 - 20140122 95 | - Device Database export 96 | - Added default settings 97 | - Added File functions to DemoServer 98 | - Added Subscriptions to DemoServer 99 | - Added File progressbar 100 | 101 | 0.9.1 - 20140117 102 | - Documentation 103 | - Small adjusts 104 | 105 | 0.9.0 - 20140116 106 | - Code is published to SourceForge 107 | -------------------------------------------------------------------------------- /InstallYabe/InnoSetup/license.txt: -------------------------------------------------------------------------------- 1 | Inno Setup License 2 | ================== 3 | 4 | Except where otherwise noted, all of the documentation and software included 5 | in the Inno Setup package is copyrighted by Jordan Russell. 6 | 7 | Copyright (C) 1997-2010 Jordan Russell. All rights reserved. 8 | Portions Copyright (C) 2000-2010 Martijn Laan. All rights reserved. 9 | 10 | This software is provided "as-is," without any express or implied warranty. 11 | In no event shall the author be held liable for any damages arising from the 12 | use of this software. 13 | 14 | Permission is granted to anyone to use this software for any purpose, 15 | including commercial applications, and to alter and redistribute it, 16 | provided that the following conditions are met: 17 | 18 | 1. All redistributions of source code files must retain all copyright 19 | notices that are currently in place, and this list of conditions without 20 | modification. 21 | 22 | 2. All redistributions in binary form must retain all occurrences of the 23 | above copyright notice and web site addresses that are currently in 24 | place (for example, in the About boxes). 25 | 26 | 3. The origin of this software must not be misrepresented; you must not 27 | claim that you wrote the original software. If you use this software to 28 | distribute a product, an acknowledgment in the product documentation 29 | would be appreciated but is not required. 30 | 31 | 4. Modified versions in source or binary form must be plainly marked as 32 | such, and must not be misrepresented as being the original software. 33 | 34 | 35 | Jordan Russell 36 | jr-2010 AT jrsoftware.org 37 | http://www.jrsoftware.org/ 38 | -------------------------------------------------------------------------------- /Mstp.BacnetCapture/BacnetNode.cs: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * MIT License 3 | * 4 | * Copyright (C) 2015 Frederic Chaxel 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | *********************************************************************/ 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | using System.Diagnostics; 31 | 32 | namespace Mstp.BacnetCapture 33 | { 34 | class BacnetNode 35 | { 36 | public int[] FrameTypeStatistic = new int[10]; 37 | public byte Num; 38 | public int TotalFrames; 39 | 40 | static Stopwatch St = new Stopwatch(); 41 | 42 | long mTTR; 43 | 44 | long LastTick; 45 | 46 | static BacnetNode() 47 | { 48 | St.Start(); 49 | } 50 | 51 | public BacnetNode(byte Num) 52 | { 53 | this.Num = Num; 54 | } 55 | 56 | public void NewFrameSend(int type_frame) 57 | { 58 | if (type_frame < 8) 59 | FrameTypeStatistic[type_frame]++; 60 | else 61 | if (type_frame < 128) 62 | FrameTypeStatistic[8]++; 63 | else 64 | FrameTypeStatistic[9]++; 65 | 66 | TotalFrames++; 67 | 68 | if (type_frame == 0) 69 | TokenRotationTimeUpdate(); 70 | 71 | } 72 | 73 | public int MeanTimeTokenRotation 74 | { 75 | get { return (int)((1000*mTTR)/Stopwatch.Frequency); } 76 | } 77 | 78 | private void TokenRotationTimeUpdate() 79 | { 80 | long tick; 81 | 82 | if (LastTick == 0) 83 | { 84 | LastTick = St.ElapsedTicks; 85 | return; 86 | } 87 | 88 | tick = St.ElapsedTicks; 89 | // smoothing 90 | mTTR = ((tick - LastTick) + 100 * mTTR) / 101; 91 | LastTick = tick; 92 | 93 | } 94 | 95 | } 96 | } 97 | -------------------------------------------------------------------------------- /Mstp.BacnetCapture/Mstp.BacnetCapture.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual C# Express 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Mstp.BacnetCapture", "Mstp.BacnetCapture.csproj", "{EDBEE09C-1C7C-4110-91EF-7DE206404553}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|x86 = Debug|x86 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {EDBEE09C-1C7C-4110-91EF-7DE206404553}.Debug|x86.ActiveCfg = Debug|x86 13 | {EDBEE09C-1C7C-4110-91EF-7DE206404553}.Debug|x86.Build.0 = Debug|x86 14 | {EDBEE09C-1C7C-4110-91EF-7DE206404553}.Release|x86.ActiveCfg = Release|x86 15 | {EDBEE09C-1C7C-4110-91EF-7DE206404553}.Release|x86.Build.0 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Mstp.BacnetCapture/Program.cs: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * MIT License 3 | * 4 | * Copyright (C) 2015 Frederic Chaxel 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | *********************************************************************/ 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Windows.Forms; 30 | using System.Threading; 31 | using System.Runtime.InteropServices; 32 | using System.Runtime.Serialization.Formatters.Binary; 33 | using System.IO; 34 | 35 | namespace Mstp.BacnetCapture 36 | { 37 | static class Program 38 | { 39 | /// 40 | /// Point d'entrée principal de l'application. 41 | /// 42 | [STAThread] 43 | static void Main() 44 | { 45 | 46 | //Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US"); 47 | Application.EnableVisualStyles(); 48 | Application.SetCompatibleTextRenderingDefault(false); 49 | Application.Run(new BacnetCapture()); 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Mstp.BacnetCapture/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // Les informations générales relatives à un assembly dépendent de 6 | // l'ensemble d'attributs suivant. Changez les valeurs de ces attributs pour modifier les informations 7 | // associées à un assembly. 8 | [assembly: AssemblyTitle("Mstp.BacnetCapture")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Microsoft")] 12 | [assembly: AssemblyProduct("Mstp.BacnetCapture")] 13 | [assembly: AssemblyCopyright("Copyright © Microsoft 2015")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // L'affectation de la valeur false à ComVisible rend les types invisibles dans cet assembly 18 | // aux composants COM. Si vous devez accéder à un type dans cet assembly à partir de 19 | // COM, affectez la valeur true à l'attribut ComVisible sur ce type. 20 | [assembly: ComVisible(false)] 21 | 22 | // Le GUID suivant est pour l'ID de la typelib si ce projet est exposé à COM 23 | [assembly: Guid("78fc632c-0e07-42a2-a61b-03bf38892974")] 24 | 25 | // Les informations de version pour un assembly se composent des quatre valeurs suivantes : 26 | // 27 | // Version principale 28 | // Version secondaire 29 | // Numéro de build 30 | // Révision 31 | // 32 | // Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut 33 | // en utilisant '*', comme indiqué ci-dessous : 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.0.0.0")] 36 | [assembly: AssemblyFileVersion("1.0.0.0")] 37 | -------------------------------------------------------------------------------- /Mstp.BacnetCapture/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // Ce code a été généré par un outil. 4 | // Version du runtime :4.0.30319.17929 5 | // 6 | // Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si 7 | // le code est régénéré. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Mstp.BacnetCapture.Properties { 12 | using System; 13 | 14 | 15 | /// 16 | /// Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées. 17 | /// 18 | // Cette classe a été générée automatiquement par la classe StronglyTypedResourceBuilder 19 | // à l'aide d'un outil, tel que ResGen ou Visual Studio. 20 | // Pour ajouter ou supprimer un membre, modifiez votre fichier .ResX, puis réexécutez ResGen 21 | // avec l'option /str ou régénérez votre projet VS. 22 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 24 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 25 | internal class Resources { 26 | 27 | private static global::System.Resources.ResourceManager resourceMan; 28 | 29 | private static global::System.Globalization.CultureInfo resourceCulture; 30 | 31 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 32 | internal Resources() { 33 | } 34 | 35 | /// 36 | /// Retourne l'instance ResourceManager mise en cache utilisée par cette classe. 37 | /// 38 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 39 | internal static global::System.Resources.ResourceManager ResourceManager { 40 | get { 41 | if (object.ReferenceEquals(resourceMan, null)) { 42 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Mstp.BacnetCapture.Properties.Resources", typeof(Resources).Assembly); 43 | resourceMan = temp; 44 | } 45 | return resourceMan; 46 | } 47 | } 48 | 49 | /// 50 | /// Remplace la propriété CurrentUICulture du thread actuel pour toutes 51 | /// les recherches de ressources à l'aide de cette classe de ressource fortement typée. 52 | /// 53 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 54 | internal static global::System.Globalization.CultureInfo Culture { 55 | get { 56 | return resourceCulture; 57 | } 58 | set { 59 | resourceCulture = value; 60 | } 61 | } 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /Mstp.BacnetCapture/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // Ce code a été généré par un outil. 4 | // Version du runtime :4.0.30319.17929 5 | // 6 | // Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si 7 | // le code est régénéré. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace Mstp.BacnetCapture.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Mstp.BacnetCapture/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Mstp.BacnetCapture/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Mstp.BacnetCapture/ico/Icons8-Ios7-Animals-Shark.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Mstp.BacnetCapture/ico/Icons8-Ios7-Animals-Shark.ico -------------------------------------------------------------------------------- /Mstp.BacnetCapture/ico/License.txt: -------------------------------------------------------------------------------- 1 | Shark icon is Free from http://icons8.com/ -------------------------------------------------------------------------------- /Mstp.BacnetCapture/ico/Loupe.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Mstp.BacnetCapture/ico/Loupe.png -------------------------------------------------------------------------------- /Mstp.BacnetCapture/ico/Plc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Mstp.BacnetCapture/ico/Plc.png -------------------------------------------------------------------------------- /Mstp.BacnetCapture/ico/Stat2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Mstp.BacnetCapture/ico/Stat2.png -------------------------------------------------------------------------------- /OfflineDebug/OfflineStackDebug.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | x86 6 | 8.0.30703 7 | 2.0 8 | {7DE54D88-8705-44B2-8876-5FBEA65A39C7} 9 | Exe 10 | Properties 11 | OfflineStackDebug 12 | StackDebug 13 | v4.0 14 | Client 15 | 512 16 | 17 | 18 | x86 19 | true 20 | full 21 | false 22 | bin\Debug\ 23 | DEBUG;TRACE 24 | prompt 25 | 4 26 | 27 | 28 | x86 29 | pdbonly 30 | true 31 | bin\Release\ 32 | TRACE 33 | prompt 34 | 4 35 | 36 | 37 | 38 | 39 | ..\Yabe\SharpPcap.dll 40 | 41 | 42 | 43 | 44 | 45 | 46 | BACnetBase.cs 47 | 48 | 49 | BACnetClient.cs 50 | 51 | 52 | BACnetTransport.cs 53 | 54 | 55 | BACnetTransportIPv6.cs 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 70 | -------------------------------------------------------------------------------- /OfflineDebug/OfflineStackDebug.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual C# Express 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "OfflineStackDebug", "OfflineStackDebug.csproj", "{7DE54D88-8705-44B2-8876-5FBEA65A39C7}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|x86 = Debug|x86 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {7DE54D88-8705-44B2-8876-5FBEA65A39C7}.Debug|x86.ActiveCfg = Debug|x86 13 | {7DE54D88-8705-44B2-8876-5FBEA65A39C7}.Debug|x86.Build.0 = Debug|x86 14 | {7DE54D88-8705-44B2-8876-5FBEA65A39C7}.Release|x86.ActiveCfg = Release|x86 15 | {7DE54D88-8705-44B2-8876-5FBEA65A39C7}.Release|x86.Build.0 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /OfflineDebug/ReadPropMultiple.pcap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/OfflineDebug/ReadPropMultiple.pcap -------------------------------------------------------------------------------- /OfflineDebug/Readme.txt: -------------------------------------------------------------------------------- 1 | To offline debugging code in the stack with a previous tcpdump 2 | or wireshark frame(s) capture. 3 | 4 | For deep stack investigation/modification only. -------------------------------------------------------------------------------- /Yabe/CreateObject.cs: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * MIT License 3 | * 4 | * Copyright (C) 2015 Frederic Chaxel 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | *********************************************************************/ 26 | using System; 27 | using System.Collections.Generic; 28 | using System.ComponentModel; 29 | using System.Data; 30 | using System.Drawing; 31 | using System.Linq; 32 | using System.Text; 33 | using System.Windows.Forms; 34 | using System.IO.BACnet; 35 | 36 | namespace Yabe 37 | { 38 | public partial class CreateObject : Form 39 | { 40 | public CreateObject() 41 | { 42 | InitializeComponent(); 43 | DialogResult = System.Windows.Forms.DialogResult.Cancel; 44 | } 45 | 46 | private void CreateObject_Load(object sender, EventArgs e) 47 | { 48 | for (int i=0;i<=(int)BacnetObjectTypes.OBJECT_BINARY_LIGHTING_OUTPUT;i++) 49 | ObjectType.Items.Add(Enum.GetName(typeof(BacnetObjectTypes),i)); 50 | 51 | ObjectType.SelectedIndex = 0; 52 | } 53 | 54 | private void Cancel_Click(object sender, EventArgs e) 55 | { 56 | Close(); 57 | } 58 | 59 | private void Create_Click(object sender, EventArgs e) 60 | { 61 | DialogResult = System.Windows.Forms.DialogResult.OK; 62 | Close(); 63 | } 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /Yabe/DeviceCommunicationControlDialog.cs: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * MIT License 3 | * 4 | * Copyright (C) 2014 Morten Kvistgaard 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | *********************************************************************/ 26 | 27 | using System; 28 | using System.Collections.Generic; 29 | using System.ComponentModel; 30 | using System.Data; 31 | using System.Drawing; 32 | using System.Text; 33 | using System.Windows.Forms; 34 | 35 | namespace Yabe 36 | { 37 | public partial class DeviceCommunicationControlDialog : Form 38 | { 39 | public DeviceCommunicationControlDialog() 40 | { 41 | InitializeComponent(); 42 | } 43 | 44 | public bool IsReinitialize { get { return m_reinitializeRadio.Checked; } set { m_reinitializeRadio.Checked = value; } } 45 | public bool DisableCommunication { get { return m_disableCheck.Checked; } set { m_disableCheck.Checked = value; } } 46 | public uint Duration { get { return (uint)m_durationValue.Value; } set { m_durationValue.Value = value; } } 47 | public string Password { get { return m_passwordText.Text; } set { m_passwordText.Text = value; } } 48 | public System.IO.BACnet.BacnetReinitializedStates ReinitializeState { get { return (System.IO.BACnet.BacnetReinitializedStates)Enum.Parse(typeof(System.IO.BACnet.BacnetReinitializedStates), "BACNET_REINIT_" + m_StateCombo.Text); } set { m_StateCombo.Text = value.ToString(); } } 49 | 50 | private void reinitializeRadio_CheckedChanged(object sender, EventArgs e) 51 | { 52 | if (m_reinitializeRadio.Checked) 53 | { 54 | m_reinitializeGroup.Enabled = true; 55 | m_communicationGroup.Enabled = false; 56 | } 57 | else 58 | { 59 | m_reinitializeGroup.Enabled = false; 60 | m_communicationGroup.Enabled = true; 61 | } 62 | } 63 | 64 | private void DeviceCommunicationControlDialog_Load(object sender, EventArgs e) 65 | { 66 | string[] names = Enum.GetNames(typeof(System.IO.BACnet.BacnetReinitializedStates)); 67 | for (int i = 0; i < names.Length; i++) 68 | names[i] = names[i].Replace("BACNET_REINIT_", ""); 69 | m_StateCombo.Items.AddRange(names); 70 | if (names.Length > 0) 71 | m_StateCombo.Text = names[0]; 72 | } 73 | } 74 | } 75 | -------------------------------------------------------------------------------- /Yabe/ForeignRegistry.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.ComponentModel; 3 | using System.Drawing; 4 | using System.Text; 5 | using System.Windows.Forms; 6 | using System.IO.BACnet; 7 | using System.Threading; 8 | using System.Net; 9 | using System.Linq; 10 | using System.Net.Sockets; 11 | 12 | namespace Yabe 13 | { 14 | public partial class ForeignRegistry : Form 15 | { 16 | BacnetClient client; 17 | 18 | public ForeignRegistry(BacnetClient client) 19 | { 20 | this.client = client; 21 | InitializeComponent(); 22 | BBMD_IP.Text = Properties.Settings.Default.DefaultBBMD; 23 | } 24 | 25 | private int PortNumber() 26 | { 27 | int Port; 28 | Int32.TryParse(BBMD_Port.Text, out Port); 29 | return Port==0 ? 47808 : Port; 30 | 31 | } 32 | private void sendFDR_Click(object sender, EventArgs e) 33 | { 34 | try 35 | { 36 | IPAddress[] IPs = Dns.GetHostAddresses(BBMD_IP.Text); 37 | 38 | IPAddress IP; 39 | 40 | if (client.Transport is BacnetIpUdpProtocolTransport) 41 | IP = IPs.First(o => o.AddressFamily == AddressFamily.InterNetwork); 42 | else 43 | IP = IPs.First(o => o.AddressFamily == AddressFamily.InterNetworkV6); 44 | 45 | client.RegisterAsForeignDevice(IP.ToString(), 30, PortNumber()); 46 | Thread.Sleep(50); 47 | client.RemoteWhoIs(IP.ToString(), PortNumber()); 48 | SendWhois.Enabled = true; 49 | } 50 | catch { } 51 | } 52 | 53 | private void SendWhois_Click(object sender, EventArgs e) 54 | { 55 | try 56 | { 57 | IPAddress[] IPs = Dns.GetHostAddresses(BBMD_IP.Text); 58 | 59 | IPAddress IP; 60 | 61 | if (client.Transport is BacnetIpUdpProtocolTransport) 62 | IP = IPs.First(o => o.AddressFamily == AddressFamily.InterNetwork); 63 | else 64 | IP = IPs.First(o => o.AddressFamily == AddressFamily.InterNetworkV6); 65 | 66 | client.RemoteWhoIs(IP.ToString(), PortNumber()); 67 | } 68 | catch { } 69 | } 70 | 71 | private void BBMD_IP_KeyDown(object sender, KeyEventArgs e) 72 | { 73 | if (e.KeyCode == Keys.Enter) 74 | sendFDR_Click(null, null); 75 | } 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /Yabe/IYabePlugin.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace Yabe 7 | { 8 | public interface IYabePlugin 9 | { 10 | void Init(YabeMainDialog yabeFrm); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Yabe/Program.cs: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * MIT License 3 | * 4 | * Copyright (C) 2014 Morten Kvistgaard 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | *********************************************************************/ 26 | 27 | using System; 28 | using System.Collections.Generic; 29 | using System.Windows.Forms; 30 | using System.Reflection; 31 | using System.IO; 32 | using System.Linq; 33 | 34 | namespace Yabe 35 | { 36 | static class Program 37 | { 38 | /// 39 | /// The main entry point for the application. 40 | /// 41 | [STAThread] 42 | static void Main() 43 | { 44 | // Load Embbeded dll 45 | AppDomain.CurrentDomain.AssemblyResolve += (sender, args) => 46 | { 47 | 48 | Assembly thisAssembly = Assembly.GetExecutingAssembly(); 49 | 50 | //Get the Name of the AssemblyFile 51 | var name = args.Name.Substring(0, args.Name.IndexOf(',')) + ".dll"; 52 | 53 | //Load form Embedded Resources - This Function is not called if the Assembly is in the Application Folder 54 | var resources = thisAssembly.GetManifestResourceNames().Where(s => s.EndsWith(name)); 55 | if (resources.Count() > 0) 56 | { 57 | var resourceName = resources.First(); 58 | using (Stream stream = thisAssembly.GetManifestResourceStream(resourceName)) 59 | { 60 | if (stream == null) return null; 61 | var block = new byte[stream.Length]; 62 | stream.Read(block, 0, block.Length); 63 | return Assembly.Load(block); 64 | } 65 | } 66 | return null; 67 | }; 68 | Run(); 69 | } 70 | 71 | static void Run() 72 | { 73 | Application.EnableVisualStyles(); 74 | Application.SetCompatibleTextRenderingDefault(false); 75 | Application.Run(new YabeMainDialog()); 76 | } 77 | } 78 | } 79 | -------------------------------------------------------------------------------- /Yabe/ProgressDialog.cs: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * MIT License 3 | * 4 | * Copyright (C) 2014 Morten Kvistgaard 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | *********************************************************************/ 26 | 27 | using System; 28 | using System.Collections.Generic; 29 | using System.ComponentModel; 30 | using System.Data; 31 | using System.Drawing; 32 | using System.Text; 33 | using System.Windows.Forms; 34 | 35 | namespace Yabe 36 | { 37 | public partial class ProgressDialog : Form 38 | { 39 | public int Minimum { get { return m_progessbar.Minimum; } set { m_progessbar.Minimum = value; } } 40 | public int Maximum { get { return m_progessbar.Maximum; } set { m_progessbar.Maximum = value; } } 41 | 42 | public event EventHandler Cancel; 43 | 44 | public ProgressDialog() 45 | { 46 | InitializeComponent(); 47 | } 48 | 49 | public int Value 50 | { 51 | get 52 | { 53 | return m_progessbar.Value; 54 | } 55 | set 56 | { 57 | m_progessbar.Value = value; 58 | Application.DoEvents(); 59 | } 60 | } 61 | 62 | public void Increment(int value) 63 | { 64 | m_progessbar.Increment(value); 65 | Application.DoEvents(); 66 | } 67 | 68 | public string Label 69 | { 70 | get 71 | { 72 | return m_Label.Text; 73 | } 74 | set 75 | { 76 | m_Label.Text = value; 77 | Application.DoEvents(); 78 | } 79 | } 80 | 81 | public bool IsCancelled 82 | { 83 | get 84 | { 85 | if (this.IsDisposed || this.DialogResult == System.Windows.Forms.DialogResult.Cancel) return true; 86 | else return false; 87 | } 88 | } 89 | 90 | private void m_CancelButton_Click(object sender, EventArgs e) 91 | { 92 | this.Close(); 93 | } 94 | 95 | private void ProgressDialog_FormClosing(object sender, FormClosingEventArgs e) 96 | { 97 | if (Cancel != null) Cancel(this, null); 98 | } 99 | } 100 | } 101 | -------------------------------------------------------------------------------- /Yabe/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | // General Information about an assembly is controlled through the following 6 | // set of attributes. Change these attribute values to modify the information 7 | // associated with an assembly. 8 | [assembly: AssemblyTitle("Yabe")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("Yabe")] 13 | [assembly: AssemblyCopyright("Copyright © 2014")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Setting ComVisible to false makes the types in this assembly not visible 18 | // to COM components. If you need to access a type in this assembly from 19 | // COM, set the ComVisible attribute to true on that type. 20 | [assembly: ComVisible(false)] 21 | 22 | // The following GUID is for the ID of the typelib if this project is exposed to COM 23 | [assembly: Guid("22187590-f863-4969-bb4b-404f25b91805")] 24 | 25 | // Version information for an assembly consists of the following four values: 26 | // 27 | // Major Version 28 | // Minor Version 29 | // Build Number 30 | // Revision 31 | // 32 | // You can specify all the values or you can default the Build and Revision Numbers 33 | // by using the '*' as shown below: 34 | // [assembly: AssemblyVersion("1.0.*")] 35 | [assembly: AssemblyVersion("1.1.9.0")] 36 | [assembly: AssemblyFileVersion("1.1.9.0")] 37 | -------------------------------------------------------------------------------- /Yabe/ReadSinglePropDescr.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 6 | 7 | 8 | 9 | OBJECT_PROGRAM 10 | 11 | PROP_PROGRAM_STATE 12 | PROP_PROGRAM_CHANGE 13 | PROP_STATUS_FLAGS 14 | PROP_OUT_OF_SERVICE 15 | PROP_DESCRIPTION 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /Yabe/Resources/EmbeddedDll/CalendarView.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/EmbeddedDll/CalendarView.dll -------------------------------------------------------------------------------- /Yabe/Resources/EmbeddedDll/PacketDotNet.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/EmbeddedDll/PacketDotNet.dll -------------------------------------------------------------------------------- /Yabe/Resources/EmbeddedDll/SharpPcap.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/EmbeddedDll/SharpPcap.dll -------------------------------------------------------------------------------- /Yabe/Resources/EmbeddedDll/ZedGraph.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/EmbeddedDll/ZedGraph.dll -------------------------------------------------------------------------------- /Yabe/Resources/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/add.png -------------------------------------------------------------------------------- /Yabe/Resources/application_form.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/application_form.png -------------------------------------------------------------------------------- /Yabe/Resources/bell.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/bell.png -------------------------------------------------------------------------------- /Yabe/Resources/book_open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/book_open.png -------------------------------------------------------------------------------- /Yabe/Resources/calendar.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/calendar.png -------------------------------------------------------------------------------- /Yabe/Resources/calendar_view_week.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/calendar_view_week.png -------------------------------------------------------------------------------- /Yabe/Resources/chart_line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/chart_line.png -------------------------------------------------------------------------------- /Yabe/Resources/clock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/clock.png -------------------------------------------------------------------------------- /Yabe/Resources/cross.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/cross.png -------------------------------------------------------------------------------- /Yabe/Resources/database.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/database.png -------------------------------------------------------------------------------- /Yabe/Resources/database_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/database_delete.png -------------------------------------------------------------------------------- /Yabe/Resources/database_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/database_edit.png -------------------------------------------------------------------------------- /Yabe/Resources/database_go1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/database_go1.png -------------------------------------------------------------------------------- /Yabe/Resources/date.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/date.png -------------------------------------------------------------------------------- /Yabe/Resources/error.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/error.png -------------------------------------------------------------------------------- /Yabe/Resources/eye.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/eye.png -------------------------------------------------------------------------------- /Yabe/Resources/find.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/find.png -------------------------------------------------------------------------------- /Yabe/Resources/information.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/information.png -------------------------------------------------------------------------------- /Yabe/Resources/magnifier.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/magnifier.png -------------------------------------------------------------------------------- /Yabe/Resources/monitor.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/monitor.png -------------------------------------------------------------------------------- /Yabe/Resources/note.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/note.png -------------------------------------------------------------------------------- /Yabe/Resources/pencil_add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/pencil_add.png -------------------------------------------------------------------------------- /Yabe/Resources/pencil_delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/pencil_delete.png -------------------------------------------------------------------------------- /Yabe/Resources/plugin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/plugin.png -------------------------------------------------------------------------------- /Yabe/Resources/text_smallcaps.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/text_smallcaps.png -------------------------------------------------------------------------------- /Yabe/Resources/time_go.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/time_go.png -------------------------------------------------------------------------------- /Yabe/Resources/transmit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/transmit.png -------------------------------------------------------------------------------- /Yabe/Resources/world.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Resources/world.png -------------------------------------------------------------------------------- /Yabe/Search.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/Search.ico -------------------------------------------------------------------------------- /Yabe/SettingsDialog.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace Yabe 2 | { 3 | partial class SettingsDialog 4 | { 5 | /// 6 | /// Required designer variable. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Clean up any resources being used. 12 | /// 13 | /// true if managed resources should be disposed; otherwise, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Windows Form Designer generated code 24 | 25 | /// 26 | /// Required method for Designer support - do not modify 27 | /// the contents of this method with the code editor. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.m_SettingsGrid = new System.Windows.Forms.PropertyGrid(); 32 | this.label1 = new System.Windows.Forms.Label(); 33 | this.SuspendLayout(); 34 | // 35 | // m_SettingsGrid 36 | // 37 | this.m_SettingsGrid.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 38 | | System.Windows.Forms.AnchorStyles.Left) 39 | | System.Windows.Forms.AnchorStyles.Right))); 40 | this.m_SettingsGrid.LineColor = System.Drawing.SystemColors.ControlDark; 41 | this.m_SettingsGrid.Location = new System.Drawing.Point(12, 12); 42 | this.m_SettingsGrid.Name = "m_SettingsGrid"; 43 | this.m_SettingsGrid.Size = new System.Drawing.Size(467, 420); 44 | this.m_SettingsGrid.TabIndex = 0; 45 | // 46 | // label1 47 | // 48 | this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 49 | this.label1.AutoSize = true; 50 | this.label1.Location = new System.Drawing.Point(9, 435); 51 | this.label1.Name = "label1"; 52 | this.label1.Size = new System.Drawing.Size(242, 13); 53 | this.label1.TabIndex = 1; 54 | this.label1.Text = "Some settings may require a restart of the program"; 55 | // 56 | // SettingsDialog 57 | // 58 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 59 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 60 | this.ClientSize = new System.Drawing.Size(491, 457); 61 | this.Controls.Add(this.label1); 62 | this.Controls.Add(this.m_SettingsGrid); 63 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.SizableToolWindow; 64 | this.MaximizeBox = false; 65 | this.MinimizeBox = false; 66 | this.Name = "SettingsDialog"; 67 | this.ShowIcon = false; 68 | this.ShowInTaskbar = false; 69 | this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent; 70 | this.Text = "Settings"; 71 | this.Load += new System.EventHandler(this.SettingsDialog_Load); 72 | this.ResumeLayout(false); 73 | this.PerformLayout(); 74 | 75 | } 76 | 77 | #endregion 78 | 79 | private System.Windows.Forms.PropertyGrid m_SettingsGrid; 80 | private System.Windows.Forms.Label label1; 81 | } 82 | } -------------------------------------------------------------------------------- /Yabe/SettingsDialog.cs: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * MIT License 3 | * 4 | * Copyright (C) 2014 Morten Kvistgaard 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | *********************************************************************/ 26 | 27 | using System; 28 | using System.Collections.Generic; 29 | using System.ComponentModel; 30 | using System.Data; 31 | using System.Drawing; 32 | using System.Text; 33 | using System.Windows.Forms; 34 | 35 | namespace Yabe 36 | { 37 | public partial class SettingsDialog : Form 38 | { 39 | public SettingsDialog() 40 | { 41 | InitializeComponent(); 42 | } 43 | 44 | public object SelectedObject { get { return m_SettingsGrid.SelectedObject; } set { m_SettingsGrid.SelectedObject = value; } } 45 | 46 | private void SettingsDialog_Load(object sender, EventArgs e) 47 | { 48 | 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Yabe/SourceAddressDialog.cs: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * MIT License 3 | * 4 | * Copyright (C) 2014 Morten Kvistgaard 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | *********************************************************************/ 26 | 27 | using System; 28 | using System.Collections.Generic; 29 | using System.ComponentModel; 30 | using System.Data; 31 | using System.Drawing; 32 | using System.Text; 33 | using System.Windows.Forms; 34 | 35 | namespace Yabe 36 | { 37 | public partial class SourceAddressDialog : Form 38 | { 39 | public SourceAddressDialog() 40 | { 41 | InitializeComponent(); 42 | } 43 | 44 | public byte SourceAddress 45 | { 46 | get 47 | { 48 | return (byte)m_SourceAddressValue.Value; 49 | } 50 | set 51 | { 52 | m_SourceAddressValue.Value = value; 53 | } 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Yabe/TreeView.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/TreeView.cs -------------------------------------------------------------------------------- /Yabe/Yabe.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 11.00 3 | # Visual Studio 2010 4 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Yabe", "Yabe.csproj", "{EE493B17-8185-406C-881F-1144092F01CB}" 5 | EndProject 6 | Global 7 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 8 | Debug|x86 = Debug|x86 9 | Release|x86 = Release|x86 10 | EndGlobalSection 11 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 12 | {EE493B17-8185-406C-881F-1144092F01CB}.Debug|x86.ActiveCfg = Debug|x86 13 | {EE493B17-8185-406C-881F-1144092F01CB}.Debug|x86.Build.0 = Debug|x86 14 | {EE493B17-8185-406C-881F-1144092F01CB}.Release|x86.ActiveCfg = Release|x86 15 | {EE493B17-8185-406C-881F-1144092F01CB}.Release|x86.Build.0 = Release|x86 16 | EndGlobalSection 17 | GlobalSection(SolutionProperties) = preSolution 18 | HideSolutionNode = FALSE 19 | EndGlobalSection 20 | EndGlobal 21 | -------------------------------------------------------------------------------- /Yabe/YabeDeviceDescriptor.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | OBJECT_DEVICE:0 8 | 9 | 10 | OBJECT_DEVICE:0 11 | 12 | 13 | Yet Another Bacnet Explorer 14 | 15 | 16 | 8 17 | 18 | 19 | 0 20 | 21 | 22 | Morten Kvistgaard, MIT licence, 2015 23 | 24 | 25 | 61440 26 | 27 | 28 | YABE_2015 29 | 30 | 31 | 0 32 | 33 | 34 | 0 35 | 36 | 37 | 1 38 | 39 | 40 | 14 41 | 42 | 43 | 0000000000001010000000000010000000100000 44 | 45 | 46 | 000000001000000000000000000000000000000000000000000 47 | 48 | 49 | 1476 50 | 51 | 52 | 0 53 | 54 | 55 | 3000 56 | 57 | 58 | 3 59 | 60 | 61 | 62 | 0 63 | 64 | 65 | 66 | 67 | 68 | -------------------------------------------------------------------------------- /Yabe/latestBin/Yabe.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/Yabe/latestBin/Yabe.exe -------------------------------------------------------------------------------- /YabePlugins/CheckReliability/CheckReliability.cs: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * MIT License 3 | * 4 | * Copyright (C) 2018 Frederic Chaxel 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | *********************************************************************/ 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | using Yabe; 31 | using System.Windows.Forms; 32 | using System.Diagnostics; 33 | using System.IO.BACnet; 34 | 35 | // 36 | // For simplicity all this code can be tested directly into Yabe project before exporting it 37 | // 38 | 39 | namespace CheckReliability // namespace should have the same name as the dll file 40 | { 41 | public class Plugin : IYabePlugin // class should be named Plugin and implementation of IYabePlugin is required 42 | { 43 | YabeMainDialog yabeFrm; 44 | // yabeFrm is also declared into Yabe Main class 45 | // This is usefull for plugin developpement inside Yabe project, before exporting it 46 | 47 | public void Init(YabeMainDialog yabeFrm) // This is the unique mandatory method for a Yabe plugin 48 | { 49 | this.yabeFrm = yabeFrm; 50 | 51 | // Creates the Menu Item 52 | ToolStripMenuItem MenuItem=new ToolStripMenuItem(); 53 | MenuItem.Text="Check Reliability"; 54 | MenuItem.Click += new EventHandler(MenuItem_Click); 55 | 56 | // Add It as a sub menu (pluginsToolStripMenuItem is the only public Menu member) 57 | yabeFrm.pluginsToolStripMenuItem.DropDownItems.Add(MenuItem); 58 | 59 | } 60 | 61 | // Here only uses the content of the two Treeview into YabeMainDialog object 62 | // yabeFrm.m_AddressSpaceTree 63 | // yabeFrm.m_DeviceTree 64 | // DevicesObjectsName 65 | // 66 | // Also Trace.WriteLine can be used 67 | 68 | public void MenuItem_Click(object sender, EventArgs e) 69 | { 70 | try // try catch all to avoid Yabe crach 71 | { 72 | Trace.WriteLine("call to the CheckReliability plugin"); 73 | 74 | Reliability frm = new Reliability(yabeFrm); 75 | frm.ShowDialog(); 76 | } 77 | catch { } 78 | } 79 | 80 | 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /YabePlugins/CheckReliability/CheckReliability.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | AnyCPU 6 | 8.0.30703 7 | 2.0 8 | {CFC3FD4F-42F9-40E7-B710-BAD924B63208} 9 | Library 10 | Properties 11 | CheckReliability 12 | CheckReliability 13 | v4.0 14 | 512 15 | 16 | 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | pdbonly 27 | true 28 | bin\Release\ 29 | TRACE 30 | prompt 31 | 4 32 | 33 | 34 | true 35 | bin\x86\Debug\ 36 | DEBUG;TRACE 37 | full 38 | x86 39 | prompt 40 | 41 | 42 | bin\x86\Release\ 43 | TRACE 44 | true 45 | pdbonly 46 | x86 47 | prompt 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | ..\..\Yabe\bin\Debug\Yabe.exe 61 | False 62 | 63 | 64 | 65 | 66 | 67 | 68 | Form 69 | 70 | 71 | Reliability.cs 72 | 73 | 74 | 75 | 76 | Reliability.cs 77 | 78 | 79 | 80 | 87 | -------------------------------------------------------------------------------- /YabePlugins/CheckReliability/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("CheckReliability Yabe Plugin")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("F. Chaxel")] 9 | [assembly: AssemblyProduct("CheckReliability")] 10 | [assembly: AssemblyCopyright("Copyright © F. Chaxel 2018")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | 14 | [assembly: ComVisible(false)] 15 | 16 | [assembly: Guid("1d41548e-078f-49cb-b139-a5f560e80eda")] 17 | 18 | [assembly: AssemblyVersion("1.0.0.0")] 19 | [assembly: AssemblyFileVersion("1.0.0.0")] 20 | -------------------------------------------------------------------------------- /YabePlugins/CheckReliability/Reliability.Designer.cs: -------------------------------------------------------------------------------- 1 | namespace CheckReliability 2 | { 3 | partial class Reliability 4 | { 5 | /// 6 | /// Variable nécessaire au concepteur. 7 | /// 8 | private System.ComponentModel.IContainer components = null; 9 | 10 | /// 11 | /// Nettoyage des ressources utilisées. 12 | /// 13 | /// true si les ressources managées doivent être supprimées ; sinon, false. 14 | protected override void Dispose(bool disposing) 15 | { 16 | if (disposing && (components != null)) 17 | { 18 | components.Dispose(); 19 | } 20 | base.Dispose(disposing); 21 | } 22 | 23 | #region Code généré par le Concepteur Windows Form 24 | 25 | /// 26 | /// Méthode requise pour la prise en charge du concepteur - ne modifiez pas 27 | /// le contenu de cette méthode avec l'éditeur de code. 28 | /// 29 | private void InitializeComponent() 30 | { 31 | this.treeView1 = new System.Windows.Forms.TreeView(); 32 | this.Devicename = new System.Windows.Forms.Label(); 33 | this.EmptyList = new System.Windows.Forms.Label(); 34 | this.SuspendLayout(); 35 | // 36 | // treeView1 37 | // 38 | this.treeView1.Location = new System.Drawing.Point(16, 32); 39 | this.treeView1.Name = "treeView1"; 40 | this.treeView1.Size = new System.Drawing.Size(255, 266); 41 | this.treeView1.TabIndex = 0; 42 | // 43 | // Devicename 44 | // 45 | this.Devicename.AutoSize = true; 46 | this.Devicename.Location = new System.Drawing.Point(16, 13); 47 | this.Devicename.Name = "Devicename"; 48 | this.Devicename.Size = new System.Drawing.Size(35, 13); 49 | this.Devicename.TabIndex = 1; 50 | this.Devicename.Text = "label1"; 51 | // 52 | // EmptyList 53 | // 54 | this.EmptyList.AutoSize = true; 55 | this.EmptyList.BackColor = System.Drawing.SystemColors.Window; 56 | this.EmptyList.Location = new System.Drawing.Point(86, 148); 57 | this.EmptyList.Name = "EmptyList"; 58 | this.EmptyList.Size = new System.Drawing.Size(109, 13); 59 | this.EmptyList.TabIndex = 2; 60 | this.EmptyList.Text = "All Reliabilities are OK"; 61 | this.EmptyList.Visible = false; 62 | // 63 | // Reliability 64 | // 65 | this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 66 | this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 67 | this.ClientSize = new System.Drawing.Size(291, 315); 68 | this.Controls.Add(this.EmptyList); 69 | this.Controls.Add(this.Devicename); 70 | this.Controls.Add(this.treeView1); 71 | this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog; 72 | this.MaximizeBox = false; 73 | this.MinimizeBox = false; 74 | this.Name = "Reliability"; 75 | this.Text = "Reliability"; 76 | this.Load += new System.EventHandler(this.Reliability_Load); 77 | this.ResumeLayout(false); 78 | this.PerformLayout(); 79 | 80 | } 81 | 82 | #endregion 83 | 84 | private System.Windows.Forms.TreeView treeView1; 85 | private System.Windows.Forms.Label Devicename; 86 | private System.Windows.Forms.Label EmptyList; 87 | } 88 | } -------------------------------------------------------------------------------- /YabePlugins/CheckStatusFlags/CheckStatusFlags.cs: -------------------------------------------------------------------------------- 1 | /************************************************************************** 2 | * MIT License 3 | * 4 | * Copyright (C) 2018 Frederic Chaxel 5 | * 6 | * Permission is hereby granted, free of charge, to any person obtaining 7 | * a copy of this software and associated documentation files (the 8 | * "Software"), to deal in the Software without restriction, including 9 | * without limitation the rights to use, copy, modify, merge, publish, 10 | * distribute, sublicense, and/or sell copies of the Software, and to 11 | * permit persons to whom the Software is furnished to do so, subject to 12 | * the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be included 15 | * in all copies or substantial portions of the Software. 16 | * 17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 18 | * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 19 | * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY 21 | * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 22 | * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 23 | * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | *********************************************************************/ 26 | using System; 27 | using System.Collections.Generic; 28 | using System.Linq; 29 | using System.Text; 30 | using Yabe; 31 | using System.Windows.Forms; 32 | using System.Diagnostics; 33 | using System.IO.BACnet; 34 | 35 | // 36 | // For simplicity all this code can be tested directly into Yabe project before exporting it 37 | // 38 | 39 | namespace CheckStatusFlags // namespace should have the same name as the dll file 40 | { 41 | public class Plugin : IYabePlugin // class should be named Plugin and implementation of IYabePlugin is required 42 | { 43 | YabeMainDialog yabeFrm; 44 | // yabeFrm is also declared into Yabe Main class 45 | // This is usefull for plugin developpement inside Yabe project, before exporting it 46 | 47 | public void Init(YabeMainDialog yabeFrm) // This is the unique mandatory method for a Yabe plugin 48 | { 49 | this.yabeFrm = yabeFrm; 50 | 51 | // Creates the Menu Item 52 | ToolStripMenuItem MenuItem=new ToolStripMenuItem(); 53 | MenuItem.Text="Check Objects Status"; 54 | MenuItem.Click += new EventHandler(MenuItem_Click); 55 | 56 | // Add It as a sub menu (pluginsToolStripMenuItem is the only public Menu member) 57 | yabeFrm.pluginsToolStripMenuItem.DropDownItems.Add(MenuItem); 58 | 59 | } 60 | 61 | // Here only uses the content of the two Treeview into YabeMainDialog object 62 | // yabeFrm.m_AddressSpaceTree 63 | // yabeFrm.m_DeviceTree 64 | // DevicesObjectsName 65 | // 66 | // Also Trace.WriteLine can be used 67 | 68 | public void MenuItem_Click(object sender, EventArgs e) 69 | { 70 | try // try catch all to avoid Yabe crach 71 | { 72 | Trace.WriteLine("call to the CheckStatusFlags plugin"); 73 | 74 | StatusFlags frm = new StatusFlags(yabeFrm); 75 | frm.ShowDialog(); 76 | } 77 | catch { } 78 | } 79 | 80 | 81 | } 82 | } 83 | -------------------------------------------------------------------------------- /YabePlugins/CheckStatusFlags/CheckStatusFlags.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | AnyCPU 6 | 8.0.30703 7 | 2.0 8 | {CFC3FD4F-42F9-40E7-B710-BAD924B63208} 9 | Library 10 | Properties 11 | CheckStatusFlags 12 | CheckStatusFlags 13 | v4.0 14 | 512 15 | 16 | 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | pdbonly 27 | true 28 | bin\Release\ 29 | TRACE 30 | prompt 31 | 4 32 | 33 | 34 | true 35 | bin\x86\Debug\ 36 | DEBUG;TRACE 37 | full 38 | x86 39 | prompt 40 | 41 | 42 | bin\x86\Release\ 43 | TRACE 44 | true 45 | pdbonly 46 | x86 47 | prompt 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | ..\..\Yabe\bin\Debug\Yabe.exe 61 | False 62 | 63 | 64 | 65 | 66 | 67 | 68 | Form 69 | 70 | 71 | StatusFlags.cs 72 | 73 | 74 | 75 | 76 | StatusFlags.cs 77 | 78 | 79 | 80 | 87 | -------------------------------------------------------------------------------- /YabePlugins/CheckStatusFlags/IconsLicense.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tblong/yabe/0d1918769b712210e78c8cfee4d68257fe397f85/YabePlugins/CheckStatusFlags/IconsLicense.txt -------------------------------------------------------------------------------- /YabePlugins/CheckStatusFlags/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("CheckReliability Yabe Plugin")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("F. Chaxel")] 9 | [assembly: AssemblyProduct("CheckReliability")] 10 | [assembly: AssemblyCopyright("Copyright © F. Chaxel 2018")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | 14 | [assembly: ComVisible(false)] 15 | 16 | [assembly: Guid("1d41548e-078f-49cb-b139-a5f560e80eda")] 17 | 18 | [assembly: AssemblyVersion("1.0.0.0")] 19 | [assembly: AssemblyFileVersion("1.0.0.0")] 20 | -------------------------------------------------------------------------------- /YabePlugins/ListCOV_Increment/ListCOV_Increment.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Debug 5 | AnyCPU 6 | 8.0.30703 7 | 2.0 8 | {CFC3FD4F-42F9-40E7-B710-BAD924B63208} 9 | Library 10 | Properties 11 | LISTCOV_Increment 12 | LISTCOV_Increment 13 | v4.0 14 | 512 15 | 16 | 17 | true 18 | full 19 | false 20 | bin\Debug\ 21 | DEBUG;TRACE 22 | prompt 23 | 4 24 | 25 | 26 | pdbonly 27 | true 28 | bin\Release\ 29 | TRACE 30 | prompt 31 | 4 32 | 33 | 34 | true 35 | bin\x86\Debug\ 36 | DEBUG;TRACE 37 | full 38 | x86 39 | prompt 40 | 41 | 42 | bin\x86\Release\ 43 | TRACE 44 | true 45 | pdbonly 46 | x86 47 | prompt 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | ..\..\Yabe\bin\Debug\Yabe.exe 61 | False 62 | 63 | 64 | 65 | 66 | 67 | 68 | Form 69 | 70 | 71 | COV_Increment.cs 72 | 73 | 74 | 75 | 76 | COV_Increment.cs 77 | 78 | 79 | 80 | 87 | -------------------------------------------------------------------------------- /YabePlugins/ListCOV_Increment/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Runtime.CompilerServices; 3 | using System.Runtime.InteropServices; 4 | 5 | [assembly: AssemblyTitle("LISTCOV_Increment Yabe Plugin")] 6 | [assembly: AssemblyDescription("")] 7 | [assembly: AssemblyConfiguration("")] 8 | [assembly: AssemblyCompany("F. Chaxel")] 9 | [assembly: AssemblyProduct("LISTCOV_Increment")] 10 | [assembly: AssemblyCopyright("Copyright © F. Chaxel 2018")] 11 | [assembly: AssemblyTrademark("")] 12 | [assembly: AssemblyCulture("")] 13 | 14 | [assembly: ComVisible(false)] 15 | 16 | [assembly: Guid("1d41548e-078f-49cb-b139-a5f560e80eda")] 17 | 18 | [assembly: AssemblyVersion("1.0.0.0")] 19 | [assembly: AssemblyFileVersion("1.0.0.0")] 20 | -------------------------------------------------------------------------------- /YabePlugins/Readme.txt: -------------------------------------------------------------------------------- 1 | ------------------------------------------------------------------------------------------------ 2 | Yabe Plugins 3 | ------------------------------------------------------------------------------------------------ 4 | 5 | Plugins are compiled as Dll files and should be put close to Yabe.exe. 6 | This allows users to adds private fonctionnalities & menus to Yabe (but C# knowledge is mandatory). 7 | 8 | The settings parameter 'Plugins' should give the list of all plugins (names only without '.dll') 9 | separated with a , or a ; Without that plugins are not loaded at Yabe startup. 10 | 11 | 12 | CheckReliability 13 | First plugin (based on an idea of Alexander Jaszkowski) to shows how to make it. 14 | It check all objects in the selected device and displays all of them when the reliability 15 | property value is not 0 (No Fault detected). 16 | 17 | CheckStatusFlags 18 | Same as previous but with Status Flags. 19 | 20 | ListCOV_Increment 21 | By Alexander Jaszkowski : displays all COV_INCREMENT values, for network's behaviour debug. 22 | 23 | 24 | 25 | A usefull plugin by yourself, not too much dedicated to your application (or customizable), send it, 26 | I'will add it. --------------------------------------------------------------------------------