Wireless RS-232 Protocol

Discussion in 'C-Bus Wired Hardware' started by simey_p, Mar 22, 2006.

  1. simey_p

    simey_p

    Joined:
    Aug 17, 2005
    Messages:
    6
    Likes Received:
    0
    Does anybody have the format for wireless communication on the Serial port on a PCI.
    I am writing a module to control the lighting via a Crestron system.
    Whilst standard commands to the C-Bus network work. The commands that I read off the network have an extra byte in them and seem to have a different format so a change on the C-Bus network does not register on the Crestron System.
    Eg: Hard wire Group 11 (0B) on = 05 14 38 00 79 0B 2B
    Wireless Group 111 (6F) on = 05 FD 38 01 0B 79 6F D2
     
    simey_p, Mar 22, 2006
    #1
  2. simey_p

    rhamer

    Joined:
    Aug 3, 2004
    Messages:
    673
    Likes Received:
    3
    Location:
    Melbourne, Australia
    You need to apply for the public release protocol, then all will be revealed.
     
    rhamer, Mar 22, 2006
    #2
  3. simey_p

    simey_p

    Joined:
    Aug 17, 2005
    Messages:
    6
    Likes Received:
    0
    It doesn't seem to cover this

    I already have the public release protocol.
    Unfortunately, what is in the public release protocol doesn't match what I am getting from the wireless network.
    The wireless network seems to use an extra 2 digits.
     
    simey_p, Mar 22, 2006
    #3
  4. simey_p

    rhamer

    Joined:
    Aug 3, 2004
    Messages:
    673
    Likes Received:
    3
    Location:
    Melbourne, Australia
    It does in my copy V1.4 Page 11

    2 alternative formats, although I grant you it does actually break the described protocol a bit, but not enough to be a problem.

    You need to allow for both in your code.
     
    rhamer, Mar 22, 2006
    #4
  5. simey_p

    rhamer

    Joined:
    Aug 3, 2004
    Messages:
    673
    Likes Received:
    3
    Location:
    Melbourne, Australia
    I take that back, it could be a problem, in fact when I looked at my own code, receiving a string like you have posted from the wireless network would break it.

    That string conflicts with the statements made in the public release protocol, V1.4 Page 11.

    Is there a later version of the release.
     
    rhamer, Mar 22, 2006
    #5
  6. simey_p

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    The wired and wireless protocols are identical.
    The difference in these commands is caused by the presence of a bridge (in this case, a wireless gateway). This has introduced extra "routing" information in the message. If the Crestron system is not seeing the commands from the wireless network, it is probably because the software in the Crestron system is not accounting for the routing.
     
    Darren, Mar 22, 2006
    #6
  7. simey_p

    simey_p

    Joined:
    Aug 17, 2005
    Messages:
    6
    Likes Received:
    0
    Thanks

    Thanks for all the advice - finally got it sorted.
    Had to tell the Crestron system that if the 4th byte was 01, use a different serial analyze where the 5th bit is ignored.
     
    simey_p, Mar 23, 2006
    #7
  8. simey_p

    rhamer

    Joined:
    Aug 3, 2004
    Messages:
    673
    Likes Received:
    3
    Location:
    Melbourne, Australia
    But it's still not documented correctly in the public release protocol.

    According to the document, that string is illegal.

    I have code written against that protocol that I now know will break.

    Is there a later version than 1.4 that I don't have?
     
    rhamer, Mar 23, 2006
    #8
  9. simey_p

    rhamer

    Joined:
    Aug 3, 2004
    Messages:
    673
    Likes Received:
    3
    Location:
    Melbourne, Australia
    Anybody?
     
    rhamer, Mar 23, 2006
    #9
  10. simey_p

    simey_p

    Joined:
    Aug 17, 2005
    Messages:
    6
    Likes Received:
    0
    I got the public release from C-Bus last week and it was still at V1.4
    Just 'cause that string is supposed to be illegal, doesn't mean it won't happen and won't work.
    When I spoke to C-Bus about this, they said they were thinking about releasing a newer version of the protocol.
     
    simey_p, Mar 23, 2006
    #10
  11. simey_p

    rhamer

    Joined:
    Aug 3, 2004
    Messages:
    673
    Likes Received:
    3
    Location:
    Melbourne, Australia
    Thinking about it dosen't help.

    I need to know what to expect, I have code running in the real world that I know will break if it gets a string that is outside the published protocol.
     
    rhamer, Mar 23, 2006
    #11
  12. simey_p

    simey_p

    Joined:
    Aug 17, 2005
    Messages:
    6
    Likes Received:
    0
    I know ...
    At least they publish their protocol unlike some systems I've worked with which have required a good deal of reverse engineering.
    The best work around I've been able to come up with is that if the 4th byte is 00, then the next byte is the ramp / on / off data. If the 4th byte is 01, discard the 5th byte and the 6th byte is the ramp / on / off data.
    What sort of system are you connecting to the PCI?
     
    simey_p, Mar 23, 2006
    #12
  13. simey_p

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,397
    Likes Received:
    26
    Location:
    Adelaide, South Australia
    Smiley has worked it out fine.

    The public release protocol is for single network, non-bridged, non-routed.

    Wireless coming back into wired is two networks so public release does not really apply.

    However, looking at that 4th byte: If 0, then the 5th and subsequent bytes are the ramp / on / off commands.

    If the 4th byte is not 0, then the LEAST SIGNIFICANT 3 bits tell you how many bytes after the 4th byte you must skip.

    This will not be added to the public release. It already too long and complicated for many punters who only want the basics. Anything more - it's time for C-Bus Enabled. The full documentation on routing, setup, modes, interpretation of the stream etc runs to only a mere additional 200-odd pages or so.
     
    ashleigh, Mar 23, 2006
    #13
  14. simey_p

    rhamer

    Joined:
    Aug 3, 2004
    Messages:
    673
    Likes Received:
    3
    Location:
    Melbourne, Australia
    Oh, that will nail me for sure.

    With the timely release of the C-Gate documentation, it's time for me to ditch the Public Release Protocol and move over to the play with the big boys :)

    Thanks for your help Ashleigh.

    Cheers

    Rohan
     
    rhamer, Mar 23, 2006
    #14
  15. simey_p

    audiovis

    Joined:
    Nov 24, 2006
    Messages:
    9
    Likes Received:
    1
    Crestron And C-bus

    I too have an extensive C-Bus system that I need to integrate with a Crestron control system. As with (it seems) most other people I had problems with the Ramping of a group address Up and Down.

    I do need to resolve the issue - Has anyone got a re-written Crestron Module that works?
    OR
    Where can I apply for the Public C-BUS RS232 control Protocol so that I can re-work the Crestron module myself.
    OR
    Is there another 'Work Around' i.e. Via infra red instead of RS232.
     
    audiovis, Jul 23, 2007
    #15
  16. simey_p

    simey_p

    Joined:
    Aug 17, 2005
    Messages:
    6
    Likes Received:
    0
    Hi Audiovis.
    After a lot of time reading the public release protocol and monitoring strings in and out of the PCI, I wrote a module to control C-Bus from Crestron.
    I now sell the module commercially, and have many copies of the module in the field which run relatively trouble free.

    You can find out more about the module on my webiste:
    www dot specialtyps dot com dot au.

    The module is quite fully featured including multiple ramping options and a "One-Touch" input which has the same function as a C-Bus dimmer button on the wall - i.e. touch to toggle, press and hold to ramp.
    My contact details are on the web site.
    I also work as a contract Crestron Programmer.
    Simon
     
    simey_p, Jul 23, 2007
    #16
  17. simey_p

    Richo

    Joined:
    Jul 26, 2004
    Messages:
    1,257
    Likes Received:
    0
    Location:
    Adelaide
    www.cbus-enabled.com

    although the form seems to be broken. Send an email to the contact person on that website.
     
    Richo, Jul 23, 2007
    #17
  18. simey_p

    ashleigh Moderator

    Joined:
    Aug 4, 2004
    Messages:
    2,397
    Likes Received:
    26
    Location:
    Adelaide, South Australia
    ashleigh, Jul 24, 2007
    #18
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.