<?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[Little endian]]></title><description><![CDATA[<p dir="auto">Hi All,</p>
<p dir="auto">how to set the data format "little endian" in mango?<br />
I must put the variable in a meta data source?<br />
If yes, what script should I enter?</p>
<p dir="auto">thanks</p>
]]></description><link>https://forum.mango-os.com/topic/1021/little-endian</link><generator>RSS for Node</generator><lastBuildDate>Tue, 14 Jul 2026 16:38:46 GMT</lastBuildDate><atom:link href="https://forum.mango-os.com/topic/1021.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 11 Jun 2012 16:29:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Little endian on Tue, 12 Jun 2012 18:50:43 GMT]]></title><description><![CDATA[<p dir="auto">Sure, you can do something like that.</p>
]]></description><link>https://forum.mango-os.com/post/6454</link><guid isPermaLink="true">https://forum.mango-os.com/post/6454</guid><dc:creator><![CDATA[mlohbihler]]></dc:creator><pubDate>Tue, 12 Jun 2012 18:50:43 GMT</pubDate></item><item><title><![CDATA[Reply to Little endian on Tue, 12 Jun 2012 03:28:37 GMT]]></title><description><![CDATA[<p dir="auto">I really need to reverse the byte order of a variable.<br />
I can do meta data source with a command like the following?</p>
<p dir="auto">unsigned short int Endian_Word_Conversion(unsigned short int word) {<br />
return ((word&gt;&gt;8)&amp;0x00FF) | ((word&lt;&lt;8)&amp;0xFF00)  ;<br />
}</p>
<p dir="auto">where 'word' is, for example, p241.value or p241.other</p>
<p dir="auto">any ideas?</p>
<p dir="auto">thanks</p>
]]></description><link>https://forum.mango-os.com/post/6452</link><guid isPermaLink="true">https://forum.mango-os.com/post/6452</guid><dc:creator><![CDATA[alberto]]></dc:creator><pubDate>Tue, 12 Jun 2012 03:28:37 GMT</pubDate></item><item><title><![CDATA[Reply to Little endian on Mon, 11 Jun 2012 20:52:46 GMT]]></title><description><![CDATA[<p dir="auto">Yes, strange. Is this a relatively new model? I wonder if they're also swapping things like the CRC.</p>
]]></description><link>https://forum.mango-os.com/post/6450</link><guid isPermaLink="true">https://forum.mango-os.com/post/6450</guid><dc:creator><![CDATA[mlohbihler]]></dc:creator><pubDate>Mon, 11 Jun 2012 20:52:46 GMT</pubDate></item><item><title><![CDATA[Reply to Little endian on Mon, 11 Jun 2012 19:24:59 GMT]]></title><description><![CDATA[<p dir="auto">I use that because the slave provides the data in this format.<br />
The specifications of the device indicate that the protocol is Modbus RTU.<br />
Very strange.</p>
<p dir="auto">thanks</p>
]]></description><link>https://forum.mango-os.com/post/6449</link><guid isPermaLink="true">https://forum.mango-os.com/post/6449</guid><dc:creator><![CDATA[alberto]]></dc:creator><pubDate>Mon, 11 Jun 2012 19:24:59 GMT</pubDate></item><item><title><![CDATA[Reply to Little endian on Mon, 11 Jun 2012 18:12:44 GMT]]></title><description><![CDATA[<p dir="auto">Seems unlikely at the moment. The Modbus spec - such as it is - is clear on byte ordering as i recall, and honestly, you're the first to ask for little endian. Why do you need it?</p>
]]></description><link>https://forum.mango-os.com/post/6448</link><guid isPermaLink="true">https://forum.mango-os.com/post/6448</guid><dc:creator><![CDATA[mlohbihler]]></dc:creator><pubDate>Mon, 11 Jun 2012 18:12:44 GMT</pubDate></item><item><title><![CDATA[Reply to Little endian on Mon, 11 Jun 2012 18:08:41 GMT]]></title><description><![CDATA[<p dir="auto">Yes,</p>
<p dir="auto">the protocol is Modbus.<br />
So there is no chance?<br />
I use the latest version of m2m mango.<br />
If not, think that in future there will be?</p>
<p dir="auto">thanks</p>
]]></description><link>https://forum.mango-os.com/post/6447</link><guid isPermaLink="true">https://forum.mango-os.com/post/6447</guid><dc:creator><![CDATA[alberto]]></dc:creator><pubDate>Mon, 11 Jun 2012 18:08:41 GMT</pubDate></item><item><title><![CDATA[Reply to Little endian on Mon, 11 Jun 2012 17:44:11 GMT]]></title><description><![CDATA[<p dir="auto">To be clear, i assume you are talking about Modbus. The implementation currently does not have an endian flag.</p>
]]></description><link>https://forum.mango-os.com/post/6446</link><guid isPermaLink="true">https://forum.mango-os.com/post/6446</guid><dc:creator><![CDATA[mlohbihler]]></dc:creator><pubDate>Mon, 11 Jun 2012 17:44:11 GMT</pubDate></item><item><title><![CDATA[Reply to Little endian on Mon, 11 Jun 2012 17:37:37 GMT]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">the registers are transmitted as words of 16 bits, LSByte first, followed by MSByte.<br />
How to do the reverse in mango?</p>
<p dir="auto">thank you</p>
]]></description><link>https://forum.mango-os.com/post/6445</link><guid isPermaLink="true">https://forum.mango-os.com/post/6445</guid><dc:creator><![CDATA[alberto]]></dc:creator><pubDate>Mon, 11 Jun 2012 17:37:37 GMT</pubDate></item><item><title><![CDATA[Reply to Little endian on Mon, 11 Jun 2012 17:32:13 GMT]]></title><description><![CDATA[<p dir="auto">What do you want to have be LE? Data storage, transmission, a particular comm protocol? And why?</p>
]]></description><link>https://forum.mango-os.com/post/6444</link><guid isPermaLink="true">https://forum.mango-os.com/post/6444</guid><dc:creator><![CDATA[mlohbihler]]></dc:creator><pubDate>Mon, 11 Jun 2012 17:32:13 GMT</pubDate></item></channel></rss>