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

Ethernet Connectivity to third party devices
 Moderated by: admin
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Thursday Apr 12th, 2012 06:15 am
   PM  Quote  Reply 
1st Post
garym999
Member


Joined: Saturday Aug 19th, 2006
Location: Oxford, United Kingdom
Posts: 214
Status: 
Offline

  back to top

With an incresing number of devices offering thier RS232 command set via IP control I think a relitivly simple change to Comforts Ethernet UCM could support quite a bit of kit.

I'm thinking of a new command something like:-

SENDIP <IPAddress> <Your command here>

If you want full two-way connectivity then perhaps that is where the UCM/Universal could step in.

While on the matter of Ethernet connectivity who else would like to see a lot more functionality offered here?

NTP time syncronisation, emailing on certain events, auto emailing of event logs, remote control via email. etc. etc.



 Posted: Thursday Apr 12th, 2012 06:28 am
   PM  Quote  Reply 
2nd Post
tech07
Administrator
 

Joined: Thursday Jan 29th, 2009
Location: Singapore
Posts: 106
Status: 
Offline

  back to top

it is interesting
Is there a list of useful standard commands that can be used?



 Posted: Thursday Apr 12th, 2012 08:13 am
   PM  Quote  Reply 
3rd Post
juwi_uk
Member


Joined: Friday May 25th, 2007
Location: Newbury, United Kingdom
Posts: 1255
Status: 
Offline

  back to top

I have created a comfortclient plugin that does this. Ingo wanted for something he's trying to control. It was only a few lines of code but linked to floorplan it could be useful maybe to people.

Julian



 Posted: Thursday Apr 12th, 2012 08:31 am
   PM  Quote  Reply 
4th Post
garym999
Member


Joined: Saturday Aug 19th, 2006
Location: Oxford, United Kingdom
Posts: 214
Status: 
Offline

  back to top

tech07 wrote:
it is interesting
Is there a list of useful standard commands that can be used?


If you take many of the recent TVs and AVRs they simply reapply thier serial command set to the Ethernet port such that 192.168.1.20 PWRON might turn on the TV.

So quite simple to implement

Last edited on Friday Apr 13th, 2012 06:21 am by garym999



 Posted: Friday Apr 13th, 2012 06:41 am
   PM  Quote  Reply 
5th Post
ident
Administrator


Joined: Wednesday Aug 9th, 2006
Location: Singapore
Posts: 3493
Status: 
Offline

  back to top

juwi_uk wrote: I have created a comfortclient plugin that does this. Ingo wanted for something he's trying to control. It was only a few lines of code but linked to floorplan it could be useful maybe to people.

Julian

The plug in does that through the PC and not the UCM/ethernet, right?



 Posted: Friday Apr 13th, 2012 06:58 am
   PM  Quote  Reply 
6th Post
juwi_uk
Member


Joined: Friday May 25th, 2007
Location: Newbury, United Kingdom
Posts: 1255
Status: 
Offline

  back to top

Correct



 Posted: Friday Apr 13th, 2012 07:38 am
   PM  Quote  Reply 
7th Post
admin
Administrator


Joined: Saturday Mar 3rd, 2007
Location: Singapore
Posts: 1200
Status: 
Offline

  back to top

garym999 wrote: With an incresing number of devices offering thier RS232 command set via IP control I think a relitivly simple change to Comforts Ethernet UCM could support quite a bit of kit.

I'm thinking of a new command something like:-

SENDIP <IPAddress> <Your command here>

If you want full two-way connectivity then perhaps that is where the UCM/Universal could step in.


It is already possible to do this with the UCM/Ethernet or UCM/Universal with Ethernet, although it is not well known.

Use DS Manager, select the device and click on Settings

Go to Channel1 Tab as shown in the screenshot

