[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: UIDs
--------------040009060703080007060409
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Hi,
There is no central register to assign UIDs rather they should be up to
the installer to configure. The main reason for this is that a UID must
be unique on a network and if there were multiple copies of an
application running you would need to pre-register a large block of
UIDs, not really a practical solution. The normal way to deal with them
is set the UID to a random hex number at install and give the user an
option to change it later if needed. Your example header looks fine btw.
I notice you are planning on using the pc.status schema. Let me know if
you require any expansions to it. I remember when we last spoke some
additions were made but more can be added.
Guessing the first few feature requests that may well be asked. Firstly,
making the interval between sending of pc.status messages customisable
and secondly the sending of a display message when an alert/alarm happens.
The message schema is here:
http://www.mi4.biz/modules.php?name=Content&pa=showpage&pid=9
and an
example message would be:
xap-header
{
v=12
hop=1
uid=FF671100
class=PC.status
source=almico.speedfan.officepc
}
Display.Text
{
Line1=CPU has got hot
Line2=It is now 100C !
Priority=1
Duration=30
}
and with that your Squeezebox, IM client, PC, LCDs.. would show it. So
you'd never miss an alert again!
HTH
Jaems
almico2000 wrote:
>
> I'm sure I'm going to ask a dumb question, but I printed the whole
> protocol definition (and, of course, read it) and I still have a
> doubt regarding UIDs. Are UIDs assigned by a central authority? Or
> are UIDs relevant only in the current subnet where UDP packets are
> broadcasted?
>
> I'm going to add xAP support to SpeedFan. SpeedFan is a Windows
> hardware monitoring tool that can read temperatures, fan speeds and
> voltages in a PC. Is it correct if the xap-header sent by SpeedFan is:
>
> xap-header
> {
> v=12
> hop=1
> uid=FF671100
> class=PC.status
> source=almico.speedfan.officepc
> }
>
> ?
>
> Or should I force the user to configure by hand the "6711"
part of
> the "FF671100" UID in order to ensure unicity?
>
> Thank you.
>
>
--------------040009060703080007060409
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
<!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">
Hi,<br>
There is no central register to assign UIDs rather they should be up to
the installer to configure. The main reason for this is that a
UID
must be unique on a network and if there were multiple copies of an
application running you would need to pre-register a large block of
UIDs, not really a practical solution. The normal way to deal with them
is set the UID to a random hex number at install and give the user an
option to change it later if needed. Your example header looks fine
btw.<br>
<br>
I notice you are planning on using the pc.status schema. Let me know if
you require any expansions to it. I remember when we last spoke some
additions were made but more can be added.<br>
Guessing the first few feature requests that may well be asked.
Firstly, making the interval between sending of pc.status messages
customisable and secondly the sending of a display message when an
alert/alarm happens.<br>
The message schema is here:
<a class="moz-txt-link-freetext" href="http://www.mi4.biz/modules.php?name=Content&pa=showpage&pid=9">http://www.mi4.biz/modules.php?name=Content&pa=showpage&pid=9</a>
and an example message would be:<br>
xap-header<br>
{<br>
v=12<br>
hop=1<br>
uid=FF671100<br>
class=PC.status<br>
source=almico.speedfan.officepc<br>
}<br>
Display.Text<br>
{<br>
Line1=CPU has got hot<br>
Line2=It is now 100C !<br>
Priority=1<br>
Duration=30<br>
}<br>
and with that your Squeezebox, IM client, PC, LCDs.. would show it. So
you'd never miss an alert again!<br>
<br>
HTH<br>
<br>
Jaems<br>
<br>
almico2000 wrote:
<blockquote cite="mid:eqqqdg+k84u@xxxxxxx"
type="cite"><!-- Network content -->
<div id="ygrp-text">
<p>I'm sure I'm going to ask a dumb question, but I printed the whole
<br>
protocol definition (and, of course, read it) and I still have a <br>
doubt regarding UIDs. Are UIDs assigned by a central authority? Or
<br>
are UIDs relevant only in the current subnet where UDP packets are
<br>
broadcasted?<br>
<br>
I'm going to add xAP support to SpeedFan. SpeedFan is a Windows <br>
hardware monitoring tool that can read temperatures, fan speeds and
<br>
voltages in a PC. Is it correct if the xap-header sent by SpeedFan
is:<br>
<br>
xap-header<br>
{<br>
v=12<br>
hop=1<br>
uid=FF671100<br>
class=PC.status<br>
source=almico.<wbr>speedfan.<wbr>officepc<br>
}<br>
<br>
?<br>
<br>
Or should I force the user to configure by hand the "6711" part
of <br>
the "FF671100" UID in order to ensure unicity?<br>
<br>
Thank you.<br>
<br>
</p>
</div>
<!--End group email --></blockquote>
<br>
<span width="1" style="color:
white;"/>__._,_.___</span>
<!-- **begin egp html banner** -->
<img src="http://geo.yahoo.com/serv?s=97476590/grpId=9629476/grpspId=1705007709/msgId=1778/stime=1171324438"
width="1" height="1"> <br>
<!-- **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_developer/join;_ylc=X3oDMTJmamt2dWM0BF9TAzk3NDc2NTkwBGdycElkAzk2Mjk0NzYEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA3N0bmdzBHN0aW1lAzExNzEzMjQ0Mzg-">Change
settings via the Web</a> (Yahoo! ID required) <br>
Change settings via email: <a href="mailto:xAP_developer-digest@xxxxxxx?subject=Email
Delivery: Digest">Switch delivery to Daily Digest</a> <a
href = "mailto:xAP_developer-fullfeatured@xxxxxxx?subject=Change
Delivery Format: Fully Featured">Switch to Fully Featured</a>
<br>
<a href="http://groups.yahoo.com/group/xAP_developer;_ylc=X3oDMTJkcThraTZsBF9TAzk3NDc2NTkwBGdycElkAzk2Mjk0NzYEZ3Jwc3BJZAMxNzA1MDA3NzA5BHNlYwNmdHIEc2xrA2hwZgRzdGltZQMxMTcxMzI0NDM4">
Visit Your Group
</a>
<a href="http://docs.yahoo.com/info/terms/">
Yahoo! Groups Terms of Use
</a>
<a href="mailto:xAP_developer-unsubscribe@xxxxxxx?subject=Unsubscribe">
Unsubscribe
</a>
<br>
</div>
<br>
<!-- **end egp html banner** -->
<span style="color: white;"/>__,_._,___</span>
</body>
</html>
--------------040009060703080007060409--
xAP_Development Main Index |
xAP_Development Thread Index |
xAP_Development Home |
Archives Home
|