public static IEnumerable <FrameVdS> CreateMeasurementMessageCurrent(double current) { Log.Debug("Create change message CURRENT with value {0}", current); yield return(FrameVdS_02.Create(0x01, 0x00, 0x00, 0x00, (byte)0x73)); //return FrameVdS_30.Create(0x01, 0x00, 0x00, 0x00, 0x31, current); yield return(FrameVdS_54.Create(string.Format("Strom geaendert, neuer Wert: ({0}) A", current))); }
public static IEnumerable <FrameVdS> CreateMeasurementMessagePower(double power) { Log.Debug("Create change message POWER with value {0}", power); yield return(FrameVdS_02.Create(0x01, 0x00, 0x00, 0x00, (byte)0x73)); //return FrameVdS_30.Create(0x01, 0x00, 0x00, 0x00, 0x48, power); yield return(FrameVdS_54.Create(string.Format("Leistung geaendert, neuer Wert: ({0}) kW", power))); }
public static IEnumerable <FrameVdS> CreateMeasurementMessageVoltage(double voltage) { Log.Debug("Create change message VOLTAGE with value {0}", voltage); yield return(FrameVdS_02.Create(0x01, 0x00, 0x00, 0x00, (byte)0x73)); //return FrameVdS_30.Create(0x01, 0x00, 0x00, 0x00, 0x21, voltage); yield return(FrameVdS_54.Create(string.Format("Spannung geaendert, neuer Wert: ({0}) V", voltage))); }
public static FrameVdS CreateChangeMessageBatteryFault(bool hasOccured) { Log.Debug("Create change message BATTERY FAULT with value {0}", hasOccured); return(FrameVdS_02.Create(0x01, 0x00, 0x00, 0x00, hasOccured ? (byte)0x33 : (byte)0xB3)); }
public static FrameVdS CreateChangeMessageCommon(bool isOn) { Log.Debug("Create change message COMMON with value {0}", isOn); return(FrameVdS_02.Create(0x01, 0x00, 0x00, 0x00, isOn ? (byte)0x00 : (byte)0x80)); }
public static FrameVdS CreateChangeMessageState_LS(bool isOn) { // Command initiated by NB Log.Debug("Create change message LS STATE with value {0}", isOn); return(FrameVdS_02.Create(0x01, 0x00, 0x00, 0x00, isOn ? (byte)0x72 : (byte)0xF2)); }
public static FrameVdS CreateChangeMessageLS_SwitchedOff() { // Command initiated by NB Log.Debug("Create change message LS SWITCHED OFF"); return(FrameVdS_02.Create(0x01, 0x00, 0x00, 0x00, (byte)0x71)); }
public static FrameVdS CreateChangeMessageSystemFault() { Log.Debug("Create change message SYSTEM FAULT"); return(FrameVdS_02.Create(0x01, 0x00, 0x00, 0x00, (byte)0x55)); }
public static FrameVdS CreateChangeMessageGroundFault(bool hasOccured) { Log.Debug("Create change message GROUND FAULT with value {0}", hasOccured); return(FrameVdS_02.Create(0x01, 0x00, 0x00, 0x00, hasOccured ? (byte)0x35 : (byte)0xB5)); }