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

UCM/Eth
 Moderated by: admin
 New Topic   Reply   Printer Friendly 
 Rate Topic 
AuthorPost
 Posted: Sunday Jan 29th, 2012 03:35 pm
   PM  Quote  Reply 
1st Post
juwi_uk
Member


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

  back to top

Hi

I upgraded my Eth02 recently to the version on the Cytech website (cytech_nowifi_3_10.bin). All seemed OK but then I've spent a few hours debugging the client code as I was getting disconnections on logout.

It would seem now that on a logout, once the LU00 is received there is also some another empty datbuffer sent. At least the ComfortClient erors with an empty databuffer message and disconnects from the UCM.

Originally I thought it was my code (and it could be I need to code against this), but the previous Eth02 firmware worked OK (think 3.02 was one before?). The Eth01 on my testrig also works fine. I couldn't find the previous firmware on the forum to revert back too (and i forgot to save on my PC) so I downloaded the latest version from the Tibbo site, loaded that and tested and that works perfectly too.

So it would seem something strange is going on with the Cytech enhanced one?

Anyone got a copy of the Cytech Eth02 firmware before this latest one so I can test and confirm?

Cytech,any ideas what you've changed in this latest version that could be causing this scenario? One or both of us may need to fix something here in our respective codes as a result. I fear this may be due to an enhancement maybe you've put in place for the iPhone App?

By default I set the UCM with a zero timeout.

Regards

Julian



 Posted: Monday Jan 30th, 2012 09:39 am
   PM  Quote  Reply 
2nd Post
juwi_uk
Member


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

  back to top

Update: I reinstalled the "cytech_nowifi_3_10.bin" firmware again on the Eth02 and now all seems OK. Confused! :?

I'll monitor it.

Julian



 Posted: Monday Jan 30th, 2012 11:36 am
   PM  Quote  Reply 
3rd Post
ident
Administrator


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

  back to top

Julian
A feature of both 3.02 and 3.10 is that when there is a log out, the ethernet also disconnects. This is so that the iphone app and other ethernet applications do not hog  the connection when they are logged out
I am not sure if this is what you mean by the empty databuffer message? Can you elaborate?
The 3.02 applicatioon EM500 firmware is attached

Attachment: cytech_application-3_02.zip (Downloaded 5 times)



 Posted: Monday Jan 30th, 2012 11:37 am
   PM  Quote  Reply 
4th Post
ident
Administrator


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

  back to top

3.10 sets the correct default settings on the Tibbo module so that when you initialise, the settings like In band commands, serial settings etc are correct and you do not need to set again




 Posted: Wednesday Feb 1st, 2012 08:10 am
   PM  Quote  Reply 
5th Post
juwi_uk
Member


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

  back to top

OK, in the current dev builds of ComfortClient then for Eth02 it will also disconnect on logout if that is the hardcoded functionality in the firmware. It should be noted though that Eth01 and Eth02 operate differently now then as the ETh01 doesnt disconnect.

It would have been nice if this could have taken it's setting from the tibbo settings somehow rather than be hard coded.

By empty buffer I mean that on an async read from the TCP port I expect back >0 bytes of data in normal operation. Zero bytes returned is normally an error situation but you also get if the remote host shuts down the connection according to the web. It's how to spot which scenario being encountered. For the moment if zero bytes are returned from a read then i'll assume the UI needs to represent a disconnected state.

Julian



 Current time is 01:32 am
Top




UltraBB 1.172 Copyright © 2007-2014 Data 1 Systems