paca rs232 serial

Discussion in 'C-Bus Wired Hardware' started by zhangshuai1012, Feb 15, 2011.

  1. zhangshuai1012

    zhangshuai1012

    Joined:
    Dec 10, 2010
    Messages:
    10
    Likes Received:
    0
    Location:
    china
    I want to use third-party devices sent through the r232 to the paca command to control the lights. Can now be paca can accept a string (control commands), but I do not know how to string into a command. I try to use systemio, but without success. thanks。
     
    zhangshuai1012, Feb 15, 2011
    #1
  2. zhangshuai1012

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    If you are wanting to control C-Bus from a third party device, there is probably no need to use a PAC. You can send serial strings directly to a PCI using the C-Bus Serial Protocol.

    If you want to use a PAC for some reason, you will need to invent your own serial protocol for use between your device and the PAC.
     
    Darren, Feb 15, 2011
    #2
  3. zhangshuai1012

    NickD Moderator

    Joined:
    Nov 1, 2004
    Messages:
    1,427
    Likes Received:
    64
    Location:
    Adelaide
    This depends on whether you have any control over the strings from the third party device.

    If you want C-Bus to respond to predefined strings from the third party device, then the PAC is what you need.

    You would need to read the strings from the serial buffer into a string variable, parse the string to look for the known commands, and then call the appropriate logic functions (eg SetLightingLevel) for whatever command string is found.

    If none of this makes sense to you, then you should probably read through the tutorials and examples in the Logic Help file.

    Nick
     
    NickD, Feb 15, 2011
    #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.