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

Receiving a TCP message in Comfort
 Moderated by: admin
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Tuesday May 14th, 2013 02:47 pm
   PM  Quote  Reply 
1st Post
Somersetdude
Member
 

Joined: Tuesday May 14th, 2013
Location:  
Posts: 13
Status: 
Offline

  back to top

Hi All - I'm new to comfort and have a question which i hope someone maybe able to answer.
I have a new Comfort Ultra with UCN06+Ethernet and the UCM Universal card.

What i would like to do is send Comport a TCP message from my network camera to turn a light on when it detects motion.

My interface on comfort is 192.168.0.125 on port 1001.

I cant quite see if its possible to send a string to this port and how Comfort and listen and respond to the message.

Any examples of the format to send would be good...

Thanks
Martin



 Posted: Tuesday May 14th, 2013 07:50 pm
   PM  Quote  Reply 
2nd Post
wexfordman
UCM Pi Users
 

Joined: Monday Jan 1st, 2007
Location: Cork, Ireland
Posts: 519
Status: 
Offline

  back to top

I've sort of done that, but using the alarm relay on the camera/dvr. Nice thing about it is if you use a dvr, then you can be a lot more specific about where the motion is detected.



 Posted: Tuesday May 14th, 2013 08:18 pm
   PM  Quote  Reply 
3rd Post
Somersetdude
Member
 

Joined: Tuesday May 14th, 2013
Location:  
Posts: 13
Status: 
Offline

  back to top

Hi, Yes i could but id like to try and use the network if possible

My camera has different motion detection windows so i would like to send TCP commnds.

I have the UCM to ethernet interface, do i need another ethernet interface if i have the Universal UCM?

If so this may be my first problem



 Posted: Wednesday May 15th, 2013 05:46 am
   PM  Quote  Reply 
4th Post
ident
Administrator


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

  back to top

The UCM/ETH02 (UCM06+ ETH02) communicates using the Comfort protocol
So you can send messages to Comfort by this UCM if the commands are Comfort commands

If you need to send a message according to any other protocol then you need the UCM/Universal + ETH02

UCM/Universal does not come with any interface. When you buy you can add RS232, RS485 or ETH02, so if you have the ETH02 on top of the UCM/Universal then you can send message to that



 Posted: Friday May 17th, 2013 02:51 pm
   PM  Quote  Reply 
5th Post
Somersetdude
Member
 

Joined: Tuesday May 14th, 2013
Location:  
Posts: 13
Status: 
Offline

  back to top

Hi Ident

Thanks i now have the Universal UCM with an Eth02 piggy back.
I have configured it to an IP and port 192.168.0.126 : 1020.

Can you give me a little guidance to see if my network camera can talk to confort.

It is a Mobotix M12 camera cable of sending IP notifications via raw TCP/IP plain text.
Do you think Comfort would be able to learn a string sent to it?
Can you give me an example of what format i should send this in please?

I've had a go but dont seem to able to see anything if i click monitor - do i somehow need to make my camera login?

Could i include the login in the text i send to comfort?

Thanks in advance
Martin



 Posted: Saturday May 18th, 2013 02:26 am
   PM  Quote  Reply 
6th Post
ident
Administrator


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

  back to top

In server mode, the ETH02 is able to receive messages sent to its IP address/Port. This means your camera must send its notifications to the ETH02 IP addresses

In Client Mode, the ETH02 sends and accepts messages from a server at another IP address. You have to enter the server IP address/port at this mode

So it depends on how the camera works, please check the instructions of the camera




 Posted: Saturday May 18th, 2013 06:08 am
   PM  Quote  Reply 
7th Post
HenleyBranch
Member
 

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

  back to top

Ident

Sorry slight hijack to this thread, but I too am interested in getting Comfort to communicate with other devices on my network.

I have a couple of questions: how do I identify if I have EHT01 or ETH02 installed? Is this possible to tell through Comfigurator? It says UCM type 10 with Firmware 7.008 under System Information.

Is there any guidance on how to set up as client to get comfort to send and receive messages to / from an IP address?

Thanks

Henley



 Posted: Saturday May 18th, 2013 07:08 am
   PM  Quote  Reply 
8th Post
ident
Administrator


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

  back to top

ETH01 and ETH02 are the submodules that are plugged onto the base UCM06

UCM/ETH02 looks like below


see http://www.comfortforums.com/forum113/2602.html on the forum

ETH01 has an orange module as shown below


To set the Routing Mode, open DS Manager in Options > Settings UCM Comunications after selecting Network




The routing mode is Server (slave) for normal operations where any client needs to communicate with the UCM by addressing the message to the UCM IP address/port
This is the mode used in normal UCM/ETH02 where the PC is the client and UCM/Eth02 is a server

Client Mode is where the UCM only talks with another device (server) by their IP  address/port.  In case of Client Mode, a Destination IP address and Port is specified. This is  often used when communicating with other devices


