Beispiel #1
0
        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)));
        }
Beispiel #2
0
        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)));
        }
Beispiel #3
0
        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)));
        }
Beispiel #4
0
 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));
 }
Beispiel #5
0
 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));
 }
Beispiel #6
0
 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));
 }
Beispiel #7
0
 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));
 }
Beispiel #8
0
 public static FrameVdS CreateChangeMessageSystemFault()
 {
     Log.Debug("Create change message SYSTEM FAULT");
     return(FrameVdS_02.Create(0x01, 0x00, 0x00, 0x00, (byte)0x55));
 }
Beispiel #9
0
 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));
 }