Ankündigung

Einklappen
Keine Ankündigung bisher.

cwtime issue since patch 2.300

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    cwtime issue since patch 2.300

    I have two EibPC running the same application program in parallel:
    1/ EibPC1, running v2.100 - in listening mode (EIB bus write-access muted)
    2/ EibPC2, running v2.300 - in validation mode (EIB bus write-access enabled)

    Following piece of code results in a different outcome during the transition from Saturday to Sunday:
    [highlight=epc]
    //2. Determine if we are running in DayTariff or Night tariff mode
    // Night-tariff on Sa/Su + week-days 22pm->07am
    if (cwtime(22,0,0,MONDAY) and !cwtime(07,0,0,TUESDAY)) or \\
    (cwtime(22,0,0,TUESDAY) and !cwtime(07,0,0,WEDNESDAY)) or \\
    (cwtime(22,0,0,WEDNESDAY) and !cwtime(07,0,0,THURSDAY)) or \\
    (cwtime(22,0,0,THURSDAY) and !cwtime(07,0,0,FRIDAY)) or \\
    cwtime(22,0,0,FRIDAY) or \\
    !cwtime(07,0,0,MONDAY) then {
    DayTariff = OFF
    } else {
    DayTariff = ON
    } endif
    [/highlight]On EibPC1 DayTariff is OFF between Friday 10pm and Monday 7am (as expected).
    On EIBPC2 DayTariff is OFF between Friday 10pm and Sunday 00am, but turns ON from Sunday 00am onwards. A restart of EIBPC2 on Sunday morning evaluates DayTariff back to OFF (as it should).

    It seems that the transition on Sunday 00am is not well handled in v2.300 => !cwtime(07,0,0,MONDAY) is not evaluated TRUE at the moment the week cycle is reset.

    #2
    Same problem using current Beta v2.301:

    % Query Value of Object 1543 (DayTariff):
    % D:/EibStudio-beta-v2.301/EibstudioData/nconf -q 1543 192.168.1.3
    % Value of Object 1543: 00 00 00 00 {2012-05-19 23:59:58}
    % Type: binary value
    % Value: OFF
    %
    % Query Value of Object 1543 (DayTariff):
    % D:/EibStudio-beta-v2.301/EibstudioData/nconf -q 1543 192.168.1.3
    % Value of Object 1543: 01 00 00 00 {2012-05-20 00:00:03}
    % Type: binary value
    % Value: ON

    Kommentar


      #3
      Zitat von martenss Beitrag anzeigen
      Same problem using current Beta v2.301:
      Hi, I've fixed this in the compiler. The next Beta will come next week and the release right afterwards.
      offizielles Supportforum für den Enertex® EibPC: https://knx-user-forum.de/eibpc/
      Enertex Produkte kaufen

      Kommentar

      Lädt...
      X