46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
namespace SIRTBroadcaster.Abstraction
|
|
{
|
|
/// <summary>
|
|
/// Constant variables used in both SignalR and desctop clients.
|
|
/// </summary>
|
|
public class SIRTFixed
|
|
{
|
|
/// <summary>
|
|
/// Used for naming the SignalR hub as well as for building IHubProxy for the desctop clients.
|
|
/// </summary>
|
|
public const string SIRT_HUB = "SIRTBroadcaster";
|
|
|
|
public const string SIRT_URL = "http://sla12iis01.emea.sensus.net/LaaProductionWeb"; // "http://localhost:52822/";
|
|
|
|
public const byte FromAir = 0x11;
|
|
|
|
public const byte LastCMD = 0x12;
|
|
|
|
public const byte Debug = 0x14;
|
|
|
|
public const byte StopByte = 0x16;
|
|
|
|
public const byte StartSIRT2PC = 0xFF;
|
|
|
|
public const byte StartPC2SIRT = 0x55;
|
|
|
|
public const byte WritePAM = 0x81;
|
|
|
|
public const byte ReadPAM = 0x82;
|
|
|
|
public const byte WriteRegister = 0x84;
|
|
|
|
public const byte ReadRegister = 0x87;
|
|
|
|
public const byte WriteRAC = 0x88;
|
|
|
|
public const byte ReadRAC = 0x8B;
|
|
|
|
public const byte AddressLength = 4;
|
|
|
|
public const byte CRCLength = 2;
|
|
|
|
public const byte OxOO = 0x00;
|
|
}
|
|
}
|