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

ComfortServer 0.1
 Moderated by: slychiu Page:    1  2  Next Page Last Page  
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Tuesday Jul 21st, 2009 06:47 am
   PM  Quote  Reply 
1st Post
cgiltrow
Member
 

Joined: Monday Jun 12th, 2006
Location: Johannesburg, South Africa
Posts: 104
Status: 
Offline

  back to top

I mentioned that I have a ComfortServer that allows multiple connections to Comfort through one UCM/Ethernet connection.  I have wanted to do more development on it before making it available, but I am just not finding the time.  A couple people have expressed interest in it so I have decided to make it available as it currently is and I will publish updates in due course.  It does work, but it is not perfect and does not have all the functionality I would like it to have.  I make no warranties.  Use at your own risk.

It operates at the sockets level and simply passes any commands it gets from any client through to Comfort as it was sent by the client and sends any message it gets from Comfort to all the clients that are connected.  The server does not do a logon, so the (first) client should pass a logon through to Comfort for all the clients to be logged on and once any client logs off all the clients will be logged off.  (This is one of the elements I would like to develop further).


The server installs as a windows service and uses a configuration file. Goto the install directory and look for comfortserver.exe.config and find the following section:
<ComfortServer.My.MySettings>
<setting name="ComfortAddress" serializeAs="String">
<value>giltrow.dyndns.org</value>
</setting>
<setting name="ComfortPort" serializeAs="String">
<value>1001</value>
</setting>
<setting name="ServerPort" serializeAs="String">
<value>30000</value>
</setting>


ComfortAddress and ComfortPort is the internet (IP) address and port number of your Comfort system that the server will connect to - The same as you would enter into the ComfortClient. Change this to your Comfort address.


ServerPort is the port number that the server will serve on. The IP address will be the IP address of the computer that you install the server onto. Your clients will then connect to the IP number of the computer and the ServerPort.
The server creates its own log called ComfortServerLog in the windows system log and can viewed through the event viewer.


Let me know how it goes.

Cheers,
Clinton.


 

 

Attachment: ComfortServerSetup.zip (Downloaded 57 times)



 Posted: Tuesday Jul 21st, 2009 08:03 am
   PM  Quote  Reply 
2nd Post
slychiu
Administrator


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

  back to top

Thats interesting but I am not sure I understand how things are connected

If you have several users running Comfort Client, you have 1 UCM/Ethernet connected to a PC running Comfort Server? Is this the correct interpretation?



 Posted: Tuesday Jul 21st, 2009 09:58 am
   PM  Quote  Reply 
3rd Post
cgiltrow
Member
 

Joined: Monday Jun 12th, 2006
Location: Johannesburg, South Africa
Posts: 104
Status: 
Offline

  back to top

Thats right, You would have one PC running ComfortServer and then a number of PCs running ComfortClient.  The ComfortServer connects to Comfort and the ComfortClients connect to the ComfortServer.  Obviously you could all of this running on one PC as well,  the ComfortServer connects to Comfort and the multiple instances of the ComfortClient connect to the ComfortServer.  Hope that helps.



 Posted: Wednesday Jul 22nd, 2009 04:53 am
   PM  Quote  Reply 
4th Post
palmlodge
Advanced Member
 

Joined: Thursday Dec 14th, 2006
Location: United Kingdom
Posts: 476
Status: 
Offline

  back to top

For those who cannot get it to run, issue this command at a command prompt (assuming the same path)

C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\installutil.exe "c:\program files\comfortserversetup\comfortserver.exe"

Then run services.msc and tell the service to start



 Posted: Wednesday Jul 22nd, 2009 01:29 pm
   PM  Quote  Reply 
5th Post
cgiltrow
Member
 

Joined: Monday Jun 12th, 2006
Location: Johannesburg, South Africa
Posts: 104
Status: 
Offline

  back to top

You can also start (and stop) the service in the Computer Management tool (right click Computer select manage) under Services or in the Administration Tools in the control Panel under Services.



 Posted: Thursday Jul 23rd, 2009 02:24 pm
   PM  Quote  Reply 
6th Post
palmlodge
Advanced Member
 

Joined: Thursday Dec 14th, 2006
Location: United Kingdom
Posts: 476
Status: 
Offline

  back to top

Didn't I just say that ? :-)

cgiltrow wrote:
You can also start (and stop) the service in the Computer Management tool (right click Computer select manage) under Services or in the Administration Tools in the control Panel under Services.



 Posted: Thursday Aug 27th, 2009 08:33 am
   PM  Quote  Reply 
7th Post
fatal_99
Member
 

Joined: Saturday Aug 16th, 2008
Location:  
Posts: 4
Status: 
Offline

  back to top

Hi Clinton,

I keep getting this error when the Comfort Server loads...

This appears in the event log.

Comfort Connection Exception: System.Net.Sockets.SocketException: The system detected an invalid pointer address in attempting to use a pointer argument in a call 218.186.97.110:1001
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at ComfortServer.ComfortServer.ConnectComfort()

I have checked and no other software is connected to the UCM at the above IP address and port number. I have tried changing the port number and ip address but the same error occurs.

I am using Windows XP.

Last edited on Thursday Aug 27th, 2009 08:34 am by fatal_99



 Posted: Friday Aug 28th, 2009 06:44 am
   PM  Quote  Reply 
8th Post
cgiltrow
Member
 

Joined: Monday Jun 12th, 2006
Location: Johannesburg, South Africa
Posts: 104
Status: 
Offline

  back to top

Hey fatal,

There should be an entry just before and just after this entry.  Can you let me know what they are?

