<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.apple-style-span
{mso-style-name:apple-style-span;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" style="text-indent:.5in">No, just as a variable string descriptor.<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<p class="MsoNormal"><span style="color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-right:.5in"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">By “variable string descriptor”, do you mean what is contained in the example in the App Note? I’m just asking for clarification, in
case variable string descriptor is something different than shown there.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-right:.5in"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-right:.5in"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">The way they do the string descriptors in the example is how I have mine now. They return a size and address, but it is to something
that was defined at compile time. I guess I’ve been fixated on that, so I don’t know if I can simply pass a different string that what was defined before. And I don’t know how to handle something of an unknown size (though in my case, the MAX size of the
serial number can be defined)<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-right:.5in"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-right:.5in"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">That’s why I was asking about the variable string descriptor...it sounds more like something where you can pass a string of any size
and address, which would definitely be what I’m looking for.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-right:.5in"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-right:.5in"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Looking at the data being passed, I realized that battery.type is something else that I possibly won’t know until the code is running.
Our UPS can use different attached batteries, and will be able to discern what it is at runtime, and that’s when it would be able to report battery.type.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-right:.5in"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-right:.5in"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Thanks for the help Charles…that is a very good link to the Appnote considering you haven’t done PIC32 work.
</span><span style="font-size:11.0pt;font-family:Wingdings;color:#1F497D">J</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"> My google skills failed me.<o:p></o:p></span></p>
<p class="MsoNormal" style="margin-right:.5in"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D">Rob Groner<br>
Software Engineer Level II</span><span style="color:#1F497D"><br>
<br>
</span><b><span style="color:#A70C28">RTD Embedded Technologies, Inc.</span></b><span style="color:#1F497D"><br>
</span><b><i><span style="font-size:10.0pt;color:black">ISO 9001 and AS9100 Certified</span></i></b><span style="font-size:10.0pt;color:black"><br>
Ph: +1 814-234-8087<br>
</span><span style="font-size:10.0pt;color:#1F497D"><a href="http://www.rtd.com/">www.rtd.com</a><o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal" style="margin-right:.5in"><span style="font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D"><o:p> </o:p></span></p>
</div>
</blockquote>
</div>
</body>
</html>