Table of Contents

Class AutorunCommand

Namespace
TechnologySolutions.Rfid.AsciiProtocol.Commands
Assembly
TechnologySolutions.Rfid.AsciiProtocol.Core.dll

The .ar Autorun Command of the Technology Solutions UK Ltd ASCII 2 Protocol

(.ar) Autorun Command. Where supported by the reader, this command is used to read/write/delete/execute the AUTO.TXT file. This file can be on the micro SD card, or the readers small, internal file. This command cannot be used in an Autorun file. NB The internal file is limited to 256 bytes.

[AsciiCommand(".ar")]
public class AutorunCommand : AsciiCommandBase, IAsciiCommand
Inheritance
AutorunCommand
Implements
Inherited Members
Extension Methods

Constructors

AutorunCommand()

Initializes a new instance of the ReadLogFileCommand class

public AutorunCommand()

Fields

FileIndexInternal

The FileIndex of the limited (256 byte) internal autorun file

public const int FileIndexInternal = 0

Field Value

int

FileIndexSDCard

The FileIndex of the default micro SD autorun file (also the default autorun for ruggedised readers)

public const int FileIndexSDCard = 1

Field Value

int

Properties

AutorunFile

Gets the contents of the file

public string AutorunFile { get; }

Property Value

string

DeleteFile

Gets or sets a value indicating whether to delete the specified autorun file from the device

[AsciiParameter("d")]
public Confirmation? DeleteFile { get; set; }

Property Value

Confirmation?

ExecuteAutorun

Gets or sets a value indicating whether to execute the specified autorun file command logging is enabled. Set to null to not change the current value

[AsciiParameter("ea")]
public bool ExecuteAutorun { get; set; }

Property Value

bool

FileIndex

Gets or sets the file index of the autorun file to use

[AsciiParameter("fi")]
public int? FileIndex { get; set; }

Property Value

int?

Remarks

ReadAutorun

Gets or sets a value indicating whether to read back the autorun file from the specified file index. Set to null to not change the current value

[AsciiParameter("ra")]
public bool ReadAutorun { get; set; }

Property Value

bool

ResetParameters

Gets or sets a value indicating whether to set all parameters to their default values before executing the command

[AsciiParameter("x")]
public bool ResetParameters { get; set; }

Property Value

bool

WriteCommandToAutoRun

Gets or sets a command that should be appended to the specified autorun file. Set to null to not change the current value

[AsciiParameter("wa")]
public string WriteCommandToAutoRun { get; set; }

Property Value

string