Comfort Automation/ Security System Forums
Access your Comfort with a UCM/USB - Printable Version

+- Comfort Automation/ Security System Forums (https://www.comfortforums.com)
+-- Forum: Support (https://www.comfortforums.com/forum-2.html)
+--- Forum: Questions on Programming Comfort (https://www.comfortforums.com/forum-83.html)
+--- Thread: Access your Comfort with a UCM/USB (/thread-3249.html)



- cab123 - 01-16-2013

Hi,

there is a really simple way to connect to comfort via network without having to get a dedicated UCM/Ethernet. It is really useful to connect iphone app or program with comfigurator without having to be in the same room.

What you need:
UCM/USB
some hardware that runs linux. You can get a PC, a RPi or a router with ddwrt. I tried all and RPi is what i currently use.

1. Get in the cli and install socat
Code:
sudo apt-get install socat
2. Connect the usb cable from the UCM/USB to the PC

3. Find the name of your FTDI usb driver using
Code:
dmesg | grep FTDI
On this case ttyUSB0 is the location, you should change to wharever you find.

4. run the command:
Code:
socat -v tcp-l:1001,reuseaddr,fork /dev/ttyUSB0,raw
You shoud have the PC listening on port 1001 and sending all packets to the serial connection. the -v option is to see the actual communication.

You can now connect for example the comfigurator prog and set up a connection setting the IP address of your PC and the port = 1001.

When you\'re done abort with ctrl+c

5. append to the end of the file /etc/rc.local (before \"exit 0\") the command so it will activte upon boot
Code:
/usr/bin/socat tcp-l:1001,reuseaddr,fork /dev/ttyUSB0,raw &

6. reboot the PC and you should be done. Confirm the command is woking by issuing a
Code:
ps -ef | grep socat

7. Connect your IOS App or comfigurator and have fun

Caveats:
IR learner doesn\'t work


Let me know if it works for you
Cab123