[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: xAP-Update or config and a tad on discovery - long
- Subject: Re: xAP-Update or config and a tad on discovery -
long
- From: i.bird@xxxx
- Date: Fri, 05 Sep 2003 12:50:00 +0000
Hi Stuart
>Does the RB3_1Controller only send a h/b once it receives a Respond
>command or is it pumping them out using some default parameters as
>soon as it 'boots'?
It sends heartbeats in the normal way - on startup and at 5 mninute
intervals by default. The interval is user configurable. The respond
command is a way of forcing a heartbeat on demand.
>What's this block name of "*." ? I've not seen that before! I
noticed
>also that you use:
This is me being lazy in my test application. I don't check these values so
I have not bothered to fill them in correctly. I only check the class and
target fields plus some fixed text on the inbound header.
>PROTOTYPE.
Err, shouldn't be like this and the reason is the same as above. Not
checked so not bothered to be filled in (hangs his head in shame). In my
defense though outbound messages are correct.
>Could I combine these parameters into a single message do you think? I
>don't see why not myself. I guess these messages could also arrive at
>absolutely any time, or do you somehow switch a device into
>configuration mode?
I won't support the combining of xAP-Update parameters in a single message
(I don't think) as it will possibly blow the buffer size I have available.
The updates are done in real time and do not need the device to be
restarted or anything. Other than that no objections.
>Did you manage to get this going? I'm curious to know what it responds
>with when the RB3_1Controller receives Type=Detail.
Esentially it gives details all the details about the unit e.g. subinstance
names, serial number, number of fitted outputs etc. Everything you can
think of that is not in a normal status reply. It does not include the
output states etc. and yes it works a treat.
>This is a custom field. Is Class=xAP-Update.Master a base class in
>this case, with custom fields like RBSerialNumber above a sub-class
>(were we to implement class inheritance - something I find very
>appealing, but that may be because of my OO mindset)?
Errr, someone said use Class=xAP-Update.Master for updates to the unit and
I have done just that. Didn't think too hard about it - sorry.
>I wonder if this flows into your and Kevin's recent discussions on
>including the subaddress value as the name item in a name/value pair:
>
>{
>TableLamp=On
>HallwayLight=Off
>}
>
>Rather than:
>
>{
>Device=TableLamp
>Status=On
>}
>
>The former makes the schema's a lot more fluid and non-specific, but
>it is compact and extremely readable.
Yes it does flow into recent conversations. Both Kevin and I decided we
have a mixture of things like TableLamp=On where the target is in the body
and value=On where the target is in the header. Apparently the spec allows
some rather odd mixes here and it is something we have to visit and decide
on for the basic schema. Better also make sure we are all singing from the
same hymn book for other schemas too.
>even though I'm not
>aware of a single person actually using any of my xAPFramework!! :lol:
It'll happen. I may even get onto it myself but it won't for a long time
given my workload at the moment.
Keep up the good work. It will come toghether soon and probably all at
once.
Ian
Original Message:
-----------------
From: Stuart Booth <a
href="/group/xAP_developer/post?postID=dxFuOeX5nHHZBn5k9f7dvsLOwh-3CaZEUsISBxop_BkQ8tStym3oEogVxx3xNLLEp3vtPKT--JgeFqVhHw">lists@x...</a>
Date: Thu, 04 Sep 2003 22:40:07 +0100
To: <a
href="/group/xAP_developer/post?postID=wnZre2xVahBxYqCQMeV2yOewH91ba5OMSO4wRiv1pPbQyYlhlkUEsBobU6ksj-sPEn5Rh4ZCD7bOvxgiS5MwqS-doU6bUuA">xAP_developer@xxxxxxx</a>
Subject: Re: [xAP_developer] xAP-Update or config and a tad on discovery -
long
Ian,
Couple of queries on this. Forgive my slight ignorance on some basic
topics you've discussed already I'm sure - I'm trying to catch up with
you and Kevin somewhat here!
On Tue, 12 Aug 2003 22:17:47 +0100, "Ian B" <<a
href="/group/xAP_developer/post?postID=Yat4QOx02wHErsqIzEkHQB0TXPUS6co2qZDkpLM1gPxGFqKq5sYDHuLQLP-X_8ZhQipUtl46rrdqXg">Ian@M...</a>>
wrote:
>Discovery the RS232 way.
>Note here that the schema is RelayControl and the type of message is a
>command. The body tells the unit what to do and in this case respond
means
>send a heartbeat.
Does the RB3_1Controller only send a h/b once it receives a Respond
command or is it pumping them out using some default parameters as
soon as it 'boots'?
>I think that "*." and "PROTOTYPE." are hence
related, and the block
>name is being wildcarded to a single token.
Ooooo, wayyy too much thinking here - see laziness notes above.
>
><STX>xap-header
>{
>v=12
>hop=1
>uid=FFxxxx00
>Class=RelayControl.Command
>Source=IansINet.RBControl.AnInstance
>Target=IansINet.RB3_1Controller.*:*
>}
>*.
>{
>Command=Respond
>}
>----<ETX>
Ooo, ooo, sir, please sir <Stuart waves hand in air for effect>
What's this block name of "*." ? I've not seen that before! I
noticed
also that you use:
PROTOTYPE.
ie you include the dot separator on the end. I'd not have bothered
there myself, so I'm interested in why you do. Curiousity in the
details here as I may need to alter my framework library to support
it.
I think that "*." and "PROTOTYPE." are hence related,
and the block
name is being wildcarded to a single token.
>After the heartbeat is received the ‘application’ sends a status
request as
>follows. We are still in the RelayControl schema and it has a body of
>type=detail. This distinguishes it from a standard status message (no
body)
>which gets an entirely different response. I cannot give an example at
the
>moment as I re-writing the header analysis routine and it is currently
>broken.
>
><STX>xap-header
>{
>v=12
>hop=1
>uid=FFxxxx00
>Class=RelayControl.Status
>Source=IansINet.RBControl.AnInstance
>Target=IansINet.RB3_1Controller.PROTOTYPE
>}
>PROTOTYPE.
>{
>Type=Detail
>}
>----<ETX>
Did you manage to get this going? I'm curious to know what it responds
with when the RB3_1Controller receives Type=Detail.
>We now go onto the schema xAP-Update which was the favoured name last
time
>we talked about this topic. The following are examples of updates I
make
and
>include the UID, Instance, Subinstance, Heartbeat interval and finally
the
>serial number of the board.
Could I combine these parameters into a single message do you think? I
don't see why not myself. I guess these messages could also arrive at
absolutely any time, or do you somehow switch a device into
configuration mode?
>PROTOTYPE.
>{
>UID=1234
>Instance=Workshop
>SubInstance=Front Lights
>Heartbeat=3690
>}
>PROTOTYPE.
>{
>RBSerialNumber=0002
>}
This is a custom field. Is Class=xAP-Update.Master a base class in
this case, with custom fields like RBSerialNumber above a sub-class
(were we to implement class inheritance - something I find very
appealing, but that may be because of my OO mindset)?
I wonder if this flows into your and Kevin's recent discussions on
including the subaddress value as the name item in a name/value pair:
{
TableLamp=On
HallwayLight=Off
}
Rather than:
{
Device=TableLamp
Status=On
}
The former makes the schema's a lot more fluid and non-specific, but
it is compact and extremely readable.
Right now I'm in the process of:
1) Adding my modular plugins to my xAPFramework site
2) Upgrading from PHPNuke 6.0 to 6.5 or 6.8
3) Adding explicit support in my framework for James' schemas
Then it's back to the GUI tools I've got planned I think. I seem to be
more developer focussed than end-user oriented, even though I'm not
aware of a single person actually using any of my xAPFramework!! :lol:
S
--
Stuart Booth
xAPFramework.net - a reusable xAP framework for .net
<a href="http://www.xapframework.net/">http://www.xapframework.net/</a>
<a
href="/group/xAP_developer/post?postID=ePOIkOEIwOE329AoWFirBMoO3yFwI-lBl3dXAHzZgNAcv2lt9iNswia5KTSjvwm5gGejDwY_BYgH2d_kGA">stuart@x...</a>
To unsubscribe from this group, send an email to:
<a
href="/group/xAP_developer/post?postID=Kf3TGY0IvAV8DMZD8VpLwZi5syey60Rclv9ruPUBLpBsul7h0q2tJvy2dJCbz9tBwkel1s6Meylcz1DjbpcWZ0jijZ5GbxEk2ViQ5JqqHlI">xAP_developer-unsubscribe@xxxxxxx</a>
Your use of Yahoo! Groups is subject to <a href="http://docs.yahoo.com/info/terms/">http://docs.yahoo.com/info/terms/</a>
--------------------------------------------------------------------
mail2web - Check your email from the web at
<a href="http://mail2web.com/">http://mail2web.com/</a> .
xAP_Development Main Index |
xAP_Development Thread Index |
xAP_Development Home |
Archives Home
|