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

Comfort on the Network
 Moderated by: admin Page:  First Page Previous Page  1  2   
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Thursday Feb 19th, 2015 01:21 pm
   PM  Quote  Reply 
21st Post
Vangelis
Member
 

Joined: Tuesday Jan 31st, 2012
Location:  
Posts: 138
Status: 
Offline

  back to top

Hmm strange - So are you now saying that to login with Clear Terminal you use /031234 (without the LI as opposed to /03LI1234)

What Win platform are you using?? (just want to discount it being a WinXP thing.

Another thing I have found out is that OSX uses Unicode (2byte), so as the iOS Comfort App works, am I correct in assuming that when logging in, the App uses the same format as above??

I just want to rule out differences between Windows and OSX

Thank you for the support so far :)

Vangelis



 Posted: Thursday Feb 19th, 2015 02:25 pm
   PM  Quote  Reply 
22nd Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5493
Status: 
Offline

  back to top

No, the command to log in is LI1234

You cannot type /03LI1234

The /03 is sent by the Hotkey


There is other options in Clear Terminal

Go to Tools > Send ASCII/BINARY and select Binary
Then click 03
Type LI1234 in the text box

Also go to View ? Select Display Mode and select Mixed to see the binary characters




 Posted: Thursday Feb 19th, 2015 03:01 pm
   PM  Quote  Reply 
23rd Post
Vangelis
Member
 

Joined: Tuesday Jan 31st, 2012
Location:  
Posts: 138
Status: 
Offline

  back to top

Thanks Slychiu

So what's the difference between pressing the HotKey to send /03 followed by me typing LI1234 and just typing /03LI1234 (without pressing the Hotkey) ?? Or am I confused?

Vangelis



 Posted: Thursday Feb 19th, 2015 03:40 pm
   PM  Quote  Reply 
24th Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5493
Status: 
Offline

  back to top

In the 1st case the hotkey sends the hexadecimal character 03
In the 2nd case it is sending the ascii characters /03LI1234 which is not correct



 Posted: Thursday Feb 19th, 2015 03:48 pm
   PM  Quote  Reply 
25th Post
Vangelis
Member
 

Joined: Tuesday Jan 31st, 2012
Location:  
Posts: 138
Status: 
Offline

  back to top

Ahh - Got you now. I will try this out again when in front of my system.

Thanks..

Vangelis



 Posted: Thursday Feb 19th, 2015 03:53 pm
   PM  Quote  Reply 
26th Post
Vangelis
Member
 

Joined: Tuesday Jan 31st, 2012
Location:  
Posts: 138
Status: 
Offline

  back to top

btw does the iPhone app send the text to Comfort in this way??

ie Hex 03 and Dec LI1234

Vangelis



 Posted: Thursday Feb 19th, 2015 04:31 pm
   PM  Quote  Reply 
27th Post
slychiu
Administrator


Joined: Saturday Apr 29th, 2006
Location: Singapore
Posts: 5493
Status: 
Offline

  back to top

Yes, the same way



 Posted: Sunday Mar 8th, 2015 01:06 pm
   PM  Quote  Reply 
28th Post
HenleyBranch
UCM Pi Users
 

Joined: Saturday Apr 30th, 2011
Location: United Kingdom
Posts: 75
Status: 
Offline

  back to top

OK, Vangelis, just to share your pain, apologies for my absence. Please do not think I have been enjoying Comfort Indigo connectivity nirvana, I just struggle to fit trouble-shooting this issue around the day job! Thanks Chiu, Ident, for the tips.

I 'nearly' have this working. I manage to make a 'read-only' connection to Comfort which allows Indigo to listen to the codes and react to them. This works really well as it allows things like the IP control of a Denon amp (welcome home with playlist - potentially by user), CCTV (when outside sensors detect motion - message a snapshot of cameras to iPhones), connectivity to Netatmo, sending iOS notifications of Comfort events etc. etc. When it works it is great.

However, how I am making this connection is not quite right, and it may persist for a day, or a week, or even several weeks, but then it drops and won't restart without a precise sequence of events. This has puzzled me for months.

I think this is because whilst I am able to get Indigo to make a persistent secure connection to Comfort, I am unable to get Indigo to send text in the correct format to Comfort. I think it is to do with this /03 character.

Initially I thought I had it all licked, but I have realised, I think it has been my sequence using ClearConnect which just happens to work, but which I have been unable to figure out how to solve a sustained connection, using Indigo. I'll explain my current connection sequence.

