The UK Home Automation Archive

Archive Home
Group Home
Search Archive


Advanced Search

The UKHA-ARCHIVE IS CEASING OPERATIONS 31 DEC 2024


[Message Prev][Message Next][Thread Prev][Thread Next][Message Index][Thread Index]

Re: Heartbeat Interval Format


  • Subject: Re: Heartbeat Interval Format
  • From: Frank Mc Alinden
  • Date: Sun, 21 Mar 2004 11:34:00 +0000

Hi Ian

> Parsing an xpl message on a small chip, If you jump to byte 5, that
> single character (S, T or C) tells you the message class - byte 25 is
> always the start of the message source.. and so on.
>
> There are a whole bunch of fast navigation shortcuts in the message to
> save parsing the whole thing - when you have figured out it's a
> heartbeat, and you read a "{" after byte 10 that's the start
of the
> message body, and you can jump ahead a known number of bytes to get
the
> interval and so on.

Actually i check ALL characters received against my parser table .....The
message parsing section takes up almost the first 2k of program
memory....Decoding a 2 digit parameter looking for upper limits and lower
limits chews up valuable program space
As a fellow picer im sure you know what i mean....
Frank


----- Original Message -----
From: "Ian Lowe" <<a
href="/group/ukha_xpl/post?postID=GrQ3nc26Caa8S0XO1oaDDaZfs39_sUG9sV0zfzv-iimWs19SnnPgnKUvTNY9t8kUL8UAiPZOxs37RivNXcY">ian@w...</a>>
To: <<a
href="/group/ukha_xpl/post?postID=J07nqCbOQG4hMztaipA0WlVUQM8vi1otoe6huzZErbZRk1tqBXTc5DZSXcReMD4ZhzxeC00AIJO5UJXnCQ4gjO4">ukha_xpl@xxxxxxx</a>>
Sent: Sunday, March 21, 2004 9:49 PM
Subject: RE: [ukha_xpl] Heartbeat Interval Format


> Yeah, it is - and that's proven to be a nice network friendly level.
>
> What I think frank is getting at is that this:
>
> Parsing an xpl message on a small chip, If you jump to byte 5, that
> single character (S, T or C) tells you the message class - byte 25 is
> always the start of the message source.. and so on.
>
> There are a whole bunch of fast navigation shortcuts in the message to
> save parsing the whole thing - when you have figured out it's a
> heartbeat, and you read a "{" after byte 10 that's the start
of the
> message body, and you can jump ahead a known number of bytes to get
the
> interval and so on.
>
> People can change the interval via xplhal manager - if they set it to
a
> single digit value, then the positions of the heartbeat tags within
the
> message are fixed to a greater extent.. if the number the user enters
is
> double digit, then that's harder to parse.
>
> I think what I'm suggesting here is to place bounds on the value that
> the user can specify for "interval=". The default is 5
minutes at
> present, and that's working well. I'd suggest a minimum of 2 and a
> maximum of 9 - especially as the expiration in xplhal is based on the
> heartbeat interval - making it higher than 9 would have dead devices
> (that hadn't hbeat.end'ed) hanging around for ages.
>
> Ian.
>
> -----Original Message-----
> From: Tony Tofts [mailto:<a
href="/group/ukha_xpl/post?postID=ESEwDIGXHcG8y2B_6IVttu4nedrSfvAPe3Uo2bRI8FvbVE_AZ1TTSlPLwbwOJ7zKqcPg15A">tony@x...</a>]
> Sent: 21 March 2004 10:32
> To: <a
href="/group/ukha_xpl/post?postID=J07nqCbOQG4hMztaipA0WlVUQM8vi1otoe6huzZErbZRk1tqBXTc5DZSXcReMD4ZhzxeC00AIJO5UJXnCQ4gjO4">ukha_xpl@xxxxxxx</a>
> Subject: RE: [ukha_xpl] Heartbeat Interval Format
>
> > In my opinion, a better solution is to set the maximum
> > interval for the device at 9 minutes.
>
> Isn't the default still 5 minutes?
>
> And a device is considered dead if doesn't beat after 2 * interval + 1
> minutes?
>
> Thanks
> Tony
>
>
>
> xPL Links: <a href="http://www.xplproject.org.uk";>http://www.xplproject.org.uk</a>
<a href="http://www.xplhal.com";>http://www.xplhal.com</a>
> <a href="http://www.xpl.myby.co.uk";>http://www.xpl.myby.co.uk</a>
> To Post a Message: <a
href="/group/ukha_xpl/post?postID=J07nqCbOQG4hMztaipA0WlVUQM8vi1otoe6huzZErbZRk1tqBXTc5DZSXcReMD4ZhzxeC00AIJO5UJXnCQ4gjO4">ukha_xpl@xxxxxxx</a>
> To Subscribe: <a
href="/group/ukha_xpl/post?postID=YV-uU4TlBVgVJ-Xn_XGt4yNEaMWniaXeaFKsgnNmUbw-CRWJIqbmEuqc8dqPXksOhTVxR90UWmsrYtBwOeQRSQm9vUIBvAS98xHaaw">ukha_xpl-subscribe@xxxxxxx</a>
> To Unsubscribe: <a
href="/group/ukha_xpl/post?postID=Cod5Z_hi7ggXw42qsUsTeKK5vzU4fDA19vS86aSZs-9cgyjMk1qqpDuKeiBJr66WUvE9lcxqAPUeTq1jSj_Sk6DWspT2q59v2I0">ukha_xpl-unsubscribe@xxxxxxx</a>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
>
> xPL Links: <a href="http://www.xplproject.org.uk";>http://www.xplproject.org.uk</a>
<a href="http://www.xplhal.com";>http://www.xplhal.com</a>
<a href="http://www.xpl.myby.co.uk";>http://www.xpl.myby.co.uk</a>
> To Post a Message: <a
href="/group/ukha_xpl/post?postID=J07nqCbOQG4hMztaipA0WlVUQM8vi1otoe6huzZErbZRk1tqBXTc5DZSXcReMD4ZhzxeC00AIJO5UJXnCQ4gjO4">ukha_xpl@xxxxxxx</a>
> To Subscribe: <a
href="/group/ukha_xpl/post?postID=YV-uU4TlBVgVJ-Xn_XGt4yNEaMWniaXeaFKsgnNmUbw-CRWJIqbmEuqc8dqPXksOhTVxR90UWmsrYtBwOeQRSQm9vUIBvAS98xHaaw">ukha_xpl-subscribe@xxxxxxx</a>
> To Unsubscribe: <a
href="/group/ukha_xpl/post?postID=Cod5Z_hi7ggXw42qsUsTeKK5vzU4fDA19vS86aSZs-9cgyjMk1qqpDuKeiBJr66WUvE9lcxqAPUeTq1jSj_Sk6DWspT2q59v2I0">ukha_xpl-unsubscribe@xxxxxxx</a>
> Yahoo! Groups Links
>
>
>
>
>






xPL Main Index | xPL Thread Index | xPL Home | Archives Home

Comments to the Webmaster are always welcomed, please use this contact form . Note that as this site is a mailing list archive, the Webmaster has no control over the contents of the messages. Comments about message content should be directed to the relevant mailing list.