[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Xap and serial
- Subject: Xap and serial
- From: "Ian Davidson" <ian@xxxxxxxxxxxxxxxx>
- Date: Sat, 17 Feb 2007 18:37:23 -0000
------_=_NextPart_001_01C752C2.9F59B475
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hi
=20
It's been quite a while since I did any development work with Xap and
when I did it was only minimal. However I decide I would try to ease
myself back into it as I get a few minutes.
=20
I mainly work with PIC's but did want an Ethernet device. Rather than
trying to put Ethernet directly into the Pic (I know it's possibly but
not by me!) I decide to use a Tibbo device to act as the Ethernet to
serial gateway and just let the Pic talk serial.
=20
The Tibbo (www.tibbo.com) is quite powerful, but for the first tests I
simply programmed it for UDP and to forward all traffic on port 3639 to
serial with a serial rate of 115200 Baud.
=20
In a terminal program I monitored the output and saw my Xap traffic
happily flowing away. After a while and pausing the display it became
apparent that some messages were broken. I then used the Xap viewer side
by side with the terminal program and could see some missed messages. On
closer inspection everything was fine until the Xap homeseer plug-in
sent a large amount of Xap messages. Looking more closely at this
homeseer actually sent out 69 Xap messages in 0.84 seconds. The average
message length was 222 bytes which equates to 15318 bytes. To send this
serially would require a start and stop bit as well as the eight data
bits which equates to 153180 bits in 0.84 seconds or 182357 Baud.
=20
This is why I was missing and getting some corrupt messages. I know
originally Xap was aimed at a multitude of devices but this rate of
output clearly rules out almost all serial devices. Even if the Pic did
have a direct Ethernet interface it would be pushed to cope with this
rate of data. I have the Xap Netiom which is great and I know uses a Pic
with direct Ethernet but I'm sure it would not be able to cope with the
high data rate at times. Although I have not had an issue with my netiom
this is probably due to the commands to it not being sent during one of
these data storms.
=20
I'm really just looking for comments on this I would like to use Xap on
Pic based devices but I would also like to guarantee it didn't miss any
messages and as it stands I can not. I'm looking to control some devices
and having used Xap, which is great and still growing would have seemed
ideal but at the moment it seems as though a lighter protocol would
probably be more beneficial. Can anyone think of a solution, is it
possible to limit the speed of Xap packets onto the network or would
this start to limit and slow other Xap PC based apps.=20
=20
Thanks
=20
Ian
=20
=20
------_=_NextPart_001_01C752C2.9F59B475
Content-Type: text/html; charset=US-ASCII
Content-Transfer-Encoding: 7bit
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html;
charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered
medium)">
<style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:Arial;
color:windowtext;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-GB link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'>Hi<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'>It’s been quite a while since I did any
development work
with Xap and when I did it was only minimal. However I decide I would try
to
ease myself back into it as I get a few
minutes.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'>I mainly work with PIC’s but did want an
Ethernet device.
Rather than trying to put Ethernet directly into the Pic (I know
it’s
possibly but not by me!) I decide to use a Tibbo device to act as the
Ethernet to
serial gateway and just let the Pic talk
serial.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'>The Tibbo (www.tibbo.com) is quite powerful, but for
the
first tests I simply programmed it for UDP and to forward all traffic on
port
3639 to serial with a serial rate of 115200
Baud.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'>In a terminal program I monitored the output and saw
my Xap
traffic happily flowing away. After a while and pausing the display it
became
apparent that some messages were broken. I then used the Xap viewer side by
side with the terminal program and could see some missed messages. On
closer
inspection everything was fine until the Xap homeseer plug-in sent a large
amount of Xap messages. Looking more closely at this homeseer actually sent
out
69 Xap messages in 0.84 seconds. The average message length was 222 bytes
which
equates to 15318 bytes. To send this serially would require a start and
stop
bit as well as the eight data bits which equates to 153180 bits in 0.84
seconds
or 182357 Baud.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'>This is why I was missing and getting some corrupt
messages.
I know originally Xap was aimed at a multitude of devices but this rate of
output clearly rules out almost all serial devices. Even if the Pic did
have a
direct Ethernet interface it would be pushed to cope with this rate of
data. I
have the Xap Netiom which is great and I know uses a Pic with direct
Ethernet but
I’m sure it would not be able to cope with the high data rate at
times. Although
I have not had an issue with my netiom this is probably due to the commands
to
it not being sent during one of these data
storms.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'>I’m really just looking for comments on
this I would
like to use Xap on Pic based devices but I would also like to guarantee it
didn’t
miss any messages and as it stands I can not. I’m looking to
control some
devices and having used Xap, which is great and still growing would have
seemed
ideal but at the moment it seems as though a lighter protocol would
probably be
more beneficial. Can anyone think of a solution, is it possible to limit
the
speed of Xap packets onto the network or would this start to limit and slow
other Xap PC based apps.
<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'>Thanks<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'>Ian<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'><o:p> </o:p></span></font></p>
</div>
<span width="1" style="color:
white;"/>__._,_.___</span>
<!-- **begin egp html banner** -->
<img src="http://geo.yahoo.com/serv?s=97476590/grpId=9674343/grpspId=1705007709/msgId=3493/stime=1171737461"
width="1" height="1"> <br>
<!-- **end egp html banner** -->
<!-- **begin egp html banner** -->
<br><br>
<div style="width:500px; text-align:right; margin-bottom:1px;
color:#909090;">
<tt>SPONSORED LINKS</tt>
</div>
<table bgcolor=#e0ecee cellspacing="13"
cellpadding="0" width=500px>
<tr valign=top>
<td style="width:25%;">
<tt><a href="http://groups.yahoo.com/gads;_ylc=X3oDMTJjZjd1b2RrBF9TAzk3NDc2NTkwBF9wAzEEZ3JwSWQDOTY3NDM0MwRncnBzcElkAzE3MDUwMDc3MDkEc2VjA3NsbW9kBHN0aW1lAzExNzE3Mzc0NjE-?t=ms&k=X10+home+automation&w1=X10+home+automation&w2=Home+automation&w3=Home+automation+product&w4=Home+automation+system&w5=Home+automation+security&c=5&s=133&g=0&.sig=tN49yZ8gLW44qGV8ngn-6Q">X10
home automation</a></tt>
</td>
<td style="width:25%;">
<tt><a href="http://groups.yahoo.com/gads;_ylc=X3oDMTJjZWg1NHRqBF9TAzk3NDc2NTkwBF9wAzIEZ3JwSWQDOTY3NDM0MwRncnBzcElkAzE3MDUwMDc3MDkEc2VjA3NsbW9kBHN0aW1lAzExNzE3Mzc0NjE-?t=ms&k=Home+automation&w1=X10+home+automation&w2=Home+automation&w3=Home+automation+product&w4=Home+automation+system&w5=Home+automation+security&c=5&s=133&g=0&.sig=uxodCh5B-C-LfzJs4AF_uw">Home
automation</a></tt>
</td>
<td style="width:25%;">
<tt><a href="http://groups.yahoo.com/gads;_ylc=X3oDMTJjdDl2MW5lBF9TAzk3NDc2NTkwBF9wAzMEZ3JwSWQDOTY3NDM0MwRncnBzcElkAzE3MDUwMDc3MDkEc2VjA3NsbW9kBHN0aW1lAzExNzE3Mzc0NjE-?t=ms&k=Home+automation+product&w1=X10+home+automation&w2=Home+automation&w3=Home+automation+product&w4=Home+automation+system&w5=Home+automation+security&c=5&s=133&g=0&.sig=-7-yoKCdmzYOn0eQU41W8Q">Home
automation product</a></tt>
</td>
</tr>
<tr valign=top>
<td style="width:25%;">
<tt><a href="http://groups.yahoo.com/gads;_ylc=X3oDMTJjbDFvZDc4BF9TAzk3NDc2NTkwBF9wAzQEZ3JwSWQDOTY3NDM0MwRncnBzcElkAzE3MDUwMDc3MDkEc2VjA3NsbW9kBHN0aW1lAzExNzE3Mzc0NjE-?t=ms&k=Home+automation+system&w1=X10+home+automation&w2=Home+automation&w3=Home+automation+product&w4=Home+automation+system&w5=Home+automation+security&c=5&s=133&g=0&.sig=YiCpy6REMq-ZQ9BflM6GVg">Home
automation system</a></tt>
</td>
<td style="width:25%;">
<tt><a href="http://groups.yahoo.com/gads;_ylc=X3oDMTJjZDJxazYyBF9TAzk3NDc2NTkwBF9wAzUEZ3JwSWQDOTY3NDM0MwRncnBzcElkAzE3MDUwMDc3MDkEc2VjA3NsbW9kBHN0aW1lAzExNzE3Mzc0NjE-?t=ms&k=Home+automation+security&w1=X10+home+automation&w2=Home+automation&w3=Home+automation+product&w4=Home+automation+system&w5=Home+automation+security&c=5&s=133&g=0&.sig=MqsbZg2eMmjgfWfWU0yLgQ">Home
automation security</a></tt>
</td>
</tr>
</table>
<!-- **end egp html banner** -->
<!-- **begin egp html banner** -->
<br>
<div style="font-family: verdana; font-size: 77%; border-top: 1px
solid #666; padding: 5px 0;" >
Your email settings: Individual EmailTraditional <br>
<a href="http://groups.yahoo.com/group/xap_automation/join;_ylc=X3oDMTJmcXV2aDVwBF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA3N0bmdzBHN0aW1lAzExNzE3Mzc0NjE-">Change
settings via the Web</a> (Yahoo! ID required) <br>
Change settings via email: <a href="mailto:xap_automation-digest@xxxxxxx?subject=Email
Delivery: Digest">Switch delivery to Daily Digest</a> <a
href = "mailto:xap_automation-fullfeatured@xxxxxxx?subject=Change
Delivery Format: Fully Featured">Switch to Fully Featured</a>
<br>
<a href="http://groups.yahoo.com/group/xap_automation;_ylc=X3oDMTJkOHMwMG9rBF9TAzk3NDc2NTkwBGdycElkAzk2NzQzNDMEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA2hwZgRzdGltZQMxMTcxNzM3NDYx">
Visit Your Group
</a>
<a href="http://docs.yahoo.com/info/terms/">
Yahoo! Groups Terms of Use
</a>
<a href="mailto:xap_automation-unsubscribe@xxxxxxx?subject=Unsubscribe">
Unsubscribe
</a>
<br>
</div>
<br>
<!-- **end egp html banner** -->
<span style="color: white;"/>__,_._,___</span>
</body>
</html>
------_=_NextPart_001_01C752C2.9F59B475--
xAP_Automation Main Index |
xAP_Automation Thread Index |
xAP_Automation Home |
Archives Home
|