Serial control for BLINDS or SHUTTERS

Discussion in 'C-Bus Serial Protocols' started by German_GGV, Mar 9, 2012.

  1. German_GGV

    German_GGV

    Joined:
    Mar 9, 2012
    Messages:
    13
    Likes Received:
    0
    Location:
    Mexico City
    Hi all,


    Recently I have being trying in using a Somfy interfase that works with radiofrecuency motors, Of course Somfy motors. These interfase has a RS 232 port and I can connect it to a PAC. This PAC unit should have written code for the serial connection between the interfase and the motors I'm trying to control.
    Can any body help me with the code in order to make this function?

    So far I have written this code.


    openserial (1,4,4800,8,1,0,1);{Enter Initialisation code here}
    abrir := #254;
    cerrar :=#23;


    readserial (1,s,' ');
    repeat
    posicionactual := posicionrequerida;

    writeserial (1,abrir);
    until (posicionactual = posicionrequerida);
     
    German_GGV, Mar 9, 2012
    #1
  2. German_GGV

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    You will need to provide us with the serial protocol for us to be able to help.

    The code in each logic module must complete (or have a delay) within 100ms. You can not have a repeat loop which takes a long time to execute like this appears to.
     
    Darren, Mar 11, 2012
    #2
  3. German_GGV

    Barry Neil

    Joined:
    Mar 10, 2006
    Messages:
    2
    Likes Received:
    0
    Location:
    Christchurch, New Zealand
    Write serial to somfy RTS Transmitter

    Hey Guys,

    Im trying to transmit to a somfy transmitter for wireless blind control, i have no trouble with working out strings required, i have been using a terminal software to test strings and connecting lead. With great success

    But now i wish to use schedule plus on the same computer, using the same com port and connecting lead. But i'm unable to get it to work.

    This is the code i've written,

    {Constant}

    U1CH1UP = '$7F$F2$FA$FE$FF$FF$3D$78$FA$FD$FB$09$0E';


    {Initialisation}

    OpenSerial(1, 1, 4800, 8, 1, scNoFlowControl, scOddParity);


    {Module}

    once (GetLightingState("Somfy U1CH1UP") = ON) then
    begin
    WriteSerial (1, U1CH1UP);
    end;

    and attached is a screen shot of comms settings and working string

    Can anyone see where i'm going Wrong?

    Cheers Baz
     

    Attached Files:

    Barry Neil, Apr 9, 2012
    #3
  4. German_GGV

    Barry Neil

    Joined:
    Mar 10, 2006
    Messages:
    2
    Likes Received:
    0
    Location:
    Christchurch, New Zealand
    Problem solved

    Found answer in RichardC Post :)
     
    Barry Neil, Jun 27, 2012
    #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.