Using Indigo http://www.indigodomo.com on the Mac, I have used the Network plugin to create a connection to Indigo. This connects, persists, and actually locks out other connections such as Configurator.

Initially, I thought that LI1234 /03 was the correct sequence, following earlier comments in this thread last year with Ident.

However what I have realised, I think, is that I am not successfully managing to get the Indigo Network plug in to send any text which Comfort is recognising. What is actually happening is that I have been logging in with Clear Connex and then using that connection in to Indigo. I’ll explain.

If I establish the connection using the Network plugin http://www.cynic.org/indigo/plugins/online/network.html, I am unable to get any response from Comfort or even log in whatever combination of /03LI1234 or /LI 1234 or 1234 /LI.

If, however, I disconnect indigo from Comfort, then form a connection with Clear Connex as described in Chui’s post above, then close that connection in Clear Connex without logging out, then re-enable the connection in Indigo to Comfort, suddenly Indigo is listening to all the TCP traffic and can respond in the ways I describe above.

I think this is what I have been doing as it explains why I have had such an ‘unreliable’ connection since first trying this a year ago. The connection fails, I go back through, test in Clear Connex, and then find it actually works again, but it may actually be Clear Connex establishing the connection, not the Indigo network plug in.

I have established a TCP connection between Indigo and Comfort.
I have got Indigo listening to TCP traffic (albeit inadvertently using the method I describe above).

I have not got Indigo to be able to send to Comfort.

I appreciate this is not to do with Comfort directly, and is a pretty niche issue, but any assistance in getting this last step working would be great for myself, Vangelis and anyone else thinking of connecting Comfort to a Mac home server.

Last edited on Sunday Mar 8th, 2015 01:29 pm by HenleyBranch



 Posted: Monday Mar 9th, 2015 02:20 am
   PM  Quote  Reply 
29th Post
HenleyBranch
UCM Pi Users
 

Joined: Saturday Apr 30th, 2011
Location: United Kingdom
Posts: 75
Status: 
Offline

  back to top

SOLVED!

Having looked into this today, discovered the answer is \x03 preceding each command! Ensure Carriage Return is the line format.

It was actually answered on a post I made some time ago on the Indigo forums that I hadn't seen...

http://forums.indigodomo.com/viewtopic.php?f=25&t=11273

So to send the login command, it is \x03LIxxxx, where xxxx is your Comfort user code.

Other commands also return two-way communication via TCP. All good.



 Posted: Monday Mar 9th, 2015 03:24 pm
   PM  Quote  Reply 
30th Post
Vangelis
Member
 

Joined: Tuesday Jan 31st, 2012
Location:  
Posts: 138
Status: 
Offline

  back to top

Hey HB - Weirdly I went through the same thing you did before I got it solved.

I would telnet to Comfort on my Win7 machine and issue Ctrl-C with LI1234 and it would login, then I would close this connection and have Indigo connect to Comfort via Network Plugin and it would see output (but with x03 prefixes). This put me on track for solving the issue (as you did)

So I now have an action that executes the Device Network Plugin with Comforts IP and waits for 'Connect to be True'. I then issue x03LI1234 to login

I check for a Disconnect (as Comfort will time out the connection eventually) and then auto-connect. This can be solved by changing the value in DS Client on Comfort (so connection doesn't time out - just not got round to it yet)

Vangelis

Last edited on Monday Mar 9th, 2015 03:27 pm by Vangelis



 Posted: Monday Mar 9th, 2015 04:50 pm
   PM  Quote  Reply 
31st Post
Ingo
UCM Pi Users


Joined: Sunday Jan 21st, 2007
Location: South Africa
Posts: 557
Status: 
Offline

  back to top

Maybe a safer option is to write some sort of 'keepalive routine' that sends 0x00 every 60s so that the connection doesn't timeout. Changing the DS timeout to 'never' runs the risk if the connection ever freezes then you need to reboot the UCM to recover. By sending the 0x00 you can keep it open and if it freezes then Comfort will drop the connection so you can reconnect again.

Ingo



 Posted: Monday Mar 9th, 2015 05:23 pm
   PM  Quote  Reply 
32nd Post
Vangelis
Member
 

Joined: Tuesday Jan 31st, 2012
Location:  
Posts: 138
Status: 
Offline

  back to top

Thanks Ingo - I can then check for the Disconnect and fire an alert

Vangelis



 Current time is 02:14 pmPage:  First Page Previous Page  1  2   
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems