Skip to content

commtech/netfscc

Repository files navigation

FSCC .NET Library (netfscc)

This README file is best viewed online.

Installing Library

Downloading Library
  • The easiest way is to grab the library from NuGet
  • Or, you can download the latest library version from Github releases.

Quick Start Guide

Lets get started with a quick programming example for fun.

This tutorial has already been set up for you at examples/tutorial.cs.

First, drop netfscc.dll and cfscc.dll into a test directory. Now that those files are copied over, create a new C# file (named tutorial.cs) with the following code.

using Fscc;
using System;

public class Tutorial
{
    public static int Main(string[] args)
    {
   		Fscc.Port p = new Fscc.Port(0);

        // Send "Hello world!" text
        p.Write("Hello world!");

        // Read the data back in (with our loopback connector)
        Console.WriteLine(p.Read(100));

        return 0;
    }
}

For this example I will use the Visual Studio command line compiler, but you can use your compiler of choice.

# csc /reference:netfscc.dll /platform:x86 tutorial.cs

Now attach the included loopback connector.

# tutorial.exe
Hello world!

You have now transmitted and received an HDLC frame!

API Reference

There are likely other configuration options you will need to set up for your own program. All of these options are described on their respective documentation page.

Build Dependencies

  • .NET compiler (Visual Studio tested)
  • cfscc (Included)

Run-time Dependencies

  • OS: Windows XP+ & Linux
  • .NET: 2.0+

API Compatibility

We follow Semantic Versioning when creating releases.

License

Copyright (C) 2020 Commtech, Inc.

Licensed under the MIT license

About

FSCC .NET Library

Resources

License

Stars

Watchers

Forks

Packages

No packages published