By default the Routing Mode is set to 0 - Server (Slave). This means that the UCM accepts connections from any IP address (or it can be limited to the IP address specified in "Accept Connections from "

Change the Routing Mode to 1 - Server or Client (Master) or 2 - Client (Master)

This allows the UCM to open an outgoing connection to a specified IP address.

Hence when you send commands to the UCM, it will be sent to the IP address specified.

The Transport Protocol can be UDP or TCP

Attachment: RoutingMode.jpg (Downloaded 107 times)

Last edited on Friday Apr 13th, 2012 07:40 am by admin



 Posted: Friday Apr 13th, 2012 07:40 am
   PM  Quote  Reply 
8th Post
admin
Administrator


Joined: Saturday Mar 3rd, 2007
Location: Singapore
Posts: 1200
Status: 
Offline

  back to top

Routing Mode defines whether the DS will accept incoming connections (passive opens) and/or establish outgoing connections (perform active opens):

0 (server)
Only incoming connections are accepted, the DS never attempts to establish an outgoing connection to the network host. There is no restriction on which network host can connect to the DS- connection from any IP-address will be accepted as long as the remote host is connecting to the correct Port Number (PN) using current Transport Protocol (TP) [setting/ parameter].

1 (server/client)
Both incoming and outgoing connections are allowed*. Outgoing connections are established with current Destination IP-address (DI) [setting/ parameter/ instruction] and current Destination Port (DP) [setting/ parameter/ instruction]. Exactly when the DS attempts to establish an outgoing connection is defined by the Connection Mode (CM) setting.

2 (client)
Only outgoing connections are allowed, the DS rejects all incoming connections. This is a newly implemented routing mode.
[size= ]

Current Routing Mode of the DS is changed to 0 (server) if the DS enters the  error mode(the value of the Routing Mode setting itself remains intact).

[size= ]

 

* Since the DS only allows for a single data connection at any given time this should be understood as "whichever comes first".



 Posted: Friday Apr 13th, 2012 10:58 am
   PM  Quote  Reply 
9th Post
Home
Comfort Distributors
 

Joined: Wednesday Jul 12th, 2006
Location: United Kingdom
Posts: 771
Status: 
Offline

  back to top

A point worth highlighting here is that garym999 product is DIN rail mounted.

So could be mounted in a small consumer unit or similar with access( I presume ) from the front panel e.g.no need to take covers etc off to access / see if it is working (presumably flashing LED's etc).



 Posted: Friday Apr 13th, 2012 12:54 pm
   PM  Quote  Reply 
10th Post
garym999
Member


Joined: Saturday Aug 19th, 2006
Location: Oxford, United Kingdom
Posts: 214
Status: 
Offline

  back to top

Admin, so if I understand this correctly using the method you've mentioned I can send plain/hex text to a single predefined IP address?

If so this is along the lines of what I'm thinking about but made more accessible within comfigurator such that you can specifiy the IP address and there by control multiple devices from one UCM/Ethernet

For example we have built an IP gateway to Philips Dynalite so to send a message to the gateway might look like this:

SENDIP UCMNo IPADDRESS:SOCKET DATA

SENDIP 1 192.168.1.10:1234 1C,0A,64,00,00,00,FF,77 (Area 10 Preset 1)

For a TV it might be

SENDIP 1 192.168.1.11 PWRON

For a Video matrix it might be
SENDIP 1 192.168.1.23 S1Z2 (Source 1 to Zone2)

Internally within the firmware there would also need to be some code to open and close the socket with the comms data in the middle.

It certainly opens up connectivity and automation



 Posted: Friday Apr 13th, 2012 01:17 pm
   PM  Quote  Reply 
11th Post
admin
Administrator


Joined: Saturday Mar 3rd, 2007
Location: Singapore
Posts: 1200
Status: 
Offline

  back to top

You are correct

The current product have one predefined connection

But the device may be able to programmed to open diffeernt connections.

This would be a new functionality for the Universal, if the R&D is agree to do it

 



 Posted: Friday Apr 13th, 2012 01:36 pm
   PM  Quote  Reply 
12th Post
garym999
Member


Joined: Saturday Aug 19th, 2006
Location: Oxford, United Kingdom
Posts: 214
Status: 
Offline

  back to top

Admin, your call, it is just a suggestion.

But I think it should be a command available to the UCM/Ethernet as well as the UCM/Universal. This gives Comfort one way control via UCM/Ethernet and possibly 2-way via the UUCM.

Of course that in turn involves new FW for the UCMs & Comfort + a support update for Comfigurator so I appreciate it is not an overnight request.

If you take a step back and look at your logic engine with this type of connectivity you are not far of from having a control system along the lines of ControlFX (Command Fusion), BitwiseControls, AMX etc.

Perhaps you should pole a selection of suggestions in order to prioritise them by need.



 Posted: Saturday Apr 14th, 2012 01:46 am
   PM  Quote  Reply 
13th Post
ident
Administrator


Joined: Wednesday Aug 9th, 2006
Location: Singapore
Posts: 3493
Status: 
Offline

  back to top

Yes that seems a good suggestion. We shall consider if this can be implemented for UCMs



 Posted: Tuesday Apr 17th, 2012 10:27 am
   PM  Quote  Reply 
14th Post
schford
UCM Pi Users
 

Joined: Wednesday Feb 25th, 2009
Location:  
Posts: 248
Status: 
Offline

  back to top

+1 vote from me!



 Posted: Tuesday Nov 19th, 2013 04:32 pm
   PM  Quote  Reply 
15th Post
Home
Comfort Distributors
 

Joined: Wednesday Jul 12th, 2006
Location: United Kingdom
Posts: 771
Status: 
Offline

  back to top

Has any progress been made on this topic. We have IP commands working to Loxone but cannot as yet get loxone talking to comfort.

I think this is certainly the way forward - an update of what is currently available and any examples or user experiances would always be useful.



 Posted: Wednesday Nov 20th, 2013 02:10 am
   PM  Quote  Reply 
16th Post
ident
Administrator


Joined: Wednesday Aug 9th, 2006
Location: Singapore
Posts: 3493
Status: 
Offline

  back to top

You can use Univeral UCM + ETHernet submodule to have 2 way communication to 3rd party products like Loxone. This is already available

Gary suggestion is for 1 universal UCM to be able to talk to different devices at the same time which is not available, but it is not necessary for your requirement which is to have 2 way communications with Loxone



 Current time is 06:11 pm
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems