├── .github └── FUNDING.yml ├── .gitignore ├── DNS.md ├── DNS ├── DNS.csproj ├── DNS.csproj.vspscc ├── DnsHeader.cs ├── DnsRequest.cs ├── DnsResolver.cs ├── DnsResponse.cs ├── Enums │ ├── DnsClass.cs │ ├── DnsType.cs │ ├── OpcodeType.cs │ └── RcodeType.cs ├── Helper │ ├── DnsReader.cs │ └── DnsWriter.cs ├── NetBIOS.cs ├── Properties │ └── AssemblyInfo.cs ├── Question.cs ├── Records │ ├── ARecord.cs │ ├── CNAMERecord.cs │ ├── MXRecord.cs │ ├── NBRecord.cs │ ├── NSRecord.cs │ ├── PTRRecord.cs │ ├── RecordBase.cs │ ├── SOARecord.cs │ └── TXTRecord.cs └── ResourceRecords │ ├── Additional.cs │ ├── Answer.cs │ ├── Authority.cs │ └── ResourceRecord.cs ├── DnsConsole ├── DnsConsole.csproj ├── DnsConsole.csproj.vspscc ├── Program.cs ├── Properties │ └── AssemblyInfo.cs └── app.config ├── HTTP ├── ClientConnectedEvent.cs ├── Collection │ ├── NameValueCollection.cs │ ├── NameValueEnumerator.cs │ └── NameValuePair.cs ├── Cookie │ ├── HttpCookie.cs │ ├── HttpCookieCollection.cs │ └── HttpCookieEnumerator.cs ├── Enums │ ├── HttpStatusCode.cs │ ├── LogEventType.cs │ ├── MimeParserState.cs │ └── RequestParserState.cs ├── HTTP.csproj ├── HTTP.csproj.vspscc ├── Helper │ └── NetworkHelper.cs ├── HttpContext.cs ├── HttpException.cs ├── HttpHeader.cs ├── HttpParameter.cs ├── HttpProcessor.cs ├── HttpRequest.cs ├── HttpResponse.cs ├── HttpServer.cs ├── HttpServerUtility.cs ├── IHttpHandler.cs ├── LogAccess.cs ├── LogAccessEvent.cs ├── Mime │ ├── MimeContent.cs │ ├── MimeContentCollection.cs │ ├── MimeContentEnumerator.cs │ └── MimeParser.cs └── Properties │ └── AssemblyInfo.cs ├── HttpConsole ├── HttpConsole.csproj ├── HttpConsole.csproj.vspscc ├── Program.cs ├── Properties │ └── AssemblyInfo.cs ├── app.config └── root │ ├── HTMLPage1.htm │ ├── index.htm │ ├── ms.jpg │ ├── robots.txt │ └── test.txt ├── IO ├── ByteOrder.cs ├── ByteReader.cs ├── ByteUtil.cs ├── ByteWriter.cs ├── Helper │ └── BitHelper.cs ├── IO.csproj ├── IO.csproj.vspscc └── Properties │ └── AssemblyInfo.cs ├── LICENSE ├── Mail ├── CollectionBase.cs ├── IMailStorage.cs ├── IPop3Storage.cs ├── ISmtpStorage.cs ├── InvalidMailAddressException.cs ├── Mail.csproj ├── Mail.csproj.vspscc ├── MailAddress.cs ├── MailAddressCollection.cs ├── Pop3MessageInfo.cs ├── Properties │ └── AssemblyInfo.cs ├── SQL │ ├── install.sql │ └── sample.sql └── Storage │ ├── LocalStorage.cs │ └── SqlStorage.cs ├── MicroC6820 ├── C6820.cs ├── DateTimeStamp.cs ├── Enums │ ├── AVIResolution.cs │ ├── C6820BaudRate.cs │ ├── ColorEffect.cs │ ├── Contrast.cs │ ├── DateCorner.cs │ ├── DateFormat.cs │ ├── DateStyle.cs │ ├── EV.cs │ ├── ExternMemoConnectStatus.cs │ ├── JpegResolution.cs │ ├── OperationMode.cs │ ├── PlayBackOperation.cs │ ├── Sharpness.cs │ ├── StorageMedia.cs │ ├── TVStandard.cs │ └── WhiteBalance.cs ├── FileInfo.cs ├── HardwareRevision.cs ├── MicroC6820.csproj ├── MicroC6820.csproj.vspscc ├── Properties │ └── AssemblyInfo.cs ├── StorageMediaInfo.cs ├── StringStamp.cs └── SystemCLK.cs ├── MicroDNS ├── MicroDNS.csproj ├── MicroDNS.csproj.vspscc └── Properties │ └── AssemblyInfo.cs ├── MicroGM862 ├── AT_Interface.cs ├── GM862Exception.cs ├── GM862GPS.bak ├── GM862GPS.cs ├── MicroGM862.csproj ├── MicroGM862.csproj.vspscc ├── Modules │ ├── GPRS.cs │ ├── GPS.cs │ ├── GSM.cs │ ├── Networking.cs │ └── TextMessaging.cs └── Properties │ └── AssemblyInfo.cs ├── MicroGM862Demo ├── MicroGM862Demo.csproj ├── MicroGM862Demo.csproj.vspscc ├── Program.cs ├── Properties │ └── AssemblyInfo.cs ├── Resources.Designer.cs └── Resources.resx ├── MicroHTTP ├── MicroHTTP.csproj ├── MicroHTTP.csproj.vspscc └── Properties │ └── AssemblyInfo.cs ├── MicroHTTPConsole ├── MicroHTTPConsole.csproj ├── MicroHTTPConsole.csproj.vspscc ├── Program.cs ├── Properties │ └── AssemblyInfo.cs ├── Resources.Designer.cs ├── Resources.resx └── Resources │ └── ms.jpg ├── MicroIO ├── Cryptography │ ├── SHA1.cs │ └── SHA256.cs ├── MicroIO.csproj ├── MicroIO.csproj.vspscc ├── Properties │ └── AssemblyInfo.cs └── StringBuilder.cs ├── MicroNTP ├── MicroNTP.csproj ├── MicroNTP.csproj.vspscc └── Properties │ └── AssemblyInfo.cs ├── MicroUtilities ├── DateFormatter.cs ├── GPSCalculations.cs ├── LockHelper.cs ├── MicroUtilities.csproj ├── MicroUtilities.csproj.vspscc ├── NumberFormatter.cs ├── NumberParser.cs ├── Properties │ └── AssemblyInfo.cs ├── RingBuffer.cs └── exMath.cs ├── MicroZigbee ├── MicroZigbee.csproj ├── MicroZigbee.csproj.vspscc └── Properties │ └── AssemblyInfo.cs ├── MicroZigbeeConsole ├── MicroZigbeeConsole.csproj ├── MicroZigbeeConsole.csproj.vspscc ├── Program.cs └── Properties │ └── AssemblyInfo.cs ├── NTP ├── NTP.csproj ├── NTP.csproj.vspscc ├── NtpClient.cs └── Properties │ └── AssemblyInfo.cs ├── NetBIOS ├── Enums │ ├── NbtClass.cs │ └── NbtType.cs ├── NetBIOS.csproj ├── NetBIOS.csproj.vspscc └── Properties │ └── AssemblyInfo.cs ├── POP3 ├── POP3.csproj ├── POP3.csproj.vspscc ├── Pop3Context.cs ├── Pop3Processor.cs ├── Pop3Server.cs └── Properties │ └── AssemblyInfo.cs ├── README.md ├── SMTP ├── Enums │ └── SmtpStatusCode.cs ├── Properties │ └── AssemblyInfo.cs ├── SMTP.csproj ├── SMTP.csproj.vspscc ├── SmtpClient.cs ├── SmtpContext.cs ├── SmtpMessage │ ├── MailMessage.cs │ └── MimeParser.cs ├── SmtpProcessor.cs └── SmtpServer.cs ├── SSDP ├── DeviceNotify.cs ├── Enum │ └── DeviceType.cs ├── HttpHandler.cs ├── Properties │ └── AssemblyInfo.cs ├── SSDP.csproj ├── SSDP.csproj.vspscc ├── SsdpDevice.cs └── SsdpServer.cs ├── SmtpConsole ├── Program.cs ├── Properties │ └── AssemblyInfo.cs ├── SmtpConsole.csproj ├── SmtpConsole.csproj.vspscc └── app.config ├── SsdpConsole ├── Program.cs ├── Properties │ └── AssemblyInfo.cs ├── SsdpConsole.csproj ├── SsdpConsole.csproj.vspscc └── app.config ├── Zigbee ├── Enums │ ├── ApiType.cs │ ├── AtCommandStatus.cs │ ├── ModemStatusType.cs │ ├── ReceiveOptionType.cs │ ├── SleepModeType.cs │ ├── SourceActionType.cs │ ├── TxStatusType.cs │ ├── XBeeApiType.cs │ └── ZNet │ │ ├── DeliveryStatusType.cs │ │ ├── DiscoveryStatusType.cs │ │ └── ZNetDeviceType.cs ├── FrameReceived.cs ├── LogEvent.cs ├── ModemStatusChanged.cs ├── Properties │ └── AssemblyInfo.cs ├── Request │ ├── AT │ │ ├── ApiEnable.cs │ │ ├── ApplyChanges.cs │ │ ├── Channel.cs │ │ ├── CyclicSleepPeriod.cs │ │ ├── DestinationAddressHigh.cs │ │ ├── DestinationAddressLow.cs │ │ ├── DestinationNode.cs │ │ ├── DeviceTypeIdentifier.cs │ │ ├── FirmwareVersion.cs │ │ ├── ForceSample.cs │ │ ├── HardwareVersion.cs │ │ ├── InterfaceDataRate.cs │ │ ├── NetworkReset.cs │ │ ├── NodeDiscover.cs │ │ ├── NodeIdentifier.cs │ │ ├── ReceivedSignalStrength.cs │ │ ├── RestoreDefaults.cs │ │ ├── SerialNumberHigh.cs │ │ ├── SerialNumberLow.cs │ │ ├── SleepMode.cs │ │ ├── SoftwareReset.cs │ │ ├── SupplyVoltage.cs │ │ ├── TimeBeforeSleep.cs │ │ ├── Write.cs │ │ ├── WriteBindingTable.cs │ │ └── XBeeSensorSample.cs │ ├── AtCommand.cs │ ├── AtQueueCommand.cs │ ├── ExplicitZigBeeCommand.cs │ ├── RemoteAtRequest.cs │ ├── TxRequest16.cs │ ├── TxRequest64.cs │ ├── ZNetTransmitRequest.cs │ └── ZNetTxRequest.cs ├── Response │ ├── AT │ │ ├── ApiEnable.cs │ │ ├── CyclicSleepPeriod.cs │ │ ├── ForceSample.cs │ │ ├── NodeDiscover.cs │ │ ├── NodeIdentifier.cs │ │ ├── ReceivedSignalStrength.cs │ │ ├── SleepMode.cs │ │ ├── SupplyVoltage.cs │ │ └── TimeBeforeSleep.cs │ ├── AtCommandResponse.cs │ ├── ExplicitZigBeeResponse.cs │ ├── IAtCommandResponse.cs │ ├── IAtCommandResponseData.cs │ ├── ModemStatus.cs │ ├── RemoteAtResponse.cs │ ├── RxResponse16.cs │ ├── RxResponse64.cs │ ├── TxStatusResponse.cs │ ├── XBeeSensorRead.cs │ ├── ZNet │ │ ├── AT │ │ │ └── ZNetNodeDiscover.cs │ │ ├── ZNetNodeIdentificationResponse.cs │ │ ├── ZNetRxIoSampleResponse.cs │ │ ├── ZNetRxResponse.cs │ │ └── ZNetTxStatusResponse.cs │ └── ZigbeeReceivePacket.cs ├── Utilities │ └── DigiXBeeSensorHelper.cs ├── XBee.cs ├── XBeeAddress16.cs ├── XBeeAddress64.cs ├── XBeeChecksum.cs ├── XBeeFrameRequest.cs ├── XBeeFrameResponse.cs ├── XBeeModule.cs ├── XBeePacket.cs ├── XBeeReader.cs ├── XBeeRequest.cs ├── XBeeResponse.cs ├── Zigbee.csproj └── Zigbee.csproj.vspscc ├── ZigbeeConsole ├── Program.cs ├── Properties │ └── AssemblyInfo.cs ├── ZigbeeConsole.csproj ├── ZigbeeConsole.csproj.vspscc └── app.config ├── mschwarztoolkit.sln ├── uALFAT ├── IuALFATComm.cs ├── Properties │ └── AssemblyInfo.cs ├── uALFAT.cs ├── uALFAT.csproj ├── uALFAT.csproj.vspscc ├── uALFATCommI2C.cs └── uALFATCommSerial.cs └── uALFAT_DemoApplication ├── Program.cs ├── Properties └── AssemblyInfo.cs ├── Resources.Designer.cs ├── Resources.resx ├── uALFAT_DemoApplication.csproj └── uALFAT_DemoApplication.csproj.vspscc /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [michaelschwarz] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry 13 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 14 | -------------------------------------------------------------------------------- /DNS.md: -------------------------------------------------------------------------------- 1 | # Read a MX record for domain ajaxpro.info 2 | 3 | Start a new Visual Studio project (i.e. Console Application) and add the reference DNS.dll (if you're using .NET Micro Framework use MicroDNS.dll instead). 4 | 5 | Next you have to create a question. In our sample we want to query the MX record of domain ajaxpro.info: 6 | 7 | ```C# 8 | Question q = new Question("ajaxpro.info", DnsType.MX, DnsClass.IN); 9 | ``` 10 | 11 | The DnsResolver needs a DNS server. If you're not using the library within .NET Micro Framework you can use the .LoadNetworkConfiguration method: 12 | 13 | ```C# 14 | DnsResolver dns = new DnsResolver(); 15 | dns.LoadNetworkConfiguration(); 16 | ``` 17 | 18 | Using .NET Micro Framework you should specifiy the DNS server with the constructor of the DnsResolver: 19 | 20 | ```C# 21 | DnsResolver dns = new DnsResolver("dns.local"); 22 | ``` 23 | 24 | To get the MX record IP address you could now read the property from the DnsResponse: 25 | 26 | ```C# 27 | DnsResponse res = dns.Resolve(q); 28 | Console.WriteLine((res.Answers[0](0) as MXRecord).ToString()); 29 | ``` 30 | -------------------------------------------------------------------------------- /DNS/DNS.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /DNS/Enums/DnsClass.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DnsClass.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | 28 | namespace MFToolkit.Net.Dns 29 | { 30 | /// 31 | /// The DNS CLASS fields appear in resource records. (RFC 1035 3.2.4) 32 | /// 33 | public enum DnsClass : ushort 34 | { 35 | /// 36 | /// The Internet 37 | /// 38 | IN = 1, 39 | 40 | /// 41 | /// The CSNET class (Obsolete - used only for examples in 42 | /// some obsolete RFCs) 43 | /// 44 | [Obsolete("Used only for examples in some obsolete RFCs.", true)] 45 | CS = 2, 46 | 47 | /// 48 | /// The CHAOS class 49 | /// 50 | CH = 3, 51 | 52 | /// 53 | /// Hesiod [Dyer 87] 54 | /// 55 | HS = 4 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /DNS/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("DNS Library for Microsoft .NET Framework")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Michael Schwarz")] 12 | [assembly: AssemblyProduct("DNS Library")] 13 | [assembly: AssemblyCopyright("Copyright © 2010, Michael Schwarz")] 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("4322f795-d09e-4235-9bb5-8a1c64aea97c")] 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("10.11.8.1")] 36 | [assembly: AssemblyFileVersion("10.11.8.1")] 37 | -------------------------------------------------------------------------------- /DNS/Records/CNAMERecord.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * CNAMERecord.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | 28 | namespace MFToolkit.Net.Dns 29 | { 30 | /// 31 | /// CNAME Resource Record (RFC 1035 3.3.1) 32 | /// 33 | [Serializable] 34 | public class CNAMERecord : RecordBase 35 | { 36 | private readonly string _domain; 37 | 38 | #region Public Properties 39 | 40 | /// 41 | /// A <domain-name> which specifies the canonical or primary 42 | /// name for the owner. The owner name is an alias. 43 | /// 44 | public string Domain 45 | { 46 | get { return _domain; } 47 | } 48 | 49 | #endregion 50 | 51 | internal CNAMERecord(DnsReader br) 52 | { 53 | _domain = br.ReadDomain(); 54 | } 55 | 56 | public override string ToString() 57 | { 58 | return " canonical name = " + _domain; 59 | } 60 | } 61 | } -------------------------------------------------------------------------------- /DNS/Records/NSRecord.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * NSRecord.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | 28 | namespace MFToolkit.Net.Dns 29 | { 30 | /// 31 | /// NS (Name Server) Resource Record (RFC 1035 3.3.11) 32 | /// 33 | [Serializable] 34 | public class NSRecord : RecordBase 35 | { 36 | private readonly string _domainName; 37 | 38 | #region Public Properties 39 | 40 | /// 41 | /// A <domain-name> which specifies a host which should be 42 | /// authoritative for the specified class and domain. 43 | /// 44 | public string DomainName 45 | { 46 | get { return _domainName; } 47 | } 48 | 49 | #endregion 50 | 51 | internal NSRecord(DnsReader br) 52 | { 53 | _domainName = br.ReadDomain(); 54 | } 55 | 56 | public override string ToString() 57 | { 58 | return " nameserver = " + _domainName; 59 | } 60 | } 61 | } -------------------------------------------------------------------------------- /DNS/Records/PTRRecord.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * PTRRecord.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | 28 | namespace MFToolkit.Net.Dns 29 | { 30 | /// 31 | /// PTR Resource Record (RFC 1035 3.3.12) 32 | /// 33 | [Serializable] 34 | public class PTRERecord : RecordBase 35 | { 36 | private readonly string _domain; 37 | 38 | #region Public Properties 39 | 40 | /// 41 | /// A <domain-name> which specifies the canonical or primary 42 | /// name for the owner. The owner name is an alias. 43 | /// 44 | public string Domain 45 | { 46 | get { return _domain; } 47 | } 48 | 49 | #endregion 50 | 51 | internal PTRERecord(DnsReader br) 52 | { 53 | _domain = br.ReadDomain(); 54 | } 55 | 56 | public override string ToString() 57 | { 58 | return " name = " + _domain; 59 | } 60 | } 61 | } -------------------------------------------------------------------------------- /DNS/Records/RecordBase.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * RecordBase.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | 28 | namespace MFToolkit.Net.Dns 29 | { 30 | public abstract class RecordBase 31 | { 32 | internal virtual byte[] GetBytes() { return new byte[0]; } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /DNS/Records/TXTRecord.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * TXTRecord.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | 28 | namespace MFToolkit.Net.Dns 29 | { 30 | /// 31 | /// TXT Resource Record (RFC 1035 3.3.14) 32 | /// 33 | public class TXTRecord : RecordBase 34 | { 35 | internal string _txtData; 36 | 37 | #region Public Properties 38 | 39 | /// 40 | /// One or more <character-string>s. 41 | /// 42 | public string TxtData 43 | { 44 | get { return _txtData; } 45 | } 46 | 47 | #endregion 48 | 49 | internal TXTRecord(DnsReader br) 50 | { 51 | _txtData = br.ReadString(); 52 | } 53 | 54 | public override string ToString() 55 | { 56 | return " text = \"" + _txtData + "\""; 57 | } 58 | } 59 | } -------------------------------------------------------------------------------- /DNS/ResourceRecords/Additional.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Additional.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | 28 | namespace MFToolkit.Net.Dns 29 | { 30 | /// 31 | /// An Additional resource record (RFC 1035 4.1) 32 | /// 33 | [Serializable] 34 | public class Additional : ResourceRecord 35 | { 36 | internal Additional() : base() { } 37 | internal Additional(DnsReader br) : base(br) { } 38 | } 39 | } -------------------------------------------------------------------------------- /DNS/ResourceRecords/Answer.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Answer.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | 28 | namespace MFToolkit.Net.Dns 29 | { 30 | /// 31 | /// An Answer resource record (RFC 1035 4.1) 32 | /// 33 | [Serializable] 34 | public class Answer : ResourceRecord 35 | { 36 | internal Answer(DnsReader br) : base(br) { } 37 | } 38 | } -------------------------------------------------------------------------------- /DNS/ResourceRecords/Authority.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Authority.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | 28 | namespace MFToolkit.Net.Dns 29 | { 30 | /// 31 | /// An Authority resource record (RFC 1035 4.1) 32 | /// 33 | [Serializable] 34 | public class Authority : ResourceRecord 35 | { 36 | internal Authority(DnsReader br) : base(br) { } 37 | } 38 | } -------------------------------------------------------------------------------- /DnsConsole/DnsConsole.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /DnsConsole/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("DnsConsole (DNS Demo)")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("DnsConsole")] 13 | [assembly: AssemblyCopyright("Copyright © 2009")] 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("35e9afdc-4796-4bf5-ae79-b8f052ec981d")] 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("10.11.8.1")] 36 | [assembly: AssemblyFileVersion("10.11.8.1")] 37 | -------------------------------------------------------------------------------- /DnsConsole/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /HTTP/Enums/LogEventType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * LogEventType.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-02-10 added MT support 26 | * 27 | * 28 | */ 29 | using System; 30 | 31 | namespace MFToolkit.Net.Web 32 | { 33 | public enum LogEventType 34 | { 35 | StartHttpServer, 36 | StopHttpServer, 37 | ClientConnected, 38 | ExceptionThrown 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /HTTP/Enums/MimeParserState.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * MimeParserState.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-03-09 initial version 26 | * 27 | * 28 | */ 29 | using System; 30 | 31 | namespace MFToolkit.Net.Web 32 | { 33 | internal enum MimeParserState 34 | { 35 | /// 36 | /// Read boundary mime line. 37 | /// 38 | ReadBoundary, 39 | 40 | /// 41 | /// Read mime header key. 42 | /// 43 | ReadHeaderKey, 44 | 45 | /// 46 | /// Read mime header value. 47 | /// 48 | ReadHeaderValue, 49 | 50 | /// 51 | /// Read mime content. 52 | /// 53 | ReadContent 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /HTTP/HTTP.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /HTTP/HttpContext.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * HttpContext.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | 28 | namespace MFToolkit.Net.Web 29 | { 30 | public class HttpContext 31 | { 32 | private HttpRequest _request; 33 | private HttpResponse _response; 34 | 35 | public HttpRequest Request 36 | { 37 | internal set { _request = value; } 38 | get { return _request; } 39 | } 40 | 41 | public HttpResponse Response 42 | { 43 | internal set { _response = value; } 44 | get { return _response; } 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /HTTP/HttpException.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MFToolkit.Net.Web 4 | { 5 | public class HttpException : Exception 6 | { 7 | private string _message; 8 | private HttpStatusCode _error = HttpStatusCode.InternalServerError; 9 | 10 | public HttpException() 11 | { 12 | } 13 | 14 | public HttpException(HttpStatusCode error) 15 | { 16 | _error = error; 17 | } 18 | 19 | public HttpException(HttpStatusCode error, string message) 20 | : this(error) 21 | { 22 | _message = message; 23 | } 24 | 25 | public override string Message 26 | { 27 | get 28 | { 29 | if (_message != null && _message.Length > 0) 30 | return _message; 31 | 32 | return null; 33 | } 34 | } 35 | 36 | public HttpStatusCode Code 37 | { 38 | get { return _error; } 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /HTTP/HttpHeader.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * HttpHeader.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | 28 | namespace MFToolkit.Net.Web 29 | { 30 | /// 31 | /// Class that represents a http header key/value pair. 32 | /// 33 | public class HttpHeader 34 | { 35 | /// 36 | /// The http header name. 37 | /// 38 | public string Name; 39 | 40 | /// 41 | /// The http header value. 42 | /// 43 | public string Value; 44 | 45 | public HttpHeader(string name, string value) 46 | { 47 | Name = name; 48 | Value = value; 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /HTTP/HttpParameter.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * HttpParameter.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-02-10 added MT support 26 | * 27 | * 28 | */ 29 | using System; 30 | 31 | namespace MFToolkit.Net.Web 32 | { 33 | [Obsolete("Use HttpRequest.Params (NameValueCollection) instead.", true)] 34 | public class HttpParameter 35 | { 36 | public string Name; 37 | public string Value; 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /HTTP/IHttpHandler.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * IHttpRequest.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 08-03-24 initial version 26 | * 27 | */ 28 | using System; 29 | 30 | namespace MFToolkit.Net.Web 31 | { 32 | public interface IHttpHandler 33 | { 34 | void ProcessRequest(HttpContext context); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /HTTP/LogAccessEvent.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * LogAccessEvent.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * 26 | * 27 | */ 28 | using System; 29 | using System.Net; 30 | #if(MF) 31 | using Microsoft.SPOT; 32 | #endif 33 | 34 | namespace MFToolkit.Net.Web 35 | { 36 | public class LogAccessEventArgs : EventArgs 37 | { 38 | private LogAccess _data; 39 | 40 | #region Public Properties 41 | 42 | public LogAccess Data 43 | { 44 | get { return _data; } 45 | internal set { _data = value; } 46 | } 47 | 48 | #endregion 49 | 50 | public LogAccessEventArgs(LogAccess data) 51 | { 52 | Data = data; 53 | } 54 | } 55 | 56 | public delegate void LogAccessEventHandler(object sender, LogAccessEventArgs e); 57 | } 58 | -------------------------------------------------------------------------------- /HTTP/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("HTTP Server for the Microsoft .NET Framework")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Michael Schwarz")] 12 | [assembly: AssemblyProduct("HTTP Server")] 13 | [assembly: AssemblyCopyright("Copyright © 2010, Michael Schwarz")] 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("8802afb4-84cc-4d2e-9ece-1dde3efda35d")] 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("10.11.8.1")] 36 | [assembly: AssemblyFileVersion("10.11.8.1")] 37 | -------------------------------------------------------------------------------- /HttpConsole/HttpConsole.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /HttpConsole/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("HttpConsole")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("HttpConsole")] 13 | [assembly: AssemblyCopyright("Copyright © 2010")] 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("f9c6cdf7-8863-4899-bf73-27e2e85e7d93")] 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("10.11.8.1")] 36 | [assembly: AssemblyFileVersion("10.11.8.1")] 37 | -------------------------------------------------------------------------------- /HttpConsole/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /HttpConsole/root/HTMLPage1.htm: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 |

