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: xap-x10 schema question about possible mistakes in the schema



--------------010405050400090208030703
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi Jose,

First of all,  yes I do believe that is the 'current'  X10 schema
but it was also created many years ago when xAP was new.  Nowadays it is
not a particularly good schema design  as it includes addressing
parameters within the message body (device = X10 address) , a more up to
date approach would use sub addressing, but it is viable.

If you wish to use (and update) it then fine but just to let you
know there has been another X10 xAP connector written that uses the xAP
BSC schema which is more universally understood by many xAP applications
but BSC is supporting only on/off/dim control.

http://www.edjo.pwp.blueyonder.co.uk/edward/xAP/X10/x10_main.htm

I don't now use X10 myself so I've lost touch with the supported X10
interfaces and I am not sure about Extended code handling within this
updated application - maybe this post from UKHA helps a bit ?

http://www.ukha-archive.com/ml/xap/2007-may/msg00020.html*

*Hopefully Edward - who wrote the newer X10 connector will respond here
and clarify things a bit.

cheers Kevin

On 04/01/2011 23:24, jlgalindo wrote:
> Hi group,
>
> I'm trying to create a connector for my CM11 and when I'm coding the
xap-x10 schema from www.xapautomation.org maybe I found a pair of mistakes
in it.
>
> I hope somebody in the group can help me.
>
> The first question is:
> Is this the latest version for the xap-x10 schema? Where can I found
the latest schema?
>
> The second question is:
> The most used commands are ON, OFF, DIM, BRIGHT, ALL_LIGHTS_ON,
ALL_LIGHTS_OFF and ALL_UNITS_OFF, but the schema also has an annotation for
the other commands defined in the X10 protocol, these are:
>
> .hail_req
> .hail_ack
> .preset_dim_1
> .preset_dim_2
> .status_on
> .status_off
> .status_req
> .ext_data
>
> But there is one command defined in the X10 protocol, that is not
defined in the xap-x10 schema, this is "EXTENDED CODE". This
command appear to be similar to "EXTENDED DATA"
("ext_data" in xap-x10 schema), so I assume that "EXTENDED
CODE" may be "ext_code" in the xap-x10 schema, but it's not
defined.
>
> About extended data and extended code commands and events, there will
be necessary another field/s in the message body, because these commands
has two additional bytes of data (for example data and type).
>
> This will be an example for a xap-x10 message body from an extended
command:
>
> xap-x10.event
> {
> command=ext_code
> device=A1 (list of X10 devices)
> data=16 (8 bit value)
> type=1 (8 bit value)
> }
>
> So, if I'm right there will be necessary to:
> - add ext_code to the xap-x10 schema
> - define the name of the fields for the data bytes for the extended
code and extended data commands and events.
>
> Regards
> Jose Luis
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>
>


--------------010405050400090208030703
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit





<head>

<style type="text/css">
<!--

/* start of attachment style */
.ygrp-photo-title{
clear: both;
font-size: smaller;
height: 15px;
overflow: hidden;
text-align: center;
width: 75px;
}
div.ygrp-photo{
background-position: center;
background-repeat: no-repeat;
background-color: white;
border: 1px solid black;
height: 62px;
width: 62px;
}

div.photo-title
a,
div.photo-title a:active,
div.photo-title a:hover,
div.photo-title a:visited {
text-decoration: none;
}

div.attach-table div.attach-row {
clear: both;
}

div.attach-table div.attach-row div {
float: left;
/* margin: 2px;*/
}

p {
clear: both;
padding: 15px 0 3px 0;
overflow: hidden;
}

div.ygrp-file {
width: 30px;
valign: middle;
}
div.attach-table div.attach-row div div a {
text-decoration: none;
}

div.attach-table div.attach-row div div span {
font-weight: normal;
}

div.ygrp-file-title {
font-weight: bold;
}
/* end of attachment style */
-->
</style>
</head>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">


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

<br><br>

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



Hi Jose,<br>
<br>
&nbsp;&nbsp; First of all,&nbsp; yes I do believe that is the
'current'&nbsp; X10 schema
but it was also created many years ago when xAP was new.&nbsp; Nowadays
it is not a particularly good schema design&nbsp; as it includes
addressing parameters within the message body (device = X10 address)
, a more up to date approach would use sub addressing, but it is
viable.&nbsp; <br>
<br>
&nbsp;&nbsp; If you wish to use (and update) it then fine but just
to let you
know there has been another X10 xAP connector written that uses the
xAP BSC schema which is more universally understood by many xAP
applications but BSC is supporting only on/off/dim control.<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.edjo.pwp.blueyonder.co.uk/edward/xAP/X10/x10_main.htm";>http://www.edjo.pwp.blueyonder.co.uk/edward/xAP/X10/x10_main.htm</a><br>
<br>
I don't now use X10 myself so I've lost touch with the supported X10
interfaces and I am not sure about Extended code handling within
this updated application - maybe this post from UKHA helps a bit ?
<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.ukha-archive.com/ml/xap/2007-may/msg00020.html";>http://www.ukha-archive.com/ml/xap/2007-may/msg00020.html</a><b><br>
<br>
</b>Hopefully Edward - who wrote the newer X10 connector will
respond here and clarify things a bit.<br>
<br>
&nbsp;&nbsp; cheers Kevin<br>
<br>
On 04/01/2011 23:24, jlgalindo wrote:
<blockquote cite="mid:ig0a75+dsn8@xxxxxxx"
type="cite">
<pre wrap="">Hi group,

I'm trying to create a connector for my CM11 and when I'm coding the
xap-x10 schema from <a class="moz-txt-link-abbreviated"
href="http://www.xapautomation.org";>www.xapautomation.org</a>
maybe I found a pair of mistakes in it.

I hope somebody in the group can help me.

The first question is:
Is this the latest version for the xap-x10 schema? Where can I found the
latest schema?

The second question is:
The most used commands are ON, OFF, DIM, BRIGHT, ALL_LIGHTS_ON,
ALL_LIGHTS_OFF and ALL_UNITS_OFF, but the schema also has an annotation for
the other commands defined in the X10 protocol, these are:

&#8226;hail_req
&#8226;hail_ack
&#8226;preset_dim_1
&#8226;preset_dim_2
&#8226;status_on
&#8226;status_off
&#8226;status_req
&#8226;ext_data

But there is one command defined in the X10 protocol, that is not defined
in the xap-x10 schema, this is "EXTENDED CODE". This command
appear to be similar to "EXTENDED DATA" ("ext_data" in
xap-x10 schema), so I assume that "EXTENDED CODE" may be
"ext_code" in the xap-x10 schema, but it's not defined.

About extended data and extended code commands and events, there will be
necessary another field/s in the message body, because these commands has
two additional bytes of data (for example data and type).

This will be an example for a xap-x10 message body from an extended
command:

xap-x10.event
{
command=ext_code
device=A1 (list of X10 devices)
data=16 (8 bit value)
type=1 (8 bit value)
}

So, if I'm right there will be necessary to:
- add ext_code to the xap-x10 schema
- define the name of the fields for the data bytes for the extended code
and extended data commands and events.

Regards
Jose Luis



------------------------------------


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.