Posted: Monday Dec 23rd, 2013 09:12 am |
|
1st Post |
HenleyBranch
UCM Pi Users
Joined: | Saturday Apr 30th, 2011 |
Location: | United Kingdom |
Posts: | 75 |
Status: |
Offline
|
back to top
|
Hi
I have two home control systems running, one based on Comfort for security and security-related X10 control of lights, and another based on Perceptive Automation Indigo running on a Mac server as part of our home network of Macs, controlling iTunes library, multi-device iOS control of X10 lights, scene setting etc. Both very reliable independently.
My project for the next 12 month is to integrate them better. Currently I have some X10 connectivity between them, for example, an alarm in Comfort generates a alert email and iMessage using Applescript on Indigo, using an X10 on command as a trigger. This has proven less reliable than using X10 for lighting control for some reason, but was the only way a novice like myself could initially find to do this.
Both systems are sitting on the wired ethernet network of the house, so there must be a better way. I am aware for example, using Comfigurator, that flags are reported live to Comfigurator by Comfort, so Comfort must be 'broadcasting' the status of those flags over TCP/IP.
I therefore want to get Indigo to listen in. I have a plug in for Indigo, which does exactly that http://www.cynic.org/indigo/plugins/online/network.html but I am outside my comfort (no pun) zone here and am not sure what protocol information I would need to get this to work.
Has anyone any experience of making this kind of 'listening' to Comfort's TCP/IP traffic work?
Any tips, gratefully received.
HenleyLast edited on Monday Dec 23rd, 2013 09:14 am by HenleyBranch
|
Posted: Monday Dec 23rd, 2013 12:16 pm |
|
2nd Post |
Posted: Monday Dec 23rd, 2013 12:51 pm |
|
3rd Post |
HenleyBranch
UCM Pi Users
Joined: | Saturday Apr 30th, 2011 |
Location: | United Kingdom |
Posts: | 75 |
Status: |
Offline
|
back to top
|
Thanks ident, very helpful.
Please excuse my ignorance, but does Comfort by default 'broadcast' events such as alarms via TCP to devices 'listening' on the network?
Henley
|
Posted: Monday Dec 23rd, 2013 03:29 pm |
|
4th Post |
Home
Comfort Distributors
Joined: | Wednesday Jul 12th, 2006 |
Location: | United Kingdom |
Posts: | 771 |
Status: |
Offline
|
back to top
|
You will of course need a UNIVERSAL UCM with Eth03
|
Posted: Tuesday Dec 24th, 2013 02:30 am |
|
5th Post |
ident
Administrator
Joined: | Wednesday Aug 9th, 2006 |
Location: | Singapore |
Posts: | 3493 |
Status: |
Offline
|
back to top
|
Please excuse my ignorance, but does Comfort by default 'broadcast' events such as alarms via TCP to devices 'listening' on the network?
No, Comfort will not broadcast TCP
Your device must connect to UCM/ETH on the IP address and Port which is configured in DS Manager (for eth02) or )CS manager for ETH03)
This allows the device to "listen" to the messages sent by Comfort when a zone goes open and closed, alarm happen etc as descrbed in the Serial Protocol
You will of course need a UNIVERSAL UCM with Eth03
If the device is meant to communicate using the Comfort protocol, then you must use the UCM/ETHxx.
A Universal UCM must be used when 3rd party device communicates with Comfort using the devices protocol. The universal UCM can be programmed to send any message or string to another device
In your case, which seems to be software -based, the UCM/Eth03 seems to be more suitable since you should be able to program it to understand the comfort ptotocol
|
Posted: Tuesday Dec 24th, 2013 06:35 am |
|
6th Post |
HenleyBranch
UCM Pi Users
Joined: | Saturday Apr 30th, 2011 |
Location: | United Kingdom |
Posts: | 75 |
Status: |
Offline
|
back to top
|
Thanks Ident.
I am using UCM/ETH02 (I think - is there a way of telling without opening up the panel?)
Have followed instructions in serial protocol, and although I have established a connection on the correct IP and Port to Comfort I am struggling to get the responses from the UCM outlined in the protocol.
Hyperterminal mentioned is not part of Windows7. I am using ClearConnex ClearTerminal. I have set it up as per the instructions in the protocol but as a TCP connection. Do you have a recommended terminal product I should be using to test the connection / responses, and can you refer me to appropriate setup instructions?
|
Posted: Tuesday Dec 24th, 2013 08:11 am |
|
7th Post |
ident
Administrator
Joined: | Wednesday Aug 9th, 2006 |
Location: | Singapore |
Posts: | 3493 |
Status: |
Offline
|
back to top
|
I have downloaded ClearConnex to try itinary
In Connections, start a new connnection with the IP address and port of the UCM/ETH. For this purpose it does not matter whether you use ETH01 or ETH02
After connection you need to log in by sending the binary character 03 (which is the start of line character) followed by LI1234 assuming 1234 is your user code and return
The trick is in sending binary 03
You can define a Hotkey as I have done
/03 assign to F2 hotkey
Press the F2 key followed by LI1234 and Enter
This logs you in and you will see LU01
Now you can enter the commands in the serial protocol
eg
I?01 means Get Input 1 state
the reply is I?0100 means Input 1 is off
Remember to enter F2 before each line
|
Posted: Tuesday Dec 24th, 2013 09:08 am |
|
8th Post |
HenleyBranch
UCM Pi Users
Joined: | Saturday Apr 30th, 2011 |
Location: | United Kingdom |
Posts: | 75 |
Status: |
Offline
|
back to top
|
Thanks Ident. That worked!
Except I am not getting responses on separate lines. They are overtyping.
Presume something in settings.
|
Posted: Tuesday Dec 24th, 2013 03:46 pm |
|
9th Post |
HenleyBranch
UCM Pi Users
Joined: | Saturday Apr 30th, 2011 |
Location: | United Kingdom |
Posts: | 75 |
Status: |
Offline
|
back to top
|
Just a note to add, thanks so much for your help Ident.
Took me a while to work out no space between /03 and LI1234
I finally have Comfort talking to Indigo over Ethernet!
Brilliant! Endless notification, Applescript, iTunes, CCTV possibilities now...
Henley
|
Posted: Tuesday Dec 24th, 2013 04:57 pm |
|
10th Post |
Vangelis
Member
Joined: | Tuesday Jan 31st, 2012 |
Location: | |
Posts: | 138 |
Status: |
Offline
|
back to top
|
Hi Henley,
Following this thread with interest! Am planning to go down the Indigo route in the New Year (already have Comfort2).
Guess you can now use the Comfort sensor status (via the Indigo Plug-In) for the Indigo UI on say a tablet?
Probably want to pick your brains on some of your setup if that's ok?
Vangelis
|
Posted: Wednesday Dec 25th, 2013 12:58 am |
|
11th Post |
ident
Administrator
Joined: | Wednesday Aug 9th, 2006 |
Location: | Singapore |
Posts: | 3493 |
Status: |
Offline
|
back to top
|
Except I am not getting responses on separate lines. They are overtyping. Presume something in settings.
Settings > Other preferences >Convert CR to CR/LF
|
Posted: Saturday Apr 12th, 2014 03:39 pm |
|
12th Post |
Posted: Tuesday Feb 17th, 2015 03:23 am |
|
13th Post |
Vangelis
Member
Joined: | Tuesday Jan 31st, 2012 |
Location: | |
Posts: | 138 |
Status: |
Offline
|
back to top
|
OK so I am trying to emulate Henley's idea of having Comfort talk to my HA system through it's TCP connection, however I am not having much luck in getting Comfort to talk via the Serial Commands...
I have Comfort Ultra 2 with UCM/Eth2
Tried...
Comfigurator - this works and I can see the Serial cmds go back and forth in the viewer
Telnet to Eth2 IP port 1001 - Get connection but cannot see anything, no output is echoed to screen
Use ClearConnex - Not sure if I am using this correctly. I can establish a connection, however I am not sure where you type the cmds?? Either in the main window, or in the small window at the bottom?
Either way, I can see no output - have setup a hotkey for /03. The only output I get is when Comfort decides it's had enough and closes the connection and displays LU00 (even when I haven't typed in anything)
So not sure where I am going wrong as it all worked for Henley, when he added the magic /03 to his Lixxx cmd to login. Is there a time period when Comfort expect a cmd??
Can I just fire up the connection and enter /03LI1234 in the small window at the bottom of ClearConnex (where 1234 is my code)??
Vangelis
|
Posted: Tuesday Feb 17th, 2015 01:23 pm |
|
14th Post |
Vangelis
Member
Joined: | Tuesday Jan 31st, 2012 |
Location: | |
Posts: | 138 |
Status: |
Offline
|
back to top
|
I decided to have a look what my HA system thought of the cmds (Indigo) and in the logs I can see and unrecognised error to the string i send, in what looks like a different format...
\x03li1234
Not sure if it's getting hung up on the \ or / being sent or the fact each connection I try is sending the string in a different format
eg 03 or /03 or \x03 .....
Hopefully this will be a simple fix, but not seeing any output from Comfort is a little strange
Vangelis
|
Posted: Tuesday Feb 17th, 2015 03:15 pm |
|
15th Post |
slychiu
Administrator
Joined: | Saturday Apr 29th, 2006 |
Location: | Singapore |
Posts: | 5499 |
Status: |
Offline
|
back to top
|
If the UCM does not see the STX is 03 character then it will ignore the message
This is probably what you are missing
Look up the documentation on how to enter non ASCII characters
also it should be LI not li as the commands are case sensitive
|
Posted: Tuesday Feb 17th, 2015 03:44 pm |
|
16th Post |
Vangelis
Member
Joined: | Tuesday Jan 31st, 2012 |
Location: | |
Posts: | 138 |
Status: |
Offline
|
back to top
|
I am unable to see in the Serial Command Interface doc the section on 'entering non-ASCII characters'
Also (in the documentation) the setup for HyperTerm is for Serial connection as opposed to Telnet. I mention this as I suspect there is a subtle difference in 'Settings' that I need to perform.
When there is no echo back from Comfort, it is difficult to work out if what you are sending is correct or not
I have tried various iterations of cmd format...
/03LI1234
/03li1234
LI1234
\x03LI1234
/03
LI1234 ......
All of which do not seem to work
Vangelis
|
Posted: Tuesday Feb 17th, 2015 04:09 pm |
|
17th Post |
slychiu
Administrator
Joined: | Saturday Apr 29th, 2006 |
Location: | Singapore |
Posts: | 5499 |
Status: |
Offline
|
back to top
|
I mean the documentation for the terminal software you are using to enter the characters, not the Comfort protocol documentation
If you use Hyperterminal, you can enter 03 Hex by pressing <Control>C
It will appear as a Heart shape
The UCM Manual shows how to use Hyperterminal
|
Posted: Tuesday Feb 17th, 2015 05:44 pm |
|
18th Post |
Vangelis
Member
Joined: | Tuesday Jan 31st, 2012 |
Location: | |
Posts: | 138 |
Status: |
Offline
|
back to top
|
Thanks Slychiu - Will have another try when I am infront of my system.
Vangelis
|
Posted: Wednesday Feb 18th, 2015 08:20 pm |
|
19th Post |
Vangelis
Member
Joined: | Tuesday Jan 31st, 2012 |
Location: | |
Posts: | 138 |
Status: |
Offline
|
back to top
|
Update...
Using my Win XP machine I can carry out the following with success...
telnet to Comfort IP (port 1001) and issue Control+C followed by LI1234
I see the 'heart'+LU01 response
using Clear Terminal i can connect to Comfort IP (port 1001) and issue Control+C followed by LI1234
I see the LU01 (without 'heart' prefix)
all good so far, however, contrary to ident I have no success with ...
telnet to Comfort IP (port 1001) and issue /03LI1234
I see nothing
using Clear Terminal i can connect to Comfort IP (port 1001) and issue /03LI1234 (even using the HotKey Prefix)
I again see nothing
On my MacMini I also tried the telnet option but without any luck for either case (unsure what OSX thinks of the Control+C (^C) cmd)
So, I understand that the key mapping under osx might be different, however I do not understand why /03 prefix is not working with Telnet or Clear Terminal (the latter demonstrated by ident)
Running Comfort Ultra 2 (7.065)
UCM/Eth2 (7.061)
Any ideas? This is really frustrating as I know once the prefix works (/03) then the rest will be simple.
Unfortunately I don't think HenleyBranch is around as he is running the same setup as me and has this working...
Vangelis
|
Posted: Thursday Feb 19th, 2015 06:20 am |
|
20th Post |
slychiu
Administrator
Joined: | Saturday Apr 29th, 2006 |
Location: | Singapore |
Posts: | 5499 |
Status: |
Offline
|
back to top
|
I have downloaded Clear Terminal and the results are the same as what ident showed
Assign F2 Hotkey to /03 in Settings > Hotkeys
Connect to the IP address
You should see status connected
To log in press the F2 key then enter 1234 and Enter
Attachment: ClearTerm.jpg (Downloaded 47 times)
|
Current time is 02:14 pm | Page: 1 2 |
|