AC Application

Discussion in 'C-Gate Developers' started by jackaroos, Aug 23, 2015.

  1. jackaroos

    jackaroos

    Joined:
    Apr 8, 2014
    Messages:
    17
    Likes Received:
    0
    Location:
    New Zealand
    Hello

    I need some help when interpreting the fan status as returned in the 'aircon set_zone_hvac_mode' data from CGate please:

    Eg, as received from CGate
    Code:
     Rx "aircon set_zone_hvac_mode //PROJECT1/254/172 1 0 1 0 0 0 1 3 5888 0 #sourceunit=200 OID=7fa34bf0-2b5b-1033-9c98-cc8c9e3e27eb sessionId=cmd9 commandId=14" 
    == 0 == Fan Auto
    Code:
    Rx "aircon set_zone_hvac_mode //PROJECT1/254/172 1 0 1 0 0 0 1 3 5888 127 #sourceunit=2 OID=7fa34bf0-2b5b-1033-9c98-cc8c9e3e27eb"  
    == 127 == 0111 1111 == FAN Continuous (1) & 63. Looking in Toolkit Log it says 63 == FULL
    Code:
    Rx "aircon set_zone_hvac_mode //PROJECT1/254/172 1 0 1 0 0 0 1 3 5888 106 #sourceunit=2 OID=7fa34bf0-2b5b-1033-9c98-cc8c9e3e27eb"
    == 106 == 0110 1010 == FAN Continuous (1) & 42. Looking in Toolkit Log it says 42 == 67% of full speed
    Code:
     Rx "aircon set_zone_hvac_mode //PROJECT1/254/172 1 0 1 0 0 0 1 3 5888 85 #sourceunit=2 OID=7fa34bf0-2b5b-1033-9c98-cc8c9e3e27eb"
    == 85 == 0101 0101 == FAN Continuous(1) & 21. Looking in Toolkit Log it says 21 == 33% of full speed.

    I would like to know
    a. is the conversion between decimal and percentage (eg 21 = 33%, 42==67% etc) a mapping or a calculation
    b. if it is a calculation, can I please have the details of the calculation.

    Thanks very much :)
     
    jackaroos, Aug 23, 2015
    #1
  2. jackaroos

    jackaroos

    Joined:
    Apr 8, 2014
    Messages:
    17
    Likes Received:
    0
    Location:
    New Zealand
    Answer

    I just found the answer in C-Bus Application Messages and Behaviour -- Chapter 25:

    If the fan speed is in the Raw Level
    Fan Speed = Raw Level /$7FFF * Number of Fan Speeds​

    If the fan speed is in the AuxLevel
    Fan Speed = Aux Level /$3F * Number of Fan Speeds​

    :)
     
    jackaroos, Aug 23, 2015
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.