For example if the UCM/Universal were to communicate with another Comfort's UCM/ETH02, the Universal's DS Manager settings would be as Client and the other systems IP/address and port




 Posted: Saturday May 18th, 2013 09:29 am
   PM  Quote  Reply 
9th Post
Somersetdude
Member
 

Joined: Tuesday May 14th, 2013
Location:  
Posts: 13
Status: 
Offline

  back to top

Ok thanks I'll give that a whirl and try again.
The Axis P8221 is my other option, I can send it a http cgi command to set outputs which I could connect to comforts inputs to trigger a response.

I'm hoping that comfort can do similar without the need for the Axis box.

Cheers



 Posted: Sunday May 19th, 2013 07:38 am
   PM  Quote  Reply 
10th Post
Somersetdude
Member
 

Joined: Tuesday May 14th, 2013
Location:  
Posts: 13
Status: 
Offline

  back to top

Hi Ident

I tried a few different settings and the camera is definately sending a message to the correct port on on the universal ucm, the camera tells me the messsage was successfully sent and if i change the port the number to something randam the message fails, so somethings getting through somewhere.however I'm not seeing anything in the ucm monitor or if I click learn.
Comfiguratornucm is 192.168.0.125:1001
Universal ucm is on 192.168.0.126:1020

The camera is just sending a message 'motion' but I tried other things like decimal and nothing appears in the monitor. I'm assuming that the monitor will display mall received messages ? Do I need to send like LI1234 to get things accepted first?

Sorry for all the questions I'm just hoping comfort will operate in this way.
As I said before I can use an Axis communication P8221 which will accept a http request from the camera and set one of its ports high to trigger a response in comfort but I really wanted a direct comfort solution.

Cheers



 Posted: Monday May 20th, 2013 06:20 am
   PM  Quote  Reply 
11th Post
ident
Administrator


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

  back to top

There should be no problem for the Universal UCM to accept the message

We need to know all your settings on DS Manager and Universal UCM so we can see what you have done wrong



 Posted: Monday May 20th, 2013 07:11 am
   PM  Quote  Reply 
12th Post
Somersetdude
Member
 

Joined: Tuesday May 14th, 2013
Location:  
Posts: 13
Status: 
Offline

  back to top

1st image

Attachment: Capture4.JPG (Downloaded 60 times)



 Posted: Monday May 20th, 2013 07:11 am
   PM  Quote  Reply 
13th Post
Somersetdude
Member
 

Joined: Tuesday May 14th, 2013
Location:  
Posts: 13
Status: 
Offline

  back to top

2nd image

Attachment: Capture2.JPG (Downloaded 60 times)



 Posted: Monday May 20th, 2013 07:12 am
   PM  Quote  Reply 
14th Post
Somersetdude
Member
 

Joined: Tuesday May 14th, 2013
Location:  
Posts: 13
Status: 
Offline

  back to top

3rd image

Attachment: Capture2.JPG (Downloaded 59 times)



 Posted: Monday May 20th, 2013 07:14 am
   PM  Quote  Reply 
15th Post
Somersetdude
Member
 

Joined: Tuesday May 14th, 2013
Location:  
Posts: 13
Status: 
Offline

  back to top

last image.

The only thing ive changed is the baud rate the max setting that matches is 38400 but ive tried it at others also.

Thanks

Attachment: Capture1.JPG (Downloaded 60 times)



 Posted: Monday May 20th, 2013 12:42 pm
   PM  Quote  Reply 
16th Post
HeFeng
Cytech


Joined: Saturday Dec 11th, 2010
Location:  
Posts: 29
Status: 
Offline

  back to top

Hi,Somersetdude, see your UCM02 setting,you use header byte 03, I think you didn't send 03 to the Universal UCM , so you can't see anything,now change header bytes to be 0(means no header) and see any difference...
by the way, Eth02 plugged on the general UCM and universal UCM with different firmware, on general UCM, use cytech3_13.bin, on Universal UCM , use CytechUni3_13.bin...



 Posted: Monday May 20th, 2013 12:51 pm
   PM  Quote  Reply 
17th Post
Somersetdude
Member
 

Joined: Tuesday May 14th, 2013
Location:  
Posts: 13
Status: 
Offline

  back to top

Ok cheers, i'll try that. I'm not back until later tonight to test.
I updated the firmwares at the weekend as per your information,

Thanks



 Posted: Monday May 20th, 2013 06:01 pm
   PM  Quote  Reply 
18th Post
Somersetdude
Member
 

Joined: Tuesday May 14th, 2013
Location:  
Posts: 13
Status: 
Offline

  back to top

Tried changing the header to 0 but no change still not seeing anything.....



 Posted: Monday May 20th, 2013 08:57 pm
   PM  Quote  Reply 
19th Post
Somersetdude
Member
 

Joined: Tuesday May 14th, 2013
Location:  
Posts: 13
Status: 
Offline

  back to top

All working now!!!

Doh - jumper setting to add eth02 board...

Lots to do - now have cameras talking to comfort via TCP yippee.



 Current time is 06:21 am
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems