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

Firmware Upgrading
 Moderated by: admin
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Saturday Jul 10th, 2010 08:04 am
   PM  Quote  Reply 
1st Post
juwi_uk
Advanced Member


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

  back to top


I did something today that gave me a scare for a few moments.

Upgrading to the latest 5.199 Ult firmware.

I setup programming cabling and started the firmware upgrade as usual in Comfigurator and it got to 5% upload and failed.  Tried again and it got to 10% and failed. Oh no I started to think. :(

Fortunately I wasnt totally asleep and noticed I had my ComfortClient open and connected.  

Shut that down and then the upgrdae went through fine as normal.

Now whilst I'd had the Client Open here it could have been Wizcomfort or anything else for that matter.

Shouldnt Comfigurator check for any current open sessions on the UCM before it starts to upload and if found politely request that they be closed first?

Regards

Julian

 

 



 Posted: Saturday Jul 10th, 2010 08:16 am
   PM  Quote  Reply 
2nd Post
ident
Administrator


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

  back to top

You are using UCM/Ethernet I presume. I dont think Comfigurator knows if there is another open session Does the Comfort client know about other open sessions on the UCM/Ethernet?



 Posted: Saturday Jul 10th, 2010 10:45 am
   PM  Quote  Reply 
3rd Post
Ingo
Advanced Member


Joined: Sunday Jan 21st, 2007
Location: South Africa
Posts: 265
Status: 
Online

  back to top

That might be more difficult than it seems. I think it needs to be a function of the Tibbo module to restrict any new TCP connection attempts when there is one already established.


I found the following explaining exactly why the upgrade failed. Sorry Julian, looks like we cannot check for existing connections.

TCP reconnects. When the data TCP connection between the DS and the network host is already established and another network host (with a different IP-address) attempts to connect to the data port of the DS this connection attempt is rejected (because the DS only allows for a single data connection at a time). However, if the second connection is attempted from the same IP-address (as the IP-address with which existing TCP connection is established) then the DS will "switchover" to this new connection. This means that the DS will forget the first connection and accept the second one. Such behavior is implemented to avoid DS stalling by hanged connection. Consider this scenario: the application on the network host has a TCP connection to the DS in progress. Suddenly, the application crashes- connection is left hanging because it wasn't properly terminated. When the application is relaunched it attempts to establish a TCP connection with the DS again. If the reconnect feature wasn't implemented the DS would have considered this to be an attempt to establish a second concurrent data connection and would have rejected it. Owing to reconnect feature the DS will recognise that this new connection attempt has originated from the same IP-address and switch over to this new connection. The downside of this arrangement is that two (or more) applications communicating with the DS from the same host can interfere with each other's connections- each new connection attempt will take over the existing one. 


Ingo

Last edited on Saturday Jul 10th, 2010 11:33 am by Ingo



 Posted: Sunday Jul 11th, 2010 09:36 am
   PM  Quote  Reply 
4th Post
juwi_uk
Advanced Member


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

  back to top

Oh, that's a shame.

Hey Chiu, what about he idea of bringing out a new Ethernet daughterboard based one one of the later Tibbo modules.  I see for example the EM1000 has 4 serial lines and support for WI-FI etc, not to mention bigger buffers and 100BaseT support.

The EM100 is feeling a bit dated now and some of the new Tibbo modules open up some great connectivity options.

Julian

 

 



 Posted: Sunday Jul 11th, 2010 10:19 am
   PM  Quote  Reply 
5th Post
juwi_uk
Advanced Member


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

  back to top

Incidentally I was using DS Manager.  It seems to know whether there is already a connection in progress.

I've attached an image which shows the 2 scenarios; one where nothing is connected and secondly when I have the ComfortClient open and connected to the UCM.

Must then be possible to poll this info somehow.

I'm presuming it's a UDP session or something that determines this?

Julian

Attachment: DSMan.png (Downloaded 51 times)

Last edited on Sunday Jul 11th, 2010 10:20 am by juwi_uk



 Posted: Tuesday Jul 13th, 2010 01:18 pm
   PM  Quote  Reply 
6th Post
slychiu
Administrator


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

  back to top

I dont know how they detemine the connection

We will be looking at some of the newer tibbo modules



 Current time is 05:28 am
Top




UltraBB 1.17 Copyright © 2007-2008 Data 1 Systems