Home AMX User Forum AMX General Discussion

Russound CAS44 control

As a Newbie DIY type I may have bitten off more than I can chew but have had very helpful responses in the past through the forum. I'm trying to control a Russound CAS44 Multi zone controller through a DIGI Port server (192.168.1.132:2102) I have a working code, controlled using iRule (Zone 2 Power On)

\xF0\x00\x00\x7F\x00\x00\x71\x05\x02\x02\x00\x00\xF1\x23\x00\x01\x00\x01\x00\x01\x14\xF7

I've tried with and without carriage return and am not sure what I'm doing wrong.

BUTTON_EVENT [TP_LOFT, 76] //LOFT POWER ON RUSSOUND ZONE 2
{
PUSH:
{
SEND_STRING DIGI, "'$F0,$00,$00,$7F,$00,$00,$71,$05,$02,$02,$00,$00,$F1,$23,$00,$01,$00,$01,$00,$01,$14,$F7', $OD"

}
}

BUTTON_EVENT [TP_LOFT, 76] //LOFT POWER ON RUSSOUND ZONE 2
{
PUSH:
{
SEND_STRING DIGI,'$F0,$00,$00,$7F,$00,$00,$71,$05,$02,$02,$00,$00,$F1,$23,$00,$01,$00,$01,$00,$01,$14,$F7'

}
}

Thanks,

Paul

Comments

  • viningvining Posts: 4,368
    You need to do an IP_CLIENT_OPEN first for the IP/Port used to connect to the digi. The digi can be a maintained connected but you need to track its state in case it falls offline and then re-con.

    Then you need to config the digi for your conected device. Let us know where in this process you are, show more code and we'll try to lend a hand.
  • I duplicated what I had set up for my Global Cache which worked from the get go.

    DEFINE_DEVICE

    DIGI = 0:8:0

    DEFINE_START

    IP_CLIENT_OPEN(DIGI.PORT, '192.168.1.132', 2102, IP_TCP)

    DEFINE_EVENT

    DATA_EVENT[DIGI]
    {
    OFFLINE:
    {
    (* TRY ANOTHER CONNECTION *)
    IP_CLIENT_OPEN(DIGI.PORT, '192.168.1.132', 2102, IP_TCP)
    }
    }

    DEFINE_EVENT

    BUTTON_EVENT [TP_LOFT, 76] //LOFT POWER ON RUSSOUND ZONE 2
    {
    PUSH:
    {
    SEND_STRING DIGI, '$F0,$00,$00,$7F,$00,$00,$71,$05,$02,$02,$00,$00,$F1,$23,$00,$01,$00,$01,$00,$01,$14,$F7'

    }
    }
  • UPDATE

    Got some advice from someone at RC "Drop the single Quotes" and it worked like a charm with and without the carriage return.


    Got rid of the single quotes and worked like a charm, with and without the carriage return.

    BUTTON_EVENT [TP_LOFT, 76] //LOFT POWER ON RUSSOUND ZONE 2
    {
    PUSH:
    {
    SEND_STRING DIGI, "$F0,$00,$00,$7F,$00,$00,$71,$05,$02,$02,$00,$00,$F1,$23,$00,$01,$00,$01,$00,$01,$14,$F7, $0D"

    }
    }


    Thanks,

    Paul
Sign In or Register to comment.