<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>NFCのトピックCreating UWP test app for NHS3100</title>
    <link>https://community.nxp.com/t5/NFC/Creating-UWP-test-app-for-NHS3100/m-p/664078#M1984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm creating a UWP test app for NHS3100. The tag is running the default firmware TLogger.&lt;/P&gt;&lt;P&gt;I'm working on Visual Studio 2017, with C# and using proximity APIs for NFC NdefLibrary and NdefLibraryExtension.&lt;BR /&gt;I'm already able to read the NHS3100 tag.&lt;/P&gt;&lt;P&gt;Now I want to send a command to read current temperature. How or what is the command to do that?&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Apr 2017 14:36:29 GMT</pubDate>
    <dc:creator>sergio_neves</dc:creator>
    <dc:date>2017-04-10T14:36:29Z</dc:date>
    <item>
      <title>Creating UWP test app for NHS3100</title>
      <link>https://community.nxp.com/t5/NFC/Creating-UWP-test-app-for-NHS3100/m-p/664078#M1984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm creating a UWP test app for NHS3100. The tag is running the default firmware TLogger.&lt;/P&gt;&lt;P&gt;I'm working on Visual Studio 2017, with C# and using proximity APIs for NFC NdefLibrary and NdefLibraryExtension.&lt;BR /&gt;I'm already able to read the NHS3100 tag.&lt;/P&gt;&lt;P&gt;Now I want to send a command to read current temperature. How or what is the command to do that?&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Apr 2017 14:36:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Creating-UWP-test-app-for-NHS3100/m-p/664078#M1984</guid>
      <dc:creator>sergio_neves</dc:creator>
      <dc:date>2017-04-10T14:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Creating UWP test app for NHS3100</title>
      <link>https://community.nxp.com/t5/NFC/Creating-UWP-test-app-for-NHS3100/m-p/664079#M1985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All communication is done using NDEF messages containing 1 MIME record. The payload in a MIME record sent from host to target is called a '&lt;EM&gt;command&lt;/EM&gt;'; the data prepared by the NHS3100 ARM and stored in the NFC shared memory for the host to read out - overwriting the 'command' - is called '&lt;EM&gt;response&lt;/EM&gt;'.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The payload is to be formatted according to the documentation found in the SDK under &lt;EM&gt;docs/FirmwareDevelopmentDocumentation/index.html&lt;/EM&gt;, &lt;EM&gt;Modules » msg: Message Handler&lt;/EM&gt; and &lt;EM&gt;Applications » tlogger: Temperature Logger Demo Application » Message Handler Module » Protocol Extension&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In short:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the first byte indicates the message ID: for each message id a command and a response can be created&lt;/LI&gt;&lt;LI&gt;the second byte is mostly reserved and currently serves as an extra check to discriminate commands from responses.&lt;/LI&gt;&lt;LI&gt;the third and subsequent bytes - if present - are specific for each different message ID.&lt;/LI&gt;&lt;LI&gt;one command may trigger the creation of multiple responses; yet only one response will be made available immediately. To fetch subsequent responses, a special command is to be issued, which will then retrieve the oldest non-immediate response. Check the documentation for each message ID to know what can be expected.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently, all demo applications use this simple communication scheme to exchange data between host and target. There are a number of pre-defined message IDs; and each application can easily add its own application specific messages. e.g. the tlogger firmware added a &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;MEASURETEMPERATURE&lt;/SPAN&gt; (&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;50h&lt;/SPAN&gt;) message, which the tadherence firmware lacks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The command to retrieve version information: &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;02h 00h&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;When running tlogger firmware:&lt;UL&gt;&lt;LI&gt;The command to retrieve the current temperature: &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;50h 00h 07h&lt;/SPAN&gt; (7 -&amp;gt; 12 bits resolution)&lt;/LI&gt;&lt;LI&gt;The immediate response: &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;50h 01h 00h 00h 00h 00h&lt;/SPAN&gt; (00000000h -&amp;gt; command accepted, measurement in progress)&lt;/LI&gt;&lt;LI&gt;The command to fetch the second response: &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;01h 00h&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;The non-immediate response: &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;50h 01h 00h 00h 00h 00h 09h 01h&lt;/SPAN&gt; (0109h -&amp;gt; 265 decimal -&amp;gt; 26.5 degrees Celsius)&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a thorough read in the doxygen generated documentation referred to above. When this and the documentation still leave you with questions, just ask.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 06:04:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/NFC/Creating-UWP-test-app-for-NHS3100/m-p/664079#M1985</guid>
      <dc:creator>driesmoors</dc:creator>
      <dc:date>2017-04-17T06:04:56Z</dc:date>
    </item>
  </channel>
</rss>

