<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Help: why is the output is different than input?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13077/help-why-is-the-output-is-different-than-input</link><description>Hello! 
 I&amp;#39;m trying to get the 16 bit ADC value as 2 of 8 bit array from nRF51 development kit over bluetooth to MCP, but when it displays on the MCP the value is &amp;quot;swap&amp;quot; for example is input value is 0X1020 then, in the MCP it shows &amp;quot;(0x) 20-10 
 Here</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Apr 2016 12:07:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13077/help-why-is-the-output-is-different-than-input" /><item><title>RE: Help: why is the output is different than input?</title><link>https://devzone.nordicsemi.com/thread/49876?ContentTypeID=1</link><pubDate>Mon, 11 Apr 2016 12:07:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:117e2396-93c6-4cb1-8a33-3d6ca6a8335d</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;As @rols(RK) and @awneil has pointed out, there is nothing to fix since MCP just displays raw bytes.  It is up to the application to interpret the data that is received over the BLE link.&lt;/p&gt;
&lt;p&gt;-Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help: why is the output is different than input?</title><link>https://devzone.nordicsemi.com/thread/49881?ContentTypeID=1</link><pubDate>Sat, 09 Apr 2016 15:34:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e6e692a1-265c-4091-932d-683c6f6bbeea</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;R K, you said that the value i transfer is little endian, what if i transfer it as big endian. Will it be store in opposite memory address? If so, how could i do it? Thanks for your help!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help: why is the output is different than input?</title><link>https://devzone.nordicsemi.com/thread/49880?ContentTypeID=1</link><pubDate>Sat, 09 Apr 2016 14:55:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dfb135b-af67-4307-9e76-905c5639d4f8</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;As RK says, all the MCP knows is raw bytes - it has no idea what interpretation you might want to put on those bytes.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help: why is the output is different than input?</title><link>https://devzone.nordicsemi.com/thread/49879?ContentTypeID=1</link><pubDate>Sat, 09 Apr 2016 14:03:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fd59652-46fb-4aa7-b34d-077d0685703d</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;I have no clue - I&amp;#39;ve never used the Master Control Panel so I have no idea what functions it has and what data types it can display. I use Lightblue usually and in that you can tell it you have 16 bit little endian data and it shows it as a number. Perhaps if you add the data type characteristic for that data the MCP will display it in that format, and perhaps it won&amp;#39;t.&lt;/p&gt;
&lt;p&gt;But honestly this is just like looking at data with a debugger, you see bytes because that&amp;#39;s how the data actually is represented. The MCP always seemed to me to be the equivalent of a debugger for bluetooth.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help: why is the output is different than input?</title><link>https://devzone.nordicsemi.com/thread/49878?ContentTypeID=1</link><pubDate>Sat, 09 Apr 2016 13:58:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:378d9c94-f49a-463f-aae6-3b2b3b946185</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Thanks for your response. But it look very messy which it don&amp;#39;t look like it&amp;#39;s the 16 bit data. Is there any way to get this to show what its input show as?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help: why is the output is different than input?</title><link>https://devzone.nordicsemi.com/thread/49877?ContentTypeID=1</link><pubDate>Sat, 09 Apr 2016 11:13:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63e87214-a72d-45f1-8a40-badbe5244b7a</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;The value is transferred little-endian, the MCP just shows the bytes in order they arrive. Nothing needs swapping, it&amp;#39;s fine the way it is. The MCP is just a viewer of data, if you have an actual application on the other side reading the data it would know the two bytes are little-endian and interpret them correctly.&lt;/p&gt;
&lt;p&gt;You&amp;#39;ve tried all day to fix a problem you don&amp;#39;t have.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>