2 quick clarifications on Replies format

Discussion in 'C-Bus Serial Protocols' started by Paolo, Oct 21, 2016.

  1. Paolo

    Paolo

    Joined:
    Oct 20, 2010
    Messages:
    6
    Likes Received:
    0
    Location:
    UK
    I am trying to finalise a comprehensive "Reply analysis" loop for messages coming from the Serial Interface. I have 2 questions that I can't find the definitive answer in the User Guide or this forum:
    1) Is the "!" character always followed by <cr><lf> or could it be sent on its own?
    2) Are Confirmations only sent if they have been asked for by the same serial interface (and therefore will never show up if one never asks for one) or could there be other Confirmations popping up for some obscure reason?

    Basically I want to keep my loop simple and based on a "readline" type of command rather than reading the replies byte by byte. Answers to those 2 questions should settle the case.

    Thanks.
     
    Paolo, Oct 21, 2016
    #1
  2. Paolo

    rhamer

    Joined:
    Aug 3, 2004
    Messages:
    673
    Likes Received:
    3
    Location:
    Melbourne, Australia
    From memory;

    1 Yes. Or to be more specific it's the same as any other message sent from the PCI.

    2 The confirmation is sent in response to a request for one, as part of the outbound message. i.e. If you append the character g-z then a confirmation message will be returned, if you don't then it won't.

    BTW the ! Means the message was not received correctly, possibly because of a checksum error or an overflow, so you should consider the message lost.

    Cheers

    Rohan
     
    Last edited by a moderator: Oct 21, 2016
    rhamer, Oct 21, 2016
    #2
  3. Paolo

    Paolo

    Joined:
    Oct 20, 2010
    Messages:
    6
    Likes Received:
    0
    Location:
    UK
    Thanks Rohan, appreciated.
     
    Paolo, Oct 21, 2016
    #3
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.