Have you tried to use ComfortClient or WizComfort to connect from the same machine that you are running the service on to Comfort using the same ip and port numbers as in the config file?  Does this work?

Check the version of .net framework that you have loaded.  I will confirm which in necessary.

Clinton.



 Posted: Saturday Aug 29th, 2009 11:46 am
   PM  Quote  Reply 
9th Post
fatal_99
Member
 

Joined: Saturday Aug 16th, 2008
Location:  
Posts: 4
Status: 
Offline

  back to top

Yes, I have tested using Wizcomfort and it connects fine with the same IP and port number. I have .Net 2.0 and .Net 3.0 installed.

Here are the logs

1. The ComfortServer has been started

2. The ComfortServer is starting

3. Client: Resolving local machine information

4. Client: Creating Socket

5. Client: Binding Socket

6. Client: Starting Listen

7. Server::1:30000Started Listening on30000

8. Client: Socket setup, starting Asynchronous accepts

9. Comfort Connection Exception: System.Net.Sockets.SocketException: The system detected an invalid pointer address in attempting to use a pointer argument in a call 218.186.97.110:1001
   at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)
   at ComfortServer.ComfortServer.ConnectComfort()



Last edited on Saturday Aug 29th, 2009 11:47 am by fatal_99



 Posted: Tuesday Sep 1st, 2009 03:26 am
   PM  Quote  Reply 
10th Post
cgiltrow
Member
 

Joined: Monday Jun 12th, 2006
Location: Johannesburg, South Africa
Posts: 104
Status: 
Offline

  back to top

Hi,

It is definitely getting stuck trying to connect to Comfort.  I have tried to replicate the problem but don't get the same error even when I have created a problem.  I can't confirm whether .net 3.5 is necessary as my Visual Studio environment is not up at the moment, but I suspect this may be the problem.  Can I recommend trying to install .net 3.5 and seeing what happens?

One other last check. please confirm that you UCM/Ethernet is serving on port 1001 and not 10001.

Clinton.



 Posted: Wednesday Sep 2nd, 2009 09:54 am
   PM  Quote  Reply 
11th Post
fatal_99
Member
 

Joined: Saturday Aug 16th, 2008
Location:  
Posts: 4
Status: 
Offline

  back to top

I have tried downloading .NET 3.5, but it did not help.

Yes, I am connecting to port 1001, and not 10001.



 Posted: Friday Sep 4th, 2009 05:25 am
   PM  Quote  Reply 
12th Post
cgiltrow
Member
 

Joined: Monday Jun 12th, 2006
Location: Johannesburg, South Africa
Posts: 104
Status: 
Offline

  back to top

Can you PM me your comfortserver.exe.config file?



 Posted: Wednesday Apr 14th, 2010 09:04 pm
   PM  Quote  Reply 
13th Post
Patrick
Member
 

Joined: Wednesday Feb 21st, 2007
Location: Sibu, Sarawak, Malaysia
Posts: 37
Status: 
Offline

  back to top

Can I have your latest comfortserver for testing?  Thank you.



 Posted: Monday Apr 19th, 2010 04:36 am
   PM  Quote  Reply 
14th Post
cgiltrow
Member
 

Joined: Monday Jun 12th, 2006
Location: Johannesburg, South Africa
Posts: 104
Status: 
Offline

  back to top

The application at the top of this thread is the latest.  I am in the process of doing more work on it, but that will take a while still.



 Posted: Wednesday Apr 21st, 2010 03:43 am
   PM  Quote  Reply 
15th Post
Patrick
Member
 

Joined: Wednesday Feb 21st, 2007
Location: Sibu, Sarawak, Malaysia
Posts: 37
Status: 
Offline

  back to top

Can I update Comfort date & time automatically thru ComfortClient or ComfortServer?



 Posted: Wednesday Apr 21st, 2010 04:15 am
   PM  Quote  Reply 
16th Post
juwi_uk
Advanced Member


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

  back to top

Hi Patrick

You will be able to update date/time in the next version of the client as building that in.

Julian

 

 



 Posted: Wednesday Apr 21st, 2010 05:32 am
   PM  Quote  Reply 
17th Post
Patrick
Member
 

Joined: Wednesday Feb 21st, 2007
Location: Sibu, Sarawak, Malaysia
Posts: 37
Status: 
Offline

  back to top

That's great!

Can it automatically update Comfort date & time at predefined time?



 Posted: Wednesday Apr 21st, 2010 11:27 pm
   PM  Quote  Reply 
18th Post
Patrick
Member
 

Joined: Wednesday Feb 21st, 2007
Location: Sibu, Sarawak, Malaysia
Posts: 37
Status: 
Offline

  back to top

Hi Julian,

How can I connect ComfortClient to ComfortServer? What are the settings that I need to change in both software?

Patrick



 Posted: Friday Apr 23rd, 2010 03:17 pm
   PM  Quote  Reply 
19th Post
juwi_uk
Advanced Member


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

  back to top

Hi Patrick,

Not sure as I've not setup myself.  Clinton is best placed to comment here.

Regards

Julian

 

 



 Posted: Sunday May 2nd, 2010 02:12 am
   PM  Quote  Reply 
20th Post
Patrick
Member
 

Joined: Wednesday Feb 21st, 2007
Location: Sibu, Sarawak, Malaysia
Posts: 37
Status: 
Offline

  back to top

Hi Clinton,

I have tried many times but still cannot make ComfortClient to work with ComfortServer.  Please tell me the steps of how can I connect ComfortClient to ComfortServer? What are the settings that I need to change in both software?  Thanks in advance.

Patrick



 Current time is 08:22 amPage:    1  2  Next Page Last Page  
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems