IR Blaster for SHAC/NAC. Success using Global Cache IP2IR

Discussion in 'C-Bus Automation Controllers' started by MarkB, Nov 1, 2019.

  1. MarkB

    MarkB

    Joined:
    Feb 2, 2019
    Messages:
    17
    Likes Received:
    3
    Thanks to a suggestion from jasonson, I picked up a Global Cache IP2IR module. I got the POE version from here: https://www.interactivecontrols.com.au/product/global-cache-ip2ir-p/ good price and fast delivery.

    I haven't written code since "hello world" at school on an Apple II so making it work seemed like an insurmountable challenge at first, but ended up being incredibly simple!

    Examples I found for Logic Machine didn't work properly (probably wouldn't work on LM either...) as it would only work for 10 seconds or so before the IP2IR would cease responding. Memory was being consumed on the NAC to the point that I was getting warning popups in the configurator.

    So, here is an example of code that works:

    local socket = require("socket")
    local tcp = assert(socket.tcp())

    tcp:connect("192.168.0.181", 4998);

    --sony tv power toggle
    tcp:send("sendir,1:3,1,40064,1,1,96,24,48,24,24,24,48,24,24,24,48,24,25,23,25,23,49,24,24,24,24,24,24,24,24,1033,96,24,48,24,24,24,48,24,24,24,48,24,25,23,25,23,49,24,24,24,24,24,24,24,24,1033\r")

    os.sleep(.1)

    tcp:close()

    I have this running in an event based script. IP address of IP2IR module found using Global Cache iHelp utility, 4998 is the default port.
    IR code captured using their iLearn utility.

    So, I have a long way to go and a lot to learn, but I'm very happy to get to this stage. Set up a button in Visualisation and the response when triggering from my phone is pretty much instantaneous. I'm using lcrowhursts android app to display the visualisation which works great. Thanks Lawrence! :cool:
     
    Last edited: Nov 2, 2019
    MarkB, Nov 1, 2019
    #1
    1. Advertisements

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.