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]

Nuts and Bolts of a hub-app protocol


  • Subject: Nuts and Bolts of a hub-app protocol
  • From: "Michael McSharry" <mcs101main@xxxxxxx>
  • Date: Fri, 8 Oct 2004 23:39:49 -0700
  • References: <010d01c485ac$eb06d860$c800a8c0@mcs5> <u5n9i0dkilt2a1b8jj8pqqgq4dsv2ai16u@4ax.com> <014f01c48612$15d28cf0$c800a8c0@mcs5> <9op9i0p2d8bljhgbdshv0gaocec53a74m8@4ax.com> <015c01c4861e$c5916ec0$c800a8c0@mcs5> <equ9i0d5hov5aqtlauot596dfo7u5tpk54@4ax.com> <016c01c48624$8d5fd8b0$c800a8c0@mcs5> <ce5ai09c1re7eqpeu6v16p2ebcfpblu7tv@4ax.com> <019801c48678$e1cde0a0$c800a8c0@mcs5> <mrebi0d52vgj9t5377ancq345mvdinbfgs@4ax.com>


------=_NextPart_000_01E5_01C4AD90.19FA0C90
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I'm trying to get a better understanding of the interaction of the hub and
=
other xap apps.  I looked very closely at the xap specification and I
think=
I understand the general concept, but when I tinker with it I don't get ve=
ry far.

It appears that some exchanges happen on the 127.0.0.1 network and others
o=
n a LAN such as 192.xxx.xxx.xxx.  I can see that the app always needs to
tr=
ansmit to port 3639 and in the heartbeat to inform the hub of the port it
i=
s listening on.  I've tried sending the heartbeat on 127.x and 192.x and
th=
e hub logs the fist heartbeat on 192.x and all heartbeats on 127.x.  When
i=
t is delivered on 192.x then it will forward the LAN messages to 192.x
unti=
l the timeout period of about 120 seconds.  If delivered on 127.x the
hub/v=
iewer recognizes the app and logs the heartbeats but no messages are
receiv=
ed at the app node.

Is there one UDP socket or two UDP sockets used between the app and hub? 
W=
hich network is used for which purpose in and out of the hub?
------=_NextPart_000_01E5_01C4AD90.19FA0C90
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html;
charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>


<DIV><FONT face=Arial size=2>I'm trying to get a better
understanding of the
interaction of the hub and other xap apps.&nbsp; I looked very closely
at the
xap specification and I think I understand the general concept, but when I
tinker with it I don't get very far.</FONT></DIV>
<DIV><FONT face=Arial
size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>It appears that some exchanges
happen on the
127.0.0.1 network and others on a LAN such as 192.xxx.xxx.xxx.&nbsp; I
can see
that the app always needs to transmit to port 3639 and in the heartbeat to
inform the hub of the port it is listening on.&nbsp; I've tried sending
the
heartbeat on 127.x and 192.x and the hub&nbsp;logs the fist heartbeat
on 192.x
and all heartbeats on 127.x.&nbsp; When it is delivered on 192.x then
it will
forward the LAN messages to 192.x until the timeout period of about 120
seconds.&nbsp; If delivered on 127.x the hub/viewer recognizes the app
and logs
the heartbeats but no messages are received at the app
node.</FONT></DIV>
<DIV><FONT face=Arial
size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Is there one UDP socket or two UDP
sockets used
between the app and hub?&nbsp; Which network is used for which purpose
in and
out of the hub?</FONT></DIV><!-- **end egp html banner**
-->

<br>

<!-- **begin egp html banner** -->

<table border=0 cellspacing=0 cellpadding=2>
<tr bgcolor=#FFFFCC>
<td align=center><font size="-1"
color=#003399><b>Yahoo! Groups
Sponsor</b></font></td>
</tr>
<tr bgcolor=#FFFFFF>
<td align=center width=470><table border=0 cellpadding=0
cellspacing=0> <tr> <td align=center><font face=arial
size=-2>ADVERTISEMENT</font><br><a href="http://us.ard.yahoo.com/SIG=129u87mt0/M=295196.4901138.6071305.3001176/D=groups/S=1705007709:HM/EXP=1097424618/A=2128215/R=0/SIG=10se96mf6/*http://companion.yahoo.com";
alt=""><img src="http://us.a1.yimg.com/us.yimg.com/a/ya/yahoo_companion/lrec_companion_043004.gif";
alt="click here" width="300" height="250"
border="0"></a></td></tr></table>
</td>
</tr>
<tr><td><img alt="" width=1 height=1 src="http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=groups/S=:HM/A=2128215/rand=495592404";></td></tr>
</table>

<!-- **end egp html banner** -->



<!-- **begin egp html banner** -->

<br>
<tt><hr width="500">
<b>Yahoo! Groups Links</b><br>
<ul>
<li>To visit your group on the web, go to:<br><a
href="http://groups.yahoo.com/group/xAP_developer/";>http://groups.yahoo.com/group/xAP_developer/</a><br>&nbsp;
<li>To unsubscribe from this group, send an email to:<br><a
href="mailto:xAP_developer-unsubscribe@xxxxxxx?subject=Unsubscribe";>xAP_developer-unsubscribe@xxxxxxx</a><br>&nbsp;
<li>Your use of Yahoo! Groups is subject to the <a href="http://docs.yahoo.com/info/terms/";>Yahoo!
Terms of Service</a>.
</ul>
</tt>
</br>

<!-- **end egp html banner** -->


</BODY></HTML>

------=_NextPart_000_01E5_01C4AD90.19FA0C90--




xAP_Development Main Index | xAP_Development Thread Index | xAP_Development 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.