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]

Help with bsc


  • Subject: Help with bsc
  • From: "Ian Davidson" <ian@xxxxxxxxxxxxxxxx>
  • Date: Mon, 8 May 2006 21:00:47 +0100

------_=_NextPart_001_01C672DA.198C6993
Content-Type: text/plain;
charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

Hi

=20

Whilst I'm waiting to see if Patrick can have a look at the serial
bridge I've been writing some XAP parser code and have read the bsc spec
a number of times but I must admit I am still not 100% clear on it.

=20

I am trying to write some code for a Pic based unit which has 16 inputs
and 16 outputs (sort of). I want the code to be as simply as possible
and not take up too much room in the Pic. I have been looking at the UID
field which makes sense. However, it appears the UID field in a header
refers to the source and not the target. To decode an XAP message
targeted at my device am I correct in thinking I need to capture and
match the target line. If so this is not an issue if I only need to
match to the device i.e. gforce9.lighting.upstairs:> and then use the
body to identify which sub address is being targeted. But do I have to
implement the matching of all the sub addresses on the target line i.e.
gforce9.lighting.upstairs:output1.

=20

Again I can do this if the sub addresses are only output01 to output16
and the same for the inputs. It would very much eat up my code space if
this can be changed to any name though. I understand it is not as user
friendly to say: output01 as apposed to: bedroom.light1 but as I said
code space is vanishing fast.

=20

I also need to know the maximum length the target field can be in total
and for each segment. I am sure it must be in the doc's but I couldn't
find it. I am also unclear on the exact makeup of the address field, I
understand the usual makeup of the address as a.b.c followed sometimes
by :d but I also see a.b.c.d and also a.b.c:d.e. What is the maximum
number of sections (full stops) and is everything d and onwards taken to
be a sub address.

=20

Sorry for all the questions but I have got a basic parser section
working and I would like to finish it off but I don't want to head off
in the wrong direction.

=20

Thanks

=20

Ian D=20

=20

=20

=20


------_=_NextPart_001_01C672DA.198C6993
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>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'>Whilst I&#8217;m waiting to see if Patrick can
have a look
at the serial bridge I&#8217;ve been writing some XAP parser code and
have read
the bsc spec a number of times but I must admit I am still not 100% clear
on
it.<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>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'>I am trying to write some code for a Pic based unit
which
has 16 inputs and 16 outputs (sort of). I want the code to be as simply as
possible and not take up too much room in the Pic. I have been looking at
the
UID field which makes sense. However, it appears the UID field in a header
refers to the source and not the target. To decode an XAP message targeted
at
my device am I correct in thinking I need to capture and match the target
line.
If so this is not an issue if I only need to match to the device i.e.
gforce9.lighting.upstairs:&gt; and then use the body to identify which
sub
address is being targeted. But do I have to implement the matching of all
the sub
addresses on the target line i.e.
gforce9.lighting.upstairs:output1.<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>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'>Again I can do this if the sub addresses are only
output01
to output16 and the same for the inputs. It would very much eat up my code
space if this can be changed to any name though. I understand it is not as
user
friendly to say: output01 as apposed to: bedroom.light1 but as I said code
space is vanishing
fast.<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>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'>I also need to know the maximum length the target
field can
be in total and for each segment. I am sure it must be in the
doc&#8217;s but I
couldn&#8217;t find it. I am also unclear on the exact makeup of the
address
field, I understand the usual makeup of the address as a.b.c followed
sometimes
by :d but I also see a.b.c.d and also a.b.c:d.e. What is the maximum number
of
sections (full stops) and is everything d and onwards taken to be a sub
address.<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>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'>Sorry for all the questions but I have got a basic
parser
section working and I would like to finish it off but I don&#8217;t
want to head
off in the wrong
direction.<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>&nbsp;</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>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'>Ian D
<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>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 face=Arial><span
style='font-size:10.0pt;
font-family:Arial'><o:p>&nbsp;</o:p></span></font></p>

</div>




<!-- **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?t=ms&k=Workflow+automation&w1=Workflow+automation&w2=Automation+equipment&w3=Industrial+automation&w4=Test+automation&w5=Sales+automation&w6=Factory+automation&c=6&s=145&.sig=F4tRNBO_G_ZzajQmbmwe7Q";>Workflow
automation</a></tt>
</td>
<td style="width:25%;">
<tt><a href="http://groups.yahoo.com/gads?t=ms&k=Automation+equipment&w1=Workflow+automation&w2=Automation+equipment&w3=Industrial+automation&w4=Test+automation&w5=Sales+automation&w6=Factory+automation&c=6&s=145&.sig=9-eliEiH2rHCvwCe6xpvLw";>Automation
equipment</a></tt>
</td>
<td style="width:25%;">
<tt><a href="http://groups.yahoo.com/gads?t=ms&k=Industrial+automation&w1=Workflow+automation&w2=Automation+equipment&w3=Industrial+automation&w4=Test+automation&w5=Sales+automation&w6=Factory+automation&c=6&s=145&.sig=xI5A0mNmlPHiPI__bxZwUQ";>Industrial
automation</a></tt>
</td>
</tr>
<tr valign=top>
<td style="width:25%;">
<tt><a href="http://groups.yahoo.com/gads?t=ms&k=Test+automation&w1=Workflow+automation&w2=Automation+equipment&w3=Industrial+automation&w4=Test+automation&w5=Sales+automation&w6=Factory+automation&c=6&s=145&.sig=babdTZ-cZ8AbgxQRUJqztw";>Test
automation</a></tt>
</td>
<td style="width:25%;">
<tt><a href="http://groups.yahoo.com/gads?t=ms&k=Sales+automation&w1=Workflow+automation&w2=Automation+equipment&w3=Industrial+automation&w4=Test+automation&w5=Sales+automation&w6=Factory+automation&c=6&s=145&.sig=-x7c78RB2nUpuPBRifr1YA";>Sales
automation</a></tt>
</td>
<td style="width:25%;">
<tt><a href="http://groups.yahoo.com/gads?t=ms&k=Factory+automation&w1=Workflow+automation&w2=Automation+equipment&w3=Industrial+automation&w4=Test+automation&w5=Sales+automation&w6=Factory+automation&c=6&s=145&.sig=zQtSND_pDmyn0UaMn4LPgQ";>Factory
automation</a></tt>
</td>
</tr>
</tr>
</table>

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



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

<br>
<div style="text-align:center; color:#909090;
width:500px;">
<hr style="border-bottom:1px; width:500px;
text-align:left;">
<tt>YAHOO! GROUPS LINKS</tt>
</div>
<br>
<ul>
<tt><li type=square>&nbsp;Visit your group "<a
href="http://groups.yahoo.com/group/xap_automation";>xap_automation</a>"
on the web.<br>&nbsp;</tt>
<tt><li type=square>&nbsp;To unsubscribe from this group,
send an email to:<br>&nbsp;<a href="mailto:xap_automation-unsubscribe@xxxxxxx?subject=Unsubscribe";>xap_automation-unsubscribe@xxxxxxx</a><br>&nbsp;</tt>
<tt><li type=square>&nbsp;Your use of Yahoo! Groups is
subject to the <a href="http://docs.yahoo.com/info/terms/";>Yahoo!
Terms of Service</a>.</tt>
</ul>
<br>
<div style="text-align:center; color:#909090;
width:500px;">
<hr style="border-bottom:1px; width:500px;
text-align:left;">
</div>
</br>

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


</body>

</html>

------_=_NextPart_001_01C672DA.198C6993--




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