Demo File

8 |

This is a demo http file that is linked using JavaScript instead of real A hyperlinks.

9 |

Feel free to send me a mail to spam-htmlpage1.htm.

10 | 11 | -------------------------------------------------------------------------------- /HttpConsole/root/index.htm: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | Demo 5 | 6 | 7 |

Welcome to my .NET Micro Framework web server

8 |

This demo server is running on a Tahoe-II board using XBee modules to communicate with XBee sensors from Digi.

9 |
10 | 11 |
12 | 13 |
14 |

Form Post with File Upload

15 |
16 | File1:
17 | TextBox1:
18 | 19 |
20 | 21 |
22 |

Form Get

23 |
24 | TextBox1:
25 | TextBox2:
26 | RadioTest: Value1 Value2 27 | 28 |
29 | 30 |
31 |

Form Post (action includes query string)

32 |
33 | TextBox1:
34 | TextBox2:
35 | 36 |
37 | 38 |

Feel free to send me a mail to spam-indexhtm@ajaxpro.info.

39 | 40 | 41 | -------------------------------------------------------------------------------- /HttpConsole/root/ms.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelschwarz/NETMF-Toolkit/581d24ceeb6bf91deb83bf6e4a0fd82949f3aca4/HttpConsole/root/ms.jpg -------------------------------------------------------------------------------- /HttpConsole/root/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: /admin 3 | Disallow: /admin/ 4 | Allow: / -------------------------------------------------------------------------------- /HttpConsole/root/test.txt: -------------------------------------------------------------------------------- 1 | Hello World! 2 | 3 | This is a plain text file. -------------------------------------------------------------------------------- /IO/ByteOrder.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * ByteOrder.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | 28 | namespace MFToolkit.IO 29 | { 30 | public enum ByteOrder 31 | { 32 | /// Use the default byte order for the computer. 33 | Default = 0, 34 | 35 | /// Use big-endian byte order, also known as Motorola byte order. 36 | BigEndian = 1, 37 | 38 | /// Use little-endian byte order, also known as Intel byte order. 39 | LittleEndian = 2, 40 | 41 | /// Use Motorola byte order. Corresponds to . 42 | Motorola = BigEndian, 43 | 44 | /// Use Intel byte order. Corresponds to . 45 | Intel = LittleEndian, 46 | 47 | /// The order which multi-byte values are transmitted on a network. 48 | Network = BigEndian 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /IO/IO.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /IO/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("IO Library for Microsoft .NET Framework")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Michael Schwarz")] 12 | [assembly: AssemblyProduct("IO Library")] 13 | [assembly: AssemblyCopyright("Copyright © 2010, Michael Schwarz")] 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("4e22fbcf-bc4f-4f0b-ab08-0d4262cf6e4a")] 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("10.11.8.1")] 36 | [assembly: AssemblyFileVersion("10.11.8.1")] 37 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Michael Schwarz 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 all 13 | 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 THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Mail/IMailStorage.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * IMailStorage.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-06-19 initial ersion 26 | * 27 | * 28 | */ 29 | using System; 30 | 31 | namespace MFToolkit.Net.Mail 32 | { 33 | /// 34 | /// Provides an interface to login and logout from mail servers 35 | /// 36 | public interface IMailStorage 37 | { 38 | bool Login(string username, string password); 39 | void Logout(string username); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Mail/IPop3Storage.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * IPop3Storage.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-06-19 initial ersion 26 | * MS 12-05-19 added AcceptClient method 27 | * 28 | * 29 | */ 30 | using System; 31 | using MFToolkit.Net.Pop3; 32 | using System.Net; 33 | 34 | namespace MFToolkit.Net.Mail 35 | { 36 | /// 37 | /// Provides an interface to read stored messages 38 | /// 39 | public interface IPop3Storage 40 | { 41 | bool AcceptClient(IPEndPoint client); 42 | Pop3MessageInfo[] GetMessageOverview(string mailbox); 43 | string ReadMessage(string mailbox, int idx); 44 | bool DeleteMessage(string mailbox, int idx); 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Mail/ISmtpStorage.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * ISmtpStorage.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-06-19 initial ersion 26 | * MS 12-05-19 changed SpoolMessage method argument 27 | * 28 | */ 29 | using System; 30 | using System.Net; 31 | 32 | namespace MFToolkit.Net.Mail 33 | { 34 | /// 35 | /// Provides an interface to store incoming messages. 36 | /// 37 | public interface ISmtpStorage 38 | { 39 | bool AcceptClient(IPEndPoint client); 40 | 41 | bool AcceptRecipient(MailAddress recipient); 42 | 43 | bool AcceptSender(MailAddress sender); 44 | 45 | /// 46 | /// If the method returns true, the messeage will be marked as delivered, 47 | /// and a message will be send to the remote user. 48 | /// Return false if message will be rejected or if there is an error while 49 | /// saving message to the spooler (file, SQL Server,...). 50 | /// 51 | bool SpoolMessage(IPEndPoint client, MailAddressCollection recipients, string message, out string reply); 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /Mail/InvalidMailAddressException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * InvalidMailAddressException.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-06-19 initial ersion 26 | * 27 | * 28 | */ 29 | using System; 30 | 31 | namespace MFToolkit.Net.Mail 32 | { 33 | /// 34 | /// Exception that will indicate that the MailAddress is not valid. 35 | /// 36 | public class InvalidMailAddressException : ApplicationException 37 | { 38 | #region Constructors 39 | 40 | public InvalidMailAddressException(string message) 41 | : base(message) 42 | { 43 | } 44 | 45 | #endregion 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /Mail/Mail.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /Mail/Pop3MessageInfo.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Pop3MessageInfo.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-06-19 initial ersion 26 | * 27 | * 28 | */ 29 | using System; 30 | 31 | namespace MFToolkit.Net.Pop3 32 | { 33 | /// 34 | /// Represents a Pop3 message info 35 | /// 36 | public class Pop3MessageInfo 37 | { 38 | /// 39 | /// The size of the message 40 | /// 41 | public long Size; 42 | 43 | /// 44 | /// The unique identifier of the message 45 | /// 46 | public string UniqueIdentifier; 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Mail/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("Mail Class for the Microsoft .NET Framework")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Michael Schwarz")] 12 | [assembly: AssemblyProduct("Mail Class")] 13 | [assembly: AssemblyCopyright("Copyright © 2010, Michael Schwarz")] 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("f0668ee7-2cb4-4d5e-a5e4-6d48248386b1")] 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("10.11.8.1")] 36 | [assembly: AssemblyFileVersion("10.11.8.1")] 37 | -------------------------------------------------------------------------------- /Mail/SQL/sample.sql: -------------------------------------------------------------------------------- 1 | USE SMTP 2 | GO 3 | 4 | --- sample data 5 | 6 | DECLARE @UserID int 7 | DECLARE @EmailID int 8 | EXEC dbo.AddUser 'michael', 'password', @UserID OUTPUT 9 | EXEC dbo.AddEmail @UserID, 'info', 'domain.local', 'Michael Schwarz', @EmailID OUTPUT 10 | EXEC dbo.AddEmail @UserID, 'michael.schwarz', 'domain.local', 'Michael Schwarz', @EmailID OUTPUT 11 | GO 12 | 13 | DECLARE @UserID int 14 | DECLARE @EmailID int 15 | EXEC dbo.AddUser 'andre', 'password', @UserID OUTPUT 16 | EXEC dbo.AddEmail @UserID, 'andre', 'domain.local', 'Andre Seifert', @EmailID OUTPUT 17 | EXEC dbo.AddEmail @UserID, 'as', 'domain.local', 'Andre Seifert', @EmailID OUTPUT 18 | GO 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /MicroC6820/Enums/AVIResolution.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * AVIResolution.cs 3 | * 4 | * Copyright (c) 2009, Freesc Huang (http://www.microframework.cn) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-03-13 initial version 26 | * 27 | * 28 | * 29 | */ 30 | using System; 31 | 32 | namespace MFToolkit.MicroC6820 33 | { 34 | public enum AVIResolution 35 | { 36 | R320x240 = 0, 37 | R640x480 = 1 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /MicroC6820/Enums/C6820BaudRate.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * C6820BaudRate.cs 3 | * 4 | * Copyright (c) 2009, Freesc Huang (http://www.microframework.cn) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-03-13 initial version 26 | * 27 | * 28 | * 29 | */ 30 | using System; 31 | 32 | namespace MFToolkit.MicroC6820 33 | { 34 | public enum C6820BaudRate 35 | { 36 | Baud57600 = 4, 37 | Baud115200 = 5 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /MicroC6820/Enums/ColorEffect.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * ColorEffect.cs 3 | * 4 | * Copyright (c) 2009, Freesc Huang (http://www.microframework.cn) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-03-13 initial version 26 | * 27 | * 28 | * 29 | */ 30 | using System; 31 | 32 | namespace MFToolkit.MicroC6820 33 | { 34 | public enum ColorEffect 35 | { 36 | Normal = 0, // default 37 | BnW = 1, 38 | Sepia = 2 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /MicroC6820/Enums/Contrast.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Contrast.cs 3 | * 4 | * Copyright (c) 2009, Freesc Huang (http://www.microframework.cn) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-03-13 initial version 26 | * 27 | * 28 | * 29 | */ 30 | using System; 31 | 32 | namespace MFToolkit.MicroC6820 33 | { 34 | public enum Contrast 35 | { 36 | Normal = 0, // default 37 | Stretch = 1 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /MicroC6820/Enums/DateCorner.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DateCorner.cs 3 | * 4 | * Copyright (c) 2009, Freesc Huang (http://www.microframework.cn) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-03-13 initial version 26 | * 27 | * 28 | * 29 | */ 30 | using System; 31 | 32 | namespace MFToolkit.MicroC6820 33 | { 34 | public enum DateCorner 35 | { 36 | BottomRight = 0, 37 | BottomLeft = 1, 38 | TopRight = 2, 39 | TopLeft = 3 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /MicroC6820/Enums/DateFormat.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DateFormat.cs 3 | * 4 | * Copyright (c) 2009, Freesc Huang (http://www.microframework.cn) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-03-13 initial version 26 | * 27 | * 28 | * 29 | */ 30 | using System; 31 | 32 | namespace MFToolkit.MicroC6820 33 | { 34 | public enum DateFormat 35 | { 36 | Y_M_D = 0, // yyyy mm dd 37 | YMD = 1, // yyyy/mm/dd 38 | DMY = 2, // dd/mm/yyyy 39 | MDY = 4 // mm/dd/yyyy 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /MicroC6820/Enums/DateStyle.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DateStyle.cs 3 | * 4 | * Copyright (c) 2009, Freesc Huang (http://www.microframework.cn) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-03-13 initial version 26 | * 27 | * 28 | * 29 | */ 30 | using System; 31 | 32 | namespace MFToolkit.MicroC6820 33 | { 34 | public enum DateStyle 35 | { 36 | DateOnly = 0, 37 | TimeOnly = 1, 38 | DateAndTime = 2 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /MicroC6820/Enums/EV.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * EV.cs 3 | * 4 | * Copyright (c) 2009, Freesc Huang (http://www.microframework.cn) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-03-13 initial version 26 | * 27 | * 28 | * 29 | */ 30 | using System; 31 | 32 | namespace MFToolkit.MicroC6820 33 | { 34 | /// 35 | /// Explosure value 0-8(low to high), default EV04 36 | /// 37 | public enum EV 38 | { 39 | EV00 = 0, 40 | EV01 = 1, 41 | EV02 = 2, 42 | EV03 = 3, 43 | EV04 = 4, // default 44 | EV05 = 5, 45 | EV06 = 6, 46 | EV07 = 7, 47 | EV08 = 8 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /MicroC6820/Enums/ExternMemoConnectStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * ExternMemoConnectStatus.cs 3 | * 4 | * Copyright (c) 2009, Freesc Huang (http://www.microframework.cn) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-03-13 initial version 26 | * 27 | * 28 | * 29 | */ 30 | using System; 31 | 32 | namespace MFToolkit.MicroC6820 33 | { 34 | public enum ExternMemoConnectStatus 35 | { 36 | WriteProtected = 6, 37 | Connect = 7, 38 | Disconnect = 8 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /MicroC6820/Enums/JpegResolution.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * JpegResolution.cs 3 | * 4 | * Copyright (c) 2009, Freesc Huang (http://www.microframework.cn) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-03-13 initial version 26 | * 27 | * 28 | * 29 | */ 30 | using System; 31 | 32 | namespace MFToolkit.MicroC6820 33 | { 34 | public enum JpegResolution 35 | { 36 | R1280x960 = 0, 37 | R640x480 = 1 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /MicroC6820/Enums/OperationMode.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * OperationMode.cs 3 | * 4 | * Copyright (c) 2009, Freesc Huang (http://www.microframework.cn) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-03-13 initial version 26 | * 27 | * 28 | * 29 | */ 30 | using System; 31 | 32 | namespace MFToolkit.MicroC6820 33 | { 34 | public enum OperationMode 35 | { 36 | USB = 2, 37 | Idle = 3, 38 | JpegCap = 4, 39 | AVICap = 5, 40 | Playback = 6 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /MicroC6820/Enums/PlayBackOperation.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * PlayBackOperation.cs 3 | * 4 | * Copyright (c) 2009, Freesc Huang (http://www.microframework.cn) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-03-13 initial version 26 | * 27 | * 28 | * 29 | */ 30 | using System; 31 | 32 | namespace MFToolkit.MicroC6820 33 | { 34 | public enum PlayBackOperation 35 | { 36 | Play = 0, 37 | Pause = 1, 38 | Stop = 2, 39 | FastForward = 3, 40 | BackForward = 4 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /MicroC6820/Enums/Sharpness.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Sharpness.cs 3 | * 4 | * Copyright (c) 2009, Freesc Huang (http://www.microframework.cn) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-03-13 initial version 26 | * 27 | * 28 | * 29 | */ 30 | using System; 31 | 32 | namespace MFToolkit.MicroC6820 33 | { 34 | public enum Sharpness 35 | { 36 | Normal = 0, // default 37 | Smooth = 1, 38 | Sharpen = 2 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /MicroC6820/Enums/StorageMedia.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * StorageMedia.cs 3 | * 4 | * Copyright (c) 2009, Freesc Huang (http://www.microframework.cn) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-03-13 initial version 26 | * 27 | * 28 | * 29 | */ 30 | using System; 31 | 32 | namespace MFToolkit.MicroC6820 33 | { 34 | public enum StorageMedia 35 | { 36 | Resident = 0, 37 | External = 1 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /MicroC6820/Enums/TVStandard.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * TVStandard.cs 3 | * 4 | * Copyright (c) 2009, Freesc Huang (http://www.microframework.cn) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-03-13 initial version 26 | * 27 | * 28 | * 29 | */ 30 | using System; 31 | 32 | namespace MFToolkit.MicroC6820 33 | { 34 | public enum TVStandard 35 | { 36 | NTSC = 0, 37 | PAL = 1 // default 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /MicroC6820/Enums/WhiteBalance.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * WhiteBalance.cs 3 | * 4 | * Copyright (c) 2009, Freesc Huang (http://www.microframework.cn) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-03-13 initial version 26 | * 27 | * 28 | * 29 | */ 30 | using System; 31 | 32 | namespace MFToolkit.MicroC6820 33 | { 34 | public enum WhiteBalance 35 | { 36 | Normal = 0, // default 37 | Daylight = 1, 38 | Tungsten = 2, 39 | Fluorescent = 3, 40 | Cloudy = 4 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /MicroC6820/HardwareRevision.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * HardwareRevision.cs 3 | * 4 | * Copyright (c) 2009, Freesc Huang (http://www.microframework.cn) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-03-13 initial version 26 | * 27 | * 28 | * 29 | */ 30 | using System; 31 | 32 | namespace MFToolkit.MicroC6820 33 | { 34 | public struct HardwareRevision 35 | { 36 | public ushort HardwareVersion; 37 | public ushort CoachVersion; 38 | public byte SensorVersion; 39 | public ushort HCEVersion; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /MicroC6820/MicroC6820.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /MicroC6820/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("MicroC6820")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("MicroC6820")] 13 | [assembly: AssemblyCopyright("Copyright © 2010")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | [assembly: AssemblyVersion("10.11.8.1")] 25 | [assembly: AssemblyFileVersion("10.11.8.1")] 26 | -------------------------------------------------------------------------------- /MicroC6820/SystemCLK.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * SystemCLK.cs 3 | * 4 | * Copyright (c) 2009, Freesc Huang (http://www.microframework.cn) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-03-13 initial version 26 | * 27 | * 28 | * 29 | */ 30 | using System; 31 | 32 | namespace MFToolkit.MicroC6820 33 | { 34 | public struct SystemCLK 35 | { 36 | public short Year; 37 | public byte Month; 38 | public byte Day; 39 | public byte Hour; 40 | public byte Minute; 41 | public byte Second; 42 | 43 | public SystemCLK(short year, byte month, byte day, byte hour, byte minute, byte sencond) 44 | { 45 | Year = year; 46 | Month = month; 47 | Day = day; 48 | Hour = hour; 49 | Minute = minute; 50 | Second = sencond; 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /MicroDNS/MicroDNS.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /MicroDNS/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("DNS Library for the Microsoft .NET Micro Framework")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Michael Schwarz")] 12 | [assembly: AssemblyProduct("DNS Library")] 13 | [assembly: AssemblyCopyright("Copyright © 2010, Michael Schwarz")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | [assembly: AssemblyVersion("10.11.8.1")] 25 | [assembly: AssemblyFileVersion("10.11.8.1")] 26 | -------------------------------------------------------------------------------- /MicroGM862/GM862Exception.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GM862Exception.cs 3 | * 4 | * Copyright (c) 2009, Elze Kool (http://www.microframework.nl) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | 27 | using System; 28 | 29 | namespace MFToolkit.MicroGM862 30 | { 31 | public class GM862Exception : Exception 32 | { 33 | public GM862Exception() 34 | : base() 35 | { } 36 | 37 | public GM862Exception(String message) 38 | : base(message) 39 | { } 40 | 41 | public GM862Exception(String message, Exception innerException) 42 | : base(message, innerException) 43 | { } 44 | 45 | public const string WRONGARGUMENT = "GM862::WRONGARGUMENT"; 46 | public const string DISPOSED = "GM862::DISPOSED"; 47 | public const string WRONG_STATE = "GM862::WRONG_STATE"; 48 | public const string BAD_RESPONSEBODY = "GM862::BAD_RESPONSEBODY"; 49 | public const string FAILED_INITIALIZE = "GM862::FAILED_INITIALIZE"; 50 | 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /MicroGM862/MicroGM862.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /MicroGM862/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("MFToolkit.MicroGM862")] 9 | [assembly: AssemblyDescription("GM862 Driver for .NET Micro Framework")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Elze Kool")] 12 | [assembly: AssemblyProduct("MFToolkit.MicroGM862")] 13 | [assembly: AssemblyCopyright("Copyright © 2009 Elze Kool")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | [assembly: AssemblyVersion("10.11.8.1")] 25 | [assembly: AssemblyFileVersion("10.11.8.1")] 26 | -------------------------------------------------------------------------------- /MicroGM862Demo/MicroGM862Demo.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /MicroGM862Demo/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("MFToolkit.MicroGM862Demo")] 9 | [assembly: AssemblyDescription("Demo application for GM862 Driver")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Elze Kool")] 12 | [assembly: AssemblyProduct("MFToolkit.MicroGM862Demo")] 13 | [assembly: AssemblyCopyright("Copyright © 2009 Elze Kool")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | [assembly: AssemblyVersion("10.11.8.1")] 25 | [assembly: AssemblyFileVersion("10.11.8.1")] 26 | -------------------------------------------------------------------------------- /MicroGM862Demo/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.1 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 TestGM862Class 12 | { 13 | 14 | internal partial class Resources 15 | { 16 | private static System.Resources.ResourceManager manager; 17 | internal static System.Resources.ResourceManager ResourceManager 18 | { 19 | get 20 | { 21 | if ((Resources.manager == null)) 22 | { 23 | Resources.manager = new System.Resources.ResourceManager("TestGM862Class.Resources", typeof(Resources).Assembly); 24 | } 25 | return Resources.manager; 26 | } 27 | } 28 | internal static string GetString(Resources.StringResources id) 29 | { 30 | return ((string)(Microsoft.SPOT.ResourceUtility.GetObject(ResourceManager, id))); 31 | } 32 | [System.SerializableAttribute()] 33 | internal enum StringResources : short 34 | { 35 | String1 = 1228, 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /MicroHTTP/MicroHTTP.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /MicroHTTP/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("HTTP Server for the Microsoft .NET Micro Framework")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Michael Schwarz")] 12 | [assembly: AssemblyProduct("HTTP Server")] 13 | [assembly: AssemblyCopyright("Copyright © 2010, Michael Schwarz")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | [assembly: AssemblyVersion("10.11.8.1")] 25 | [assembly: AssemblyFileVersion("10.11.8.1")] 26 | -------------------------------------------------------------------------------- /MicroHTTPConsole/MicroHTTPConsole.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /MicroHTTPConsole/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("MicroHTTPConsole")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("MicroHTTPConsole")] 13 | [assembly: AssemblyCopyright("Copyright © 2009")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | [assembly: AssemblyVersion("10.11.8.1")] 25 | [assembly: AssemblyFileVersion("10.11.8.1")] 26 | -------------------------------------------------------------------------------- /MicroHTTPConsole/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.1 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 MicroHTTPConsole 12 | { 13 | 14 | internal partial class Resources 15 | { 16 | private static System.Resources.ResourceManager manager; 17 | internal static System.Resources.ResourceManager ResourceManager 18 | { 19 | get 20 | { 21 | if ((Resources.manager == null)) 22 | { 23 | Resources.manager = new System.Resources.ResourceManager("MicroHTTPConsole.Resources", typeof(Resources).Assembly); 24 | } 25 | return Resources.manager; 26 | } 27 | } 28 | internal static string GetString(Resources.StringResources id) 29 | { 30 | return ((string)(Microsoft.SPOT.ResourceUtility.GetObject(ResourceManager, id))); 31 | } 32 | internal static byte[] GetBytes(Resources.BinaryResources id) 33 | { 34 | return ((byte[])(Microsoft.SPOT.ResourceUtility.GetObject(ResourceManager, id))); 35 | } 36 | [System.SerializableAttribute()] 37 | internal enum BinaryResources : short 38 | { 39 | ms_jpg = -4759, 40 | } 41 | [System.SerializableAttribute()] 42 | internal enum StringResources : short 43 | { 44 | String1 = 1228, 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /MicroHTTPConsole/Resources/ms.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelschwarz/NETMF-Toolkit/581d24ceeb6bf91deb83bf6e4a0fd82949f3aca4/MicroHTTPConsole/Resources/ms.jpg -------------------------------------------------------------------------------- /MicroIO/Cryptography/SHA1.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelschwarz/NETMF-Toolkit/581d24ceeb6bf91deb83bf6e4a0fd82949f3aca4/MicroIO/Cryptography/SHA1.cs -------------------------------------------------------------------------------- /MicroIO/Cryptography/SHA256.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/michaelschwarz/NETMF-Toolkit/581d24ceeb6bf91deb83bf6e4a0fd82949f3aca4/MicroIO/Cryptography/SHA256.cs -------------------------------------------------------------------------------- /MicroIO/MicroIO.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /MicroIO/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("MicroIO Library for Microsoft .NET Micro Framework")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Michael Schwarz")] 12 | [assembly: AssemblyProduct("MicroIO Library")] 13 | [assembly: AssemblyCopyright("Copyright © 2010, Michael Schwarz")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | [assembly: AssemblyVersion("10.11.8.1")] 25 | [assembly: AssemblyFileVersion("10.11.8.1")] 26 | -------------------------------------------------------------------------------- /MicroNTP/MicroNTP.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /MicroNTP/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("MicroNTP Library for Microsoft .NET Micro Framework")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Michael Schwarz")] 12 | [assembly: AssemblyProduct("MicroNTP Library")] 13 | [assembly: AssemblyCopyright("Copyright © 2010, Michael Schwarz")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | [assembly: AssemblyVersion("10.11.8.1")] 25 | [assembly: AssemblyFileVersion("10.11.8.1")] 26 | -------------------------------------------------------------------------------- /MicroUtilities/MicroUtilities.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /MicroUtilities/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("MFToolkit.MicroUtilities")] 9 | [assembly: AssemblyDescription("General Utility Classes for .NET Micro Framework")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Elze Kool")] 12 | [assembly: AssemblyProduct("MFToolkit.MicroUtilities")] 13 | [assembly: AssemblyCopyright("Copyright © 2009 Elze Kool")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | [assembly: AssemblyVersion("10.11.8.1")] 25 | [assembly: AssemblyFileVersion("10.11.8.1")] 26 | -------------------------------------------------------------------------------- /MicroZigbee/MicroZigbee.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /MicroZigbee/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("MicroXBee Library for Microsoft .NET Micro Framework")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Michael Schwarz")] 12 | [assembly: AssemblyProduct("MicroXBee Library")] 13 | [assembly: AssemblyCopyright("Copyright © 2010, Michael Schwarz")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | [assembly: AssemblyVersion("10.11.8.1")] 25 | [assembly: AssemblyFileVersion("10.11.8.1")] 26 | -------------------------------------------------------------------------------- /MicroZigbeeConsole/MicroZigbeeConsole.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /MicroZigbeeConsole/Program.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Program.cs (Demo Application) 3 | * 4 | * Copyright (c) 2009, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using Microsoft.SPOT; 28 | using MFToolkit.Net.XBee; 29 | using System.Threading; 30 | 31 | namespace MicroZigbeeConsole 32 | { 33 | public class Program 34 | { 35 | public static void Main() 36 | { 37 | using (XBee xbee = new XBee("COM1", 9600)) 38 | { 39 | xbee.FrameReceived += new FrameReceivedEventHandler(xbee_OnPacketReceived); 40 | xbee.Open(); 41 | 42 | // read power supply 43 | xbee.Execute (new SupplyVoltageCommand()); 44 | 45 | Thread.Sleep(10 * 60 * 1000); 46 | } 47 | } 48 | 49 | static void xbee_OnPacketReceived(object sender, FrameReceivedEventArgs e) 50 | { 51 | XBeeResponse response = e.Response; 52 | Debug.Print(response.ToString()); 53 | } 54 | } 55 | } 56 | -------------------------------------------------------------------------------- /MicroZigbeeConsole/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("MicroXBeeConsole (XBee Demo)")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("MicroXBeeConsole")] 13 | [assembly: AssemblyCopyright("Copyright © 2009")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | [assembly: AssemblyVersion("10.11.8.1")] 25 | [assembly: AssemblyFileVersion("10.11.8.1")] 26 | -------------------------------------------------------------------------------- /NTP/NTP.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /NTP/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("NTP Library for Microsoft .NET Framework")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Michael Schwarz")] 12 | [assembly: AssemblyProduct("NTP Library")] 13 | [assembly: AssemblyCopyright("Copyright © 2010, Michael Schwarz")] 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("106527fd-3f19-4fc6-bfd0-65c7f7654a06")] 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("10.11.8.1")] 36 | [assembly: AssemblyFileVersion("10.11.8.1")] 37 | -------------------------------------------------------------------------------- /NetBIOS/Enums/NbtClass.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * NbtClass.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | 28 | namespace MSchwarz.Net.NetBIOS 29 | { 30 | public enum NbtClass : short 31 | { 32 | /// 33 | /// The Internet 34 | /// 35 | IN = 1 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /NetBIOS/Enums/NbtType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Text; 4 | 5 | namespace MSchwarz.Net.NetBIOS 6 | { 7 | public enum NbtType : ushort 8 | { 9 | /// 10 | /// NetBIOS general Name Service Resource Record 11 | /// 12 | NB = 32, 13 | 14 | /// 15 | /// NetBIOS NODE STATUS Resource Record 16 | /// 17 | NBSTAT = 33 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /NetBIOS/NetBIOS.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /NetBIOS/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("NetBIOS")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("NetBIOS")] 13 | [assembly: AssemblyCopyright("Copyright © 2009")] 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("5084b6ed-74d8-44e1-be3b-e7a5b9c8f486")] 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("10.11.8.1")] 36 | [assembly: AssemblyFileVersion("10.11.8.1")] 37 | -------------------------------------------------------------------------------- /POP3/POP3.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /POP3/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("POP3 Server for the Microsoft .NET Framework")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Michael Schwarz")] 12 | [assembly: AssemblyProduct("POP3 Server")] 13 | [assembly: AssemblyCopyright("Copyright © 2010, Michael Schwarz")] 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("bc4c73bc-d43f-44f8-b145-783e48c74b5e")] 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("10.11.8.1")] 36 | [assembly: AssemblyFileVersion("10.11.8.1")] 37 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # NETMF-Toolkit 2 | 3 | The .NET Micro Framework Toolkit 4 | -------------------------------------------------------------------------------- /SMTP/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("SMTP Server for the Microsoft .NET Framework")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Michael Schwarz")] 12 | [assembly: AssemblyProduct("SMTP Server")] 13 | [assembly: AssemblyCopyright("Copyright © 2010, Michael Schwarz")] 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("d537a943-e7c3-4c21-baa4-c732fee82a9b")] 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("10.11.8.1")] 36 | [assembly: AssemblyFileVersion("10.11.8.1")] 37 | -------------------------------------------------------------------------------- /SMTP/SMTP.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /SMTP/SmtpClient.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MFToolkit.Net.Smtp 4 | { 5 | public class SmtpClient 6 | { 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /SSDP/DeviceNotify.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DeviceNotifiy.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * 26 | * 27 | */ 28 | using System; 29 | #if(MF) 30 | using Microsoft.SPOT; 31 | #endif 32 | 33 | namespace MFToolkit.Net.SSDP 34 | { 35 | public class DeviceNotifyEventArgs : EventArgs 36 | { 37 | #region Public Properties 38 | 39 | 40 | #endregion 41 | 42 | public DeviceNotifyEventArgs(/*ModemStatusType status */) 43 | { 44 | //Status = status; 45 | } 46 | } 47 | 48 | public delegate void DeviceNotifyEventHandler(object sender, DeviceNotifyEventArgs e); 49 | } -------------------------------------------------------------------------------- /SSDP/Enum/DeviceType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DeviceType.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * 26 | * 27 | */ 28 | using System; 29 | 30 | namespace MFToolkit.Net.SSDP 31 | { 32 | public enum DeviceType 33 | { 34 | InternetGatewayDevice 35 | } 36 | 37 | internal class DeviceTypeHelper 38 | { 39 | internal static string GetDeviceType(DeviceType type) 40 | { 41 | switch (type) 42 | { 43 | case DeviceType.InternetGatewayDevice: return "urn:schemas-upnp-org:device:InternetGatewayDevice:1"; 44 | } 45 | 46 | throw new NotSupportedException("This device type is not yet supported."); 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /SSDP/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("SSDP Library for the Microsoft .NET Framework")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Michael Schwarz")] 12 | [assembly: AssemblyProduct("SSDP Library")] 13 | [assembly: AssemblyCopyright("Copyright © 2010, Michael Schwarz")] 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("e0ac283c-89bc-4451-ae40-f8a8f2df2ab6")] 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("10.11.8.1")] 36 | [assembly: AssemblyFileVersion("10.11.8.1")] 37 | -------------------------------------------------------------------------------- /SSDP/SSDP.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /SmtpConsole/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("SmtpConsole")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("SmtpConsole")] 13 | [assembly: AssemblyCopyright("Copyright © 2009")] 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("1a7fa1ee-3df5-445a-bcb4-c9eafcec6e1a")] 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("10.11.8.1")] 36 | [assembly: AssemblyFileVersion("10.11.8.1")] 37 | -------------------------------------------------------------------------------- /SmtpConsole/SmtpConsole.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /SmtpConsole/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /SsdpConsole/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("SsdpConsole")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("SsdpConsole")] 13 | [assembly: AssemblyCopyright("Copyright © 2009")] 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("b94f3f97-bcea-49f2-90c6-b4fd7a675068")] 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("10.11.8.1")] 36 | [assembly: AssemblyFileVersion("10.11.8.1")] 37 | -------------------------------------------------------------------------------- /SsdpConsole/SsdpConsole.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /SsdpConsole/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Zigbee/Enums/ApiType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * ApiType.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | public enum ApiType : byte 32 | { 33 | /// 34 | /// Disabled (Transparent operation) 35 | /// 36 | Disabled = 0x00, 37 | 38 | /// 39 | /// API enabled 40 | /// 41 | Enabled = 0x01, 42 | 43 | /// 44 | /// API enabled (with escaped characters) 45 | /// 46 | EnabledWithEscaped = 0x02, 47 | 48 | /// 49 | /// The undefined value. 50 | /// 51 | Unknown = 0xff 52 | 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /Zigbee/Enums/AtCommandStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * AtCommandStatus.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | public enum AtCommandStatus : byte 32 | { 33 | Ok = 0x00, 34 | Error = 0x01, 35 | InvalidCommand = 0x02, 36 | InvalidParameter = 0x03 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Zigbee/Enums/ModemStatusType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * ModemStatusType.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * 26 | * PH 09-01-28 initial version 27 | * 28 | */ 29 | namespace MFToolkit.Net.XBee 30 | { 31 | public enum ModemStatusType : byte 32 | { 33 | HardwareReset = 0x00, 34 | WatchdogTimerReset = 0x01, 35 | Associated = 0x02, 36 | Disassociated = 0x03, 37 | SynchronizationLost = 0x04, 38 | CoordinatorRealignment = 0x05, 39 | CoordinatorStarted = 0x06 40 | } 41 | } -------------------------------------------------------------------------------- /Zigbee/Enums/ReceiveOptionType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * ZigBeeReceiveOptionType.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | public enum ReceiveOptionType : byte 32 | { 33 | PacketAcknowledged = 0x01, 34 | BroadcastPacket = 0x02 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Zigbee/Enums/SleepModeType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * SleepModeType.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | public enum SleepModeType : byte 32 | { 33 | Disabled = 0x00, 34 | PinHibernate = 0x01, 35 | PinDoze = 0x02, 36 | Reserved = 0x03, 37 | CyclicSleepRemote = 0x04, 38 | CyclicSleepRemotePinWakeUp = 0x05, 39 | 40 | [Obsolete("Sleep Coordinator - for backwards compatibility w/ v1.x6 only; otherwise, use CE command.", true)] 41 | SleepCoordinator = 0x06 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /Zigbee/Enums/SourceActionType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MFToolkit.Net.XBee 4 | { 5 | // TODO: the values for this enum are maybe not defined correct, documentation says 1 and 2, but I get 3 when joining 6 | public enum SourceActionType : byte 7 | { 8 | /// 9 | /// Unknown source action or AtCommend response. 10 | /// 11 | Unknown = 0x00, 12 | 13 | NodeIdentificationButton = 0x01, 14 | 15 | JoiningEvent = 0x03 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Zigbee/Enums/TxStatusType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MFToolkit.Net.XBee 4 | { 5 | public enum TxStatusType : byte 6 | { 7 | Success = 0x00, 8 | NoAcknowledgementReceived = 0x01, 9 | CCAFailure = 0x02, 10 | Purged = 0x03 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Zigbee/Enums/ZNet/DeliveryStatusType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DeliveryStatusType.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | public enum DeliveryStatusType : byte 32 | { 33 | Success = 0x00, 34 | CCAFailure = 0x02, 35 | NetworkACKFailure = 0x21, 36 | NotJoinedToNetwork = 0x22, 37 | SelfAddressed = 0x23, 38 | AddressNotFound = 0x24, 39 | RouteNotFound = 0x25 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Zigbee/Enums/ZNet/DiscoveryStatusType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DiscoveryStatusType.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | public enum DiscoveryStatusType : byte 32 | { 33 | NoDiscoveryOverhead = 0x00, 34 | AddressDiscovery = 0x01, 35 | RouteDiscovery = 0x02, 36 | AddressAndRouteDiscovery = 0x03 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Zigbee/Enums/ZNet/ZNetDeviceType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * ZNetDeviceType.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | 28 | namespace MFToolkit.Net.XBee 29 | { 30 | public enum ZNetDeviceType : byte 31 | { 32 | Coordinator = 0x00, 33 | Router = 0x01, 34 | EndDevice = 0x02 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Zigbee/ModemStatusChanged.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * ModemStatusChanged.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * MS 09-03-27 initial version 26 | * 27 | * 28 | */ 29 | using System; 30 | #if(MF) 31 | using Microsoft.SPOT; 32 | #endif 33 | 34 | namespace MFToolkit.Net.XBee 35 | { 36 | /// 37 | /// EventArgs class that contains the modem status. 38 | /// 39 | public class ModemStatusChangedEventArgs : EventArgs 40 | { 41 | private ModemStatusType _status; 42 | 43 | #region Public Properties 44 | 45 | public ModemStatusType Status 46 | { 47 | get { return _status; } 48 | internal set { _status = value; } 49 | } 50 | 51 | #endregion 52 | 53 | public ModemStatusChangedEventArgs(ModemStatusType status) 54 | { 55 | Status = status; 56 | } 57 | } 58 | 59 | public delegate void ModemStatusChangedEventHandler(object sender, ModemStatusChangedEventArgs e); 60 | } -------------------------------------------------------------------------------- /Zigbee/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("XBee Library for Microsoft .NET Framework")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("Michael Schwarz")] 12 | [assembly: AssemblyProduct("XBee Library")] 13 | [assembly: AssemblyCopyright("Copyright © 2010, Michael Schwarz")] 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("6bd2652f-484c-45b4-b146-b065cdfadfd9")] 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("10.11.8.1")] 36 | [assembly: AssemblyFileVersion("10.11.8.1")] 37 | -------------------------------------------------------------------------------- /Zigbee/Request/AT/ApiEnable.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * ApiEnable.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | /// 32 | /// Serial Interfacing: The AP command is used to 33 | /// enable the RF module to operate using a framebased 34 | /// API instead of using the default Transparent 35 | /// (UART) mode. 36 | /// 37 | public class ApiEnableCommand : AtCommand 38 | { 39 | internal static string command = "AP"; 40 | 41 | public ApiEnableCommand() 42 | : base(ApiEnableCommand.command) 43 | { 44 | } 45 | 46 | public ApiEnableCommand(ApiType apiType) 47 | : this() 48 | { 49 | this.Value = new byte[] { (byte)apiType }; 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /Zigbee/Request/AT/ApplyChanges.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * ApplyChangesCommand.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | public class ApplyChangesCommand : AtCommand 32 | { 33 | internal static string command = "AC"; 34 | 35 | public ApplyChangesCommand() 36 | : base(ApplyChangesCommand.command) 37 | { 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Zigbee/Request/AT/CyclicSleepPeriod.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * CyclicSleepPeriodCommand.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | using MFToolkit.IO; 29 | 30 | namespace MFToolkit.Net.XBee 31 | { 32 | public class CyclicSleepPeriodCommand : AtCommand 33 | { 34 | internal static string command = "SP"; 35 | 36 | public CyclicSleepPeriodCommand() 37 | : base(CyclicSleepPeriodCommand.command) 38 | { 39 | } 40 | 41 | public CyclicSleepPeriodCommand(int msec) 42 | : this() 43 | { 44 | int sp = msec / 10; 45 | 46 | if (sp > 26800) 47 | throw new ArgumentException("The maximum sleep period is 268 seconds."); 48 | 49 | ByteWriter bw = new ByteWriter(ByteOrder.BigEndian); 50 | 51 | bw.Write((ushort)sp); 52 | 53 | this.Value = bw.GetBytes(); 54 | } 55 | } 56 | } -------------------------------------------------------------------------------- /Zigbee/Request/AT/DeviceTypeIdentifier.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DeviceTypeIdentifierCommand.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | using MFToolkit.IO; 29 | 30 | namespace MFToolkit.Net.XBee 31 | { 32 | /// 33 | /// Serial Interfacing: The AP command is used to 34 | /// enable the RF module to operate using a framebased 35 | /// API instead of using the default Transparent 36 | /// (UART) mode. 37 | /// 38 | public class DeviceTypeIdentifierCommand : AtCommand 39 | { 40 | internal static string command = "DD"; 41 | 42 | public DeviceTypeIdentifierCommand() 43 | : base(DeviceTypeIdentifierCommand.command) 44 | { 45 | } 46 | 47 | public DeviceTypeIdentifierCommand(uint identifier) 48 | : this() 49 | { 50 | ByteWriter br = new ByteWriter(ByteOrder.BigEndian); 51 | 52 | br.Write(identifier); 53 | 54 | this.Value = br.GetBytes(); 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /Zigbee/Request/AT/FirmwareVersion.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * FirmwareVersionCommand.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | public class FirmwareVersionCommand : AtCommand 32 | { 33 | internal static string command = "VR"; 34 | 35 | public FirmwareVersionCommand() 36 | : base(FirmwareVersionCommand.command) 37 | { 38 | } 39 | 40 | public FirmwareVersionCommand(bool beaconEnabled) 41 | : this() 42 | { 43 | if (beaconEnabled) 44 | Value = new byte[] { 0x01 }; 45 | else 46 | Value = new byte[] { 0x00 }; 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Zigbee/Request/AT/ForceSample.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * ForceSampleCommand.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | /// 32 | /// IO Settings: The IS command is used to force 33 | /// a read of all enabled DIO/ADC lines. 34 | /// 35 | public class ForceSampleCommand : AtCommand 36 | { 37 | internal static string command = "IS"; 38 | 39 | public ForceSampleCommand() 40 | : base(ForceSampleCommand.command) 41 | { 42 | } 43 | 44 | // TODO: the documentation tells something about an parameter 1-0xFF, what does this paramaeter? 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Zigbee/Request/AT/HardwareVersion.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * HardwareVersionCommand.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | public class HardwareVersionCommand : AtCommand 32 | { 33 | internal static string command = "HV"; 34 | 35 | public HardwareVersionCommand() 36 | : base(HardwareVersionCommand.command) 37 | { 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Zigbee/Request/AT/InterfaceDataRate.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * InterfaceDataRateCommand.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | public class InterfaceDataRateCommand : AtCommand 32 | { 33 | internal static string command = "BD"; 34 | 35 | public InterfaceDataRateCommand() 36 | : base(InterfaceDataRateCommand.command) 37 | { 38 | } 39 | 40 | public InterfaceDataRateCommand(int baudRate) 41 | : this() 42 | { 43 | byte baudRateValue = 0x80; 44 | 45 | switch(baudRate) 46 | { 47 | case 1200: baudRateValue = 0x00; break; 48 | case 2400: baudRateValue = 0x01; break; 49 | case 4800: baudRateValue = 0x02; break; 50 | case 9600: baudRateValue = 0x03; break; 51 | case 19200: baudRateValue = 0x04; break; 52 | case 38400: baudRateValue = 0x05; break; 53 | case 57600: baudRateValue = 0x06; break; 54 | case 115200:baudRateValue = 0x07; break; 55 | } 56 | 57 | this.Value = new byte[] { baudRateValue }; 58 | } 59 | } 60 | } -------------------------------------------------------------------------------- /Zigbee/Request/AT/NetworkReset.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * NetworkResetCommand.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | public class NetworkResetCommand : AtCommand 32 | { 33 | internal static string command = "NR"; 34 | 35 | public NetworkResetCommand() 36 | : base(NetworkResetCommand.command) 37 | { 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Zigbee/Request/AT/ReceivedSignalStrength.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * ReceivedSignalStrengthCommand.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | /// 32 | /// Diagnostics: DB parameter is used to read the 33 | /// received signal strength (in dBm) of the last RF 34 | /// packet received. Reported values are accurate 35 | /// between -40 dBm and the RF module's receiver 36 | /// sensitivity. 37 | /// Absolute values are reported. For example: 0x58 = -88 dBm (decimal). If no packets have been 38 | /// received (since last reset, power cycle or sleep event), "0" will be reported. 39 | /// 40 | public class ReceivedSignalStrengthCommand : AtCommand 41 | { 42 | internal static string command = "DB"; 43 | 44 | public ReceivedSignalStrengthCommand() 45 | : base(ReceivedSignalStrengthCommand.command) 46 | { 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Zigbee/Request/AT/RestoreDefaults.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * RestoreDefaultsCommand.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | public class RestoreDefaultsCommand : AtCommand 32 | { 33 | internal static string command = "RE"; 34 | 35 | public RestoreDefaultsCommand() 36 | : base(RestoreDefaultsCommand.command) 37 | { 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Zigbee/Request/AT/SerialNumberHigh.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * SerialNumberHighCommand.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | using MFToolkit.IO; 29 | 30 | namespace MFToolkit.Net.XBee 31 | { 32 | public class SerialNumberHighCommand : AtCommand 33 | { 34 | internal static string command = "SH"; 35 | 36 | public SerialNumberHighCommand() 37 | : base(SerialNumberHighCommand.command) 38 | { 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Zigbee/Request/AT/SerialNumberLow.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * SerialNumberLowCommand.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | using MFToolkit.IO; 29 | 30 | namespace MFToolkit.Net.XBee 31 | { 32 | public class SerialNumberLowCommand : AtCommand 33 | { 34 | internal static string command = "SL"; 35 | 36 | public SerialNumberLowCommand() 37 | : base(SerialNumberLowCommand.command) 38 | { 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Zigbee/Request/AT/SleepMode.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * SleepModeCommand.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | public class SleepModeCommand : AtCommand 32 | { 33 | internal static string command = "SM"; 34 | 35 | public SleepModeCommand() 36 | : base(SleepModeCommand.command) 37 | { 38 | } 39 | 40 | public SleepModeCommand(SleepModeType sleepMode) 41 | : this() 42 | { 43 | this.Value = new byte[] { (byte)sleepMode }; 44 | } 45 | } 46 | } -------------------------------------------------------------------------------- /Zigbee/Request/AT/SoftwareReset.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * SoftwareResetCommand.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | public class SoftwareResetCommand : AtCommand 32 | { 33 | internal static string command = "FR"; 34 | 35 | public SoftwareResetCommand() 36 | : base(SoftwareResetCommand.command) 37 | { 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Zigbee/Request/AT/SupplyVoltage.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * SupplyVoltageCommand.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | public class SupplyVoltageCommand : AtCommand 32 | { 33 | internal static string command = "%V"; 34 | 35 | public SupplyVoltageCommand() 36 | : base(SupplyVoltageCommand.command) 37 | { 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Zigbee/Request/AT/TimeBeforeSleep.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * TimeBeforeSleepCommand.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | using MFToolkit.IO; 29 | 30 | namespace MFToolkit.Net.XBee 31 | { 32 | public class TimeBeforeSleepCommand : AtCommand 33 | { 34 | internal static string command = "ST"; 35 | 36 | public TimeBeforeSleepCommand() 37 | : base(TimeBeforeSleepCommand.command) 38 | { 39 | } 40 | 41 | public TimeBeforeSleepCommand(ushort msec) 42 | : this() 43 | { 44 | ByteWriter bw = new ByteWriter(ByteOrder.BigEndian); 45 | 46 | bw.Write(msec); 47 | 48 | this.Value = bw.GetBytes(); 49 | } 50 | } 51 | } -------------------------------------------------------------------------------- /Zigbee/Request/AT/Write.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * WriteCommand.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | public class WriteCommand : AtCommand 32 | { 33 | internal static string command = "WR"; 34 | 35 | public WriteCommand() 36 | : base(WriteCommand.command) 37 | { 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Zigbee/Request/AT/WriteBindingTable.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * WriteBindingTableCommand.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | public class WriteBindingTableCommand : AtCommand 32 | { 33 | internal static string command = "WB"; 34 | 35 | public WriteBindingTableCommand() 36 | : base(WriteBindingTableCommand.command) 37 | { 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Zigbee/Request/AT/XBeeSensorSample.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * XBeeSensorSampleCommand.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | 29 | namespace MFToolkit.Net.XBee 30 | { 31 | public class XBeeSensorSampleCommand : AtCommand 32 | { 33 | internal static string command = "1S"; 34 | 35 | public XBeeSensorSampleCommand() 36 | : base(XBeeSensorSampleCommand.command) 37 | { 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Zigbee/Request/AtQueueCommand.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * AtQueueCommand.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | using MFToolkit.IO; 29 | 30 | namespace MFToolkit.Net.XBee 31 | { 32 | /// 33 | /// This API type allows module parameters to be queried or set. In contrast to the "AT Command" 34 | /// API type, new parameter values are queued and not applied until either the "AT Command" (0x08) 35 | /// API type or the AC (Apply Changes) command is issued. Register queries (reading parameter 36 | /// values) are returned immediately. 37 | /// 38 | public class AtQueueCommand : AtCommand 39 | { 40 | public AtQueueCommand(string command, byte[] value) 41 | : base(command, value) 42 | { 43 | this.ApiID = XBeeApiType.AtCommandQueueParameterValue; 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Zigbee/Response/IAtCommandResponse.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace MFToolkit.Net.XBee 4 | { 5 | public interface IAtCommandResponse 6 | { 7 | string Command { get; } 8 | byte[] Value { get; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Zigbee/Response/IAtCommandResponseData.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * IAtResponse.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * 26 | */ 27 | using System; 28 | using System.Text; 29 | using MFToolkit.IO; 30 | 31 | namespace MFToolkit.Net.XBee 32 | { 33 | interface IAtCommandResponseData 34 | { 35 | void ReadBytes(ByteReader br); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Zigbee/Response/ModemStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * ModemStatus.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * 26 | * PH 09-01-28 inital version 27 | * 28 | */ 29 | using MFToolkit.IO; 30 | 31 | namespace MFToolkit.Net.XBee 32 | { 33 | /// 34 | /// Represents a XBee modem status response 35 | /// 36 | public class ModemStatusResponse : XBeeResponse 37 | { 38 | private byte _modemStatus; 39 | 40 | #region Public Properties 41 | 42 | public ModemStatusType ModemStatus 43 | { 44 | get { return (ModemStatusType)_modemStatus; } 45 | } 46 | 47 | #endregion 48 | 49 | public ModemStatusResponse(short length, ByteReader br) 50 | : base(length, br) 51 | { 52 | _modemStatus = br.ReadByte(); 53 | } 54 | 55 | public override string ToString() 56 | { 57 | return base.ToString() + "\r\n" + ModemStatus.ToString(); 58 | } 59 | } 60 | } -------------------------------------------------------------------------------- /Zigbee/Response/TxStatusResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * TxStatusResponse.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | using MFToolkit.IO; 29 | 30 | namespace MFToolkit.Net.XBee 31 | { 32 | /// 33 | /// When a TX Request is completed, the module sends a TX Status message. This message will 34 | /// indicate if the packet was transmitted successfully or if there was a failure. 35 | /// 36 | public class TxStatusResponse : XBeeFrameResponse 37 | { 38 | private byte _status; 39 | 40 | #region Public Properties 41 | 42 | public TxStatusType Status 43 | { 44 | get { return (TxStatusType)_status; } 45 | } 46 | 47 | #endregion 48 | 49 | public TxStatusResponse(short length, ByteReader br) 50 | : base(length, br) 51 | { 52 | _status = br.ReadByte(); 53 | } 54 | 55 | public override string ToString() 56 | { 57 | string s = base.ToString() + "\r\n"; 58 | 59 | s += "Status = " + Status; 60 | 61 | return s; 62 | } 63 | } 64 | } -------------------------------------------------------------------------------- /Zigbee/Response/ZigbeeReceivePacket.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * ZigbeeReceivePacket.cs 3 | * 4 | * Copyright (c) 2008, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | using MSchwarz.IO; 29 | 30 | namespace MSchwarz.Net.Zigbee 31 | { 32 | public class ZigbeeReceivePacket : XBeeResponse 33 | { 34 | private ushort _address16; 35 | private ulong _address64; 36 | private byte _options; 37 | private byte[] _rfdata; 38 | 39 | public ZigbeeReceivePacket(short length, ByteReader br) 40 | : base(br) 41 | { 42 | _address64 = br.ReadUInt64(); 43 | _address16 = br.ReadUInt16(); 44 | _options = br.ReadByte(); 45 | 46 | _rfdata = br.ReadBytes(length - 12); 47 | } 48 | 49 | public override string ToString() 50 | { 51 | string s = ""; 52 | 53 | s += "\taddress64 = " + _address64 + "\r\n"; 54 | s += "\taddress16 = " + _address16 + "\r\n"; 55 | s += "\toptions = " + _options.ToString("X2") + "\r\n"; 56 | s += "\tvalue = " + ByteUtil.PrintBytes(_rfdata); 57 | 58 | return s; 59 | } 60 | } 61 | } -------------------------------------------------------------------------------- /Zigbee/XBeeFrameResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * XBeeFrameResponse.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * 26 | * 27 | */ 28 | using System; 29 | using System.Text; 30 | using MFToolkit.IO; 31 | 32 | namespace MFToolkit.Net.XBee 33 | { 34 | /// 35 | /// Represents a XBee frame based response 36 | /// 37 | public abstract class XBeeFrameResponse : XBeeResponse 38 | { 39 | private byte _frameID = 0x00; 40 | 41 | #region Public Properties 42 | 43 | /// 44 | /// The FrameID of the API message 45 | /// 46 | public byte FrameID 47 | { 48 | get { return _frameID; } 49 | } 50 | 51 | #endregion 52 | 53 | public XBeeFrameResponse(short length, ByteReader br) 54 | : base(length, br) 55 | { 56 | _frameID = br.ReadByte(); 57 | } 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /Zigbee/XBeeReader.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * XBeeReader.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | */ 26 | using System; 27 | using System.Text; 28 | using MFToolkit.IO; 29 | 30 | namespace MFToolkit.Net.XBee 31 | { 32 | public class XBeeReader : ByteReader 33 | { 34 | public XBeeReader(byte[] message) 35 | : base(message, ByteOrder.BigEndian) 36 | { 37 | } 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Zigbee/XBeeResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * XBeeResponse.cs 3 | * 4 | * Copyright (c) 2009-2024, Michael Schwarz (http://www.schwarz-interactive.de) 5 | * 6 | * Permission is hereby granted, free of charge, to any person 7 | * obtaining a copy of this software and associated documentation 8 | * files (the "Software"), to deal in the Software without 9 | * restriction, including without limitation the rights to use, 10 | * copy, modify, merge, publish, distribute, sublicense, and/or 11 | * sell copies of the Software, and to permit persons to whom the 12 | * Software is furnished to do so, subject to the following conditions: 13 | * 14 | * The above copyright notice and this permission notice shall be 15 | * included 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 19 | * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. 20 | * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR 21 | * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF 22 | * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | * 25 | * 26 | * PH 09-01-28 added received time 27 | * 28 | */ 29 | using System; 30 | using System.Text; 31 | using MFToolkit.IO; 32 | 33 | namespace MFToolkit.Net.XBee 34 | { 35 | public abstract class XBeeResponse 36 | { 37 | private XBeeApiType _apiId; 38 | private DateTime _dtRcv; 39 | 40 | #region Public Properties 41 | 42 | public XBeeApiType ApiID 43 | { 44 | get { return _apiId; } 45 | set { _apiId = value; } 46 | } 47 | 48 | public DateTime DateTimeReceived 49 | { 50 | get { return _dtRcv; } 51 | } 52 | 53 | #endregion 54 | 55 | public XBeeResponse(short length, ByteReader br) 56 | { 57 | _apiId = (XBeeApiType)br.ReadByte(); 58 | _dtRcv = DateTime.Now; 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /Zigbee/Zigbee.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /ZigbeeConsole/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("XBeeConsole (XBee Demo)")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("XBeeConsole")] 13 | [assembly: AssemblyCopyright("Copyright © 2010")] 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("89c654a1-47b2-498e-ac4d-631e691cf074")] 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("10.11.8.1")] 36 | [assembly: AssemblyFileVersion("10.11.8.1")] 37 | -------------------------------------------------------------------------------- /ZigbeeConsole/ZigbeeConsole.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /ZigbeeConsole/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /uALFAT/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("uALFAT")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("uALFAT")] 13 | [assembly: AssemblyCopyright("Copyright © 2009")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | [assembly: AssemblyVersion("10.11.8.1")] 25 | [assembly: AssemblyFileVersion("10.11.8.1")] 26 | -------------------------------------------------------------------------------- /uALFAT/uALFAT.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | -------------------------------------------------------------------------------- /uALFAT_DemoApplication/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("uALFAT_DemoApplication")] 9 | [assembly: AssemblyDescription("")] 10 | [assembly: AssemblyConfiguration("")] 11 | [assembly: AssemblyCompany("")] 12 | [assembly: AssemblyProduct("uALFAT_DemoApplication")] 13 | [assembly: AssemblyCopyright("Copyright © 2009")] 14 | [assembly: AssemblyTrademark("")] 15 | [assembly: AssemblyCulture("")] 16 | 17 | // Version information for an assembly consists of the following four values: 18 | // 19 | // Major Version 20 | // Minor Version 21 | // Build Number 22 | // Revision 23 | // 24 | [assembly: AssemblyVersion("10.11.8.1")] 25 | [assembly: AssemblyFileVersion("10.11.8.1")] 26 | -------------------------------------------------------------------------------- /uALFAT_DemoApplication/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.1 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 uALFAT_DemoApplication 12 | { 13 | 14 | internal partial class Resources 15 | { 16 | private static System.Resources.ResourceManager manager; 17 | internal static System.Resources.ResourceManager ResourceManager 18 | { 19 | get 20 | { 21 | if ((Resources.manager == null)) 22 | { 23 | Resources.manager = new System.Resources.ResourceManager("uALFAT_DemoApplication.Resources", typeof(Resources).Assembly); 24 | } 25 | return Resources.manager; 26 | } 27 | } 28 | internal static string GetString(Resources.StringResources id) 29 | { 30 | return ((string)(Microsoft.SPOT.ResourceUtility.GetObject(ResourceManager, id))); 31 | } 32 | [System.SerializableAttribute()] 33 | internal enum StringResources : short 34 | { 35 | String1 = 1228, 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /uALFAT_DemoApplication/uALFAT_DemoApplication.csproj.vspscc: -------------------------------------------------------------------------------- 1 | "" 2 | { 3 | "FILE_VERSION" = "9237" 4 | "ENLISTMENT_CHOICE" = "NEVER" 5 | "PROJECT_FILE_RELATIVE_PATH" = "" 6 | "NUMBER_OF_EXCLUDED_FILES" = "0" 7 | "ORIGINAL_PROJECT_FILE_PATH" = "" 8 | "NUMBER_OF_NESTED_PROJECTS" = "0" 9 | "SOURCE_CONTROL_SETTINGS_PROVIDER" = "PROVIDER" 10 | } 11 | --------------------------------------------------------------------------------