Home AMX User Forum NetLinx Studio

can c_bus reply

can c_bus reply.i have try everything to make c_bus can reply and i also use the amx's module about the c_bus, but i can't understand all the module .can anyone help ???
thanks for help.

Comments

  • filpeefilpee Posts: 64
    c_bus as in the lighting system from clipsal?
  • filpee wrote: »
    c_bus as in the lighting system from clipsal?

    yes,can it??
  • filpeefilpee Posts: 64
    The module comes with a pretty comprehensive user manual with plenty of examples on how to implement both sending and receiving commands.

    heres an example connecting to an Ethernet interface
    DEFINE_DEVICE
    dvCbus	   	= 0:5:0		//CBUS PCI - 192.168.1.10 port 100001
    vdvCbus		= 33003:1:0
    DEFINE_VARIABLE
    volatile char sCbus_Addr[] = '192.168.1.10';
    volatile integer sCbus_Port = 10001;
    DEFINE_MODULE 'CBusModIII' mdlCBUS( dvCBUS, vdvCBUS, sCbus_Addr, sCbus_Port );
    DEFINE_EVENT
    data_event[vdvCbus]
    {
        string:
        {
    	select
    	{
    	    active (data.text == "'K:P:[00:3A:02]'"):{
    		//lights are on so do something
    	    }
    	}
        }
        online:
        {
        send_command vdvCBUS, "'STATUS:3A'"
        }
    }
    
  • i have not use the ip method,but i only use the RS232 method and i can't recieve the reply.
    i use the Channel Feedback,and also no use.
    channel_event[vLight, 18]
    {
    on: on [dvTP, channel.channel]
    off: off [dvTP, channel.channel]
    }
    this also no use
    DEFINE_PROGRAM

    [dvTP, 21] = [vLight,$A9] // group address A9 on local network, app 38
    [dvTP, 22] = [vLight,$AA] // group address AA on local network, app 38
    [dvTP, 23] = [vLight,$AB] // group address AB on local network, app 38
    [dvTP, 24] = [vLight,$AC] // group address AC on local network, app 38
  • wgqkakawgqkaka Posts: 16
    filpee wrote: »
    The module comes with a pretty comprehensive user manual with plenty of examples on how to implement both sending and receiving commands.

    heres an example connecting to an Ethernet interface
    DEFINE_DEVICE
    dvCbus	   	= 0:5:0		//CBUS PCI - 192.168.1.10 port 100001
    vdvCbus		= 33003:1:0
    DEFINE_VARIABLE
    volatile char sCbus_Addr[] = '192.168.1.10';
    volatile integer sCbus_Port = 10001;
    DEFINE_MODULE 'CBusModIII' mdlCBUS( dvCBUS, vdvCBUS, sCbus_Addr, sCbus_Port );
    DEFINE_EVENT
    data_event[vdvCbus]
    {
        string:
        {
    	select
    	{
    	    active (data.text == "'K:P:[00:3A:02]'"):{
    		//lights are on so do something
    	    }
    	}
        }
        online:
        {
        send_command vdvCBUS, "'STATUS:3A'"
        }
    }
    

    I want to do c_bus?s feedback too,but I have not got feedback message like ?'K:P:[00:3A:02]'?,can you tell me how to get this feedback message?thank you!!!!!
  • From the examples below it looks like you are using an old version of the Cbus module. AMX have v4.06 but it isn't on the website. For some reason you have to call them and ask for it. It doesn't seem all that much better than the old one, but it's worth a try.
Sign In or Register to comment.