CBUS Light tower commands failed to execute from Linux

Discussion in 'C-Bus Automation Controllers' started by pullamraju, Mar 6, 2024.

  1. pullamraju

    pullamraju

    Joined:
    Mar 6, 2024
    Messages:
    1
    Likes Received:
    0
    Location:
    Chennai
    we encountered an issue where commands from Linux servers were failing to execute when supporting the CBUS Light Tower device.
    Name: CBUS Light tower
    model: CNI2 Mk2 Light Tower4 model
    Vendor: CLIPSAL



    linux terminal) through the nc session tried to send following commands to lights on



    Lights on command in nc session- "\0530002230C0B9g" - failed to execute. - I tried sending the same message to a another machine to see what is received on the other side. the hexadecimal observed for this command observed in sample app as ("5c 30 35 33 30 30 30 32 32 33 30 43 30 42 39 67 0a") - the command usage as "nc <ipaddress> <port>". In the nc session extra "0a" line feed is sent.



    Lights on command on terminal - `printf "\\\0530002230C0B9g" | nc <ipaddress> <port>` - the hexadecimal observed for this command in sample app as ("5c 30 35 33 30 30 30 32 32 33 30 43 30 42 39 67")



    The command output no difference observed between windows and linux but failed to execute command.

    Thanks & Regards,
    Raju.
     
    pullamraju, Mar 6, 2024
    #1
  2. pullamraju

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,534
    Likes Received:
    175
    Location:
    Adelaide, Australia
    Do you really mean to send on application 30? The standard lighting application is 38.
    I suggest you run the Cbus diagnostic utility on the same CNI and see if the load responds to the same command.
     
    Ashley, Mar 7, 2024
    #2
  3. pullamraju

    lthorne

    Joined:
    Mar 13, 2024
    Messages:
    1
    Likes Received:
    0
    Location:
    Melbourne Australia
    Howdy I'm assisting Raju, have run the Diagnostic Utility as suggested. The Application Number is 48 and the Group Number for testing is 48 the hexadecimal is 30. The commands check out ok with Diagnostic tool and Windows Telnet session, but as stated above we do the same from a linux server, and nothing happens, with no response. Any help is appreciated.
     
    lthorne, Mar 13, 2024
    #3
  4. pullamraju

    ssaunders

    Joined:
    Dec 17, 2008
    Messages:
    242
    Likes Received:
    35
    Location:
    Melbourne
    Does it need the line feed? i.e. printf "\\\0530002230C0B9g\n"
     
    ssaunders, Mar 16, 2024
    #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.