DataLogic.Magellan.Integration 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package DataLogic.Magellan.Integration --version 1.0.0
NuGet\Install-Package DataLogic.Magellan.Integration -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DataLogic.Magellan.Integration" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DataLogic.Magellan.Integration --version 1.0.0
#r "nuget: DataLogic.Magellan.Integration, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DataLogic.Magellan.Integration as a Cake Addin
#addin nuget:?package=DataLogic.Magellan.Integration&version=1.0.0

// Install DataLogic.Magellan.Integration as a Cake Tool
#tool nuget:?package=DataLogic.Magellan.Integration&version=1.0.0

DataLogic Magellan Integration for .NET

A .NET C# class library for communicating with a Datalogic Magellan 9xxx series Fixed Retail scanner/scales.

This library has been written to handle communication with the scanner/scale via single RS-232 cable interface. Dual cable interface is available however I have not tested or implemented this.

Sample code for setting up the connection.

// Instantiate a new connection with the scale
var scaleConfig = new DefaultSerialPortConfiguration()
{
    SerialPortName = "COM1,       // Will be whatever COM port is attached to the scale. Usually via USB-Serial adapater.
    BaudRate = 9600,              // Default is 9600
    Parity = Parity.Odd,          // Default is Parity.Odd
    StopBits = StopBits.One,      // Default is StopBits.One
    DataBits = 7                  // Default is 7
};

// create the scale variable with the selected config, and optionally an ILogger for error logging.
var magellanScale = new SingleCableInterface(scaleConfig, _fileErrorLogger);

// Subscribe to the Scan/Weight data received events.
magellanScale.OnScanDataReceived += OnScanDataReceived;
magellanScale.OnWeightDataReceived += OnWeightDataReceived;

// Open the port and start listening.
magellanScale.OpenPort();

In all cases, barcode scans are sent to the host unsolicited but scale weight data must be requested from the scale by the host.

await magellanScale.SendRequestWeightCommand();

Immediately after the OnWeightDataReceived event will fire, which can be handled and displayed to the user or used in an application.

Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.2 175 4/25/2023
1.0.1 232 2/16/2023
1.0.0 251 1/11/2023