Measurement Additional Units for Weather Stations

Discussion in 'C-Bus Serial Protocols' started by rhamer, Jun 3, 2015.

  1. rhamer

    rhamer

    Joined:
    Aug 3, 2004
    Messages:
    673
    Likes Received:
    3
    Location:
    Melbourne, Australia
    As part of the process of interfacing a weather station into the C-Bus measurement application, I have come across a few unit types I would like to add.

    These are;

    For Speed
    • Kph
    • Mph
    • Knots
    For Distance
    • mm
    • Inches

    I realise these are all readily convertible from the base units of "Metres/Second" and "Meters" however this requires the end display unit to know the intended final units.

    Given the units information is carried as part of the message payload, it makes sense to be able to set them at the encoding end.

    So, I have noticed that the protocol lists one units value $FF as user defined but as you can see I would like more. :D
    Can I use any of the values between $28 and $FD that are currently unoccupied?
    If so I would think working backwards from $FD would be better to avoid any factory additions coming the other way.

    Cheers

    Rohan
     
    Last edited by a moderator: Jun 3, 2015
    rhamer, Jun 3, 2015
    #1
  2. rhamer

    rhamer

    Joined:
    Aug 3, 2004
    Messages:
    673
    Likes Received:
    3
    Location:
    Melbourne, Australia
    I've also recently noticed there are 2 additional units listed in the C-Bus diagnostics utility that are not in the protocol documents.
    Namely;

    $/Unit
    $/Hour

    Are these official units?

    Regards

    Rohan
     
    rhamer, Jun 5, 2015
    #2
  3. rhamer

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,393
    Likes Received:
    25
    Location:
    Adelaide, South Australia
    The whole point of the Measurement Application is that the sending end sends in a neutral format.

    The display end then takes that and formats it in whatever form suits the end application or user preference.

    Imagine the mess if you had things like degrees F, degrees C, Kelvins... And then likewise all the imperial units, gallons, US gallons, pints, quarts, etc.

    Thus... neutral form for transmission. Conversion to Sydharbs, gallons, pints, etc on reception or display.

    This way, transmitting devices NEVER need to be changed to suit user needs, its all in the UI.
     
    ashleigh, Jun 7, 2015
    #3
  4. rhamer

    rhamer

    Joined:
    Aug 3, 2004
    Messages:
    673
    Likes Received:
    3
    Location:
    Melbourne, Australia
    Hmm..... that may have been the intent, but that's not how it has panned out.

    If the sending format is supposed to be neutral, why does it include units at all?

    This assumes the display end has the intelligence to calculate and the user controls to select the option. I'm not sure all C-Bus devices can do that (happy to be corrected).

    Yep, that's what we have now. The Measurement specification does not only contain base units. There are several types with multiple units.
    e.g.
    For Flow Rate there is;
    • Litres per Hour
    • Litres per Minute
    • Litres per Second
    For Elapsed Time there is;
    • Seconds
    • Minutes
    • Hours
    For Speed there is;
    • Metres per Second
    • Metres per Minute
    At some point someone has decided that calculating them at the display end is not possible (or too much effort) and encoded the units at the send end.

    I think this is a case of could be either way. I would argue that the sender is the absolute authority on what is contained in the message and therefore should set the end units. It also means the display end can be reasonably dumb.

    However I acknowledge that the reverse can be equally as true (especially with culture based metric/imperial units).

    The problem here is it's not consistent either way, and there appears to be no official guidelines for third party encoding and display. I actually suspect that very few (if any) third parties have ever built a system for sending measurement information, and the current list of units is a mix of "ideas at the time" and a couple of requested extras ($/Unit, $/Hour).

    I understand that just adding unit types as requested by the "great unwashed" potentially has no end to it, and could result in a bit of duplication and mess, but as it stands now there are 212 spare slots, so it really is not likely to become an issue any time soon.

    BTW "Sieverts", surely that was added after a Friday long lunch....

    So perhaps a compromise would be to open up the custom range to allow product specific units?

    Anyway as usual, thanks for your help and comments Ashleigh, especially with the maths lesson the other day. I know it's not your domain any more to green light changes, but hopefully one of the official guys can comment as well.

    Cheers

    Rohan
     
    rhamer, Jun 15, 2015
    #4
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.