Comfort  Automation/ Security System Forums Home
Home Search search Menu menu Not logged in - Login | Register

Access your Comfort with a UCM/USB
 Moderated by: slychiu
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Tuesday Jan 15th, 2013 11:11 pm
   PM  Quote  Reply 
1st Post
cab123
Member
 

Joined: Saturday Oct 3rd, 2009
Location: Coimbra, Portugal
Posts: 25
Status: 
Offline

  back to top

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
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
dmesg | grep FTDI

On this case ttyUSB0 is the location, you should change to wharever you find.

4. run the command:
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
/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
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



 Current time is 12:23 pm
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems