<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[packed ASCII]]></title><description><![CDATA[<p>Hallo,<br />
ich empfange über RS232 24 Bytes die 32 Zeichen darstellen, ist also mit Packed ASCII codiert.<br />
Kennt denn jemand eine gute Seite über Packed ASCII?<br />
Oder möchte mir jemand erkären wie das funktioniert?</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/174723/packed-ascii</link><generator>RSS for Node</generator><lastBuildDate>Sat, 04 Apr 2026 11:34:03 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/174723.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 02 Mar 2007 14:41:41 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to packed ASCII on Fri, 02 Mar 2007 14:41:41 GMT]]></title><description><![CDATA[<p>Hallo,<br />
ich empfange über RS232 24 Bytes die 32 Zeichen darstellen, ist also mit Packed ASCII codiert.<br />
Kennt denn jemand eine gute Seite über Packed ASCII?<br />
Oder möchte mir jemand erkären wie das funktioniert?</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1238135</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1238135</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Fri, 02 Mar 2007 14:41:41 GMT</pubDate></item><item><title><![CDATA[Reply to packed ASCII on Fri, 02 Mar 2007 15:04:08 GMT]]></title><description><![CDATA[<p>schau mal nach BASE64, ist eventuell das selbe format, von packet ascii hab ich leider noch nie was gehoert.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1238153</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1238153</guid><dc:creator><![CDATA[rapso]]></dc:creator><pubDate>Fri, 02 Mar 2007 15:04:08 GMT</pubDate></item><item><title><![CDATA[Reply to packed ASCII on Fri, 02 Mar 2007 15:51:30 GMT]]></title><description><![CDATA[<p>rapso schrieb:</p>
<blockquote>
<p>schau mal nach BASE64, ist eventuell das selbe format...</p>
</blockquote>
<p>nee, base64 macht ja mehr statt weniger.<br />
packed ascii ist so'n kompressionsformat, das 4 zeichen in 3 bytes packt.<br />
guck mal bei google, das ist irgendwo beschrieben...<br />
<img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1238175</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1238175</guid><dc:creator><![CDATA[ten]]></dc:creator><pubDate>Fri, 02 Mar 2007 15:51:30 GMT</pubDate></item><item><title><![CDATA[Reply to packed ASCII on Fri, 02 Mar 2007 16:32:54 GMT]]></title><description><![CDATA[<blockquote>
<p>HART makes limited use of data compression in the form of Packed ASCII. Normally, there are 256 possible ASCII characters, so that a full byte is needed to represent a character. Packed ASCII is a subset of full ASCII and uses only 64 of the 256 possible characters. These 64 characters are the capitalized alphabet, numbers 0 through 9, and a few punctuation marks. Many HART parameters need only this limited ASCII set, which means that data can be compressed to 3/4 of normal. This improves transmission speed, especially if the textual parameter being communicated is a large one.</p>
<p>Since only full bytes can be transmitted, the 3/4 compression is fully realized only when the number of uncompressed bytes is a multiple of 4. Any fractional part requires a whole byte. Thus, if U is the number of uncompressed bytes, and T the number of transmitted bytes; find T = (3*U)/4 and increase any fractional part to 1. As examples, U = 3, 7, 8, and 9 result in T = 3, 6, 6, and 7.</p>
<p>The rule for converting from ASCII to Packed ASCII is just to remove bits 6 and 7 (two most significant). An example is the character &quot;M&quot;. The full binary code to represent this is 0100,1101. The packed binary code is 00,1101. The rules for conversion from packed ASCII back to ASCII are (1) set bit 7 = 0 and (2) set bit 6 = complement of packed ASCII bit 5.</p>
<p>Note that, with some exceptions, HART Slaves don't need to do the compression or know anything about the compression. They simply store and re-transmit the already compressed data. Again, this is an instance where the more difficult software is placed in the device (Master) that is more capable of dealing with it.</p>
</blockquote>
<p>Vielleicht hilft dir ja das weiter.<br />
Quelle: <a href="http://www.analogservices.com/about_part2.htm" rel="nofollow">http://www.analogservices.com/about_part2.htm</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1238204</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1238204</guid><dc:creator><![CDATA[Brutus]]></dc:creator><pubDate>Fri, 02 Mar 2007 16:32:54 GMT</pubDate></item><item><title><![CDATA[Reply to packed ASCII on Sun, 04 Mar 2007 18:20:30 GMT]]></title><description><![CDATA[<p>Vielen Dank für eure Antworten.<br />
Bin mal wieder ein Stück schlauer geworden. <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1239129</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1239129</guid><dc:creator><![CDATA[maRKus23]]></dc:creator><pubDate>Sun, 04 Mar 2007 18:20:30 GMT</pubDate></item></channel></rss>