<?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>topic Re: GetMeasurements NHS3100 in Sensors</title>
    <link>https://community.nxp.com/t5/Sensors/GetMeasurements-NHS3100/m-p/1536983#M7128</link>
    <description>&lt;P&gt;Hi MarcoT,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The maximum amount of samples returned in one GetMeasurements (0x46) transaction is defined in the NHS firmware. The actual amount of samples returned is contained in the GetMeasurements response structure.&lt;/P&gt;
&lt;P&gt;As an example, for a recent Tlogger app the maximum is 232 samples (x16bit). When the end of the log is hit, less samples are returned. (Never hardcode this number!)&lt;/P&gt;
&lt;P&gt;Reading the full log can be done in the following way:&lt;/P&gt;
&lt;P&gt;(1) set OFFSET = 0&lt;/P&gt;
&lt;P&gt;(2) execute GetMeasurements with offset "OFFSET" -&amp;gt; it returns the offset, the number of samples returned = N, and the N samples.&lt;/P&gt;
&lt;P&gt;(3) while N&amp;gt;0:&amp;nbsp; OFFSET = OFFSET + N; goto (2)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Example output:&lt;/P&gt;
&lt;P&gt;OFFSET, N&lt;/P&gt;
&lt;P&gt;0 232&lt;/P&gt;
&lt;P&gt;232 232&lt;/P&gt;
&lt;P&gt;464 232&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;24360 232&lt;/P&gt;
&lt;P&gt;24592 151&lt;/P&gt;
&lt;P&gt;24743 0 -&amp;gt; done&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Patrick&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2022 08:46:31 GMT</pubDate>
    <dc:creator>patrickgeens</dc:creator>
    <dc:date>2022-10-13T08:46:31Z</dc:date>
    <item>
      <title>GetMeasurements NHS3100</title>
      <link>https://community.nxp.com/t5/Sensors/GetMeasurements-NHS3100/m-p/1532557#M7117</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Currently I'm trying to get the logged measurements from an iOS native app via NFC.&lt;/P&gt;&lt;P&gt;I can read some measurements by sending the command [0x46,0x00,0x00,0x00] where the last 0x00 are the offset bytes.&lt;/P&gt;&lt;P&gt;For example when there are 1423 measurements and i want to have the latest 200 i sent:&lt;/P&gt;&lt;P&gt;[0x46,0x00,0xC7,0x04]&lt;/P&gt;&lt;P&gt;04:C7 = 1223 so to get the 200 measurements i have to put the offset to 1223&lt;/P&gt;&lt;P&gt;But as far as I understand you can't control how many samples you want to read other then changing the offset value, or do I miss something?&lt;/P&gt;&lt;P&gt;The problem is that if you want to read 1423 measurements i don't get a result back, only the response:&lt;/P&gt;&lt;P&gt;46:01:00:00:00:00:00:00:00:00:00:00:&lt;/P&gt;&lt;P&gt;Think the amount of measurements is to big to sent it in 1 message, so how can I do paging, let's say I want measurement 0 to 100, 100 to 200 etc?&lt;/P&gt;&lt;P&gt;Many thanks if you want to give me some direction, what I'm doing wrong, or that i miss something.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2022 10:54:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/GetMeasurements-NHS3100/m-p/1532557#M7117</guid>
      <dc:creator>MarcoT</dc:creator>
      <dc:date>2022-10-05T10:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: GetMeasurements NHS3100</title>
      <link>https://community.nxp.com/t5/Sensors/GetMeasurements-NHS3100/m-p/1536983#M7128</link>
      <description>&lt;P&gt;Hi MarcoT,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The maximum amount of samples returned in one GetMeasurements (0x46) transaction is defined in the NHS firmware. The actual amount of samples returned is contained in the GetMeasurements response structure.&lt;/P&gt;
&lt;P&gt;As an example, for a recent Tlogger app the maximum is 232 samples (x16bit). When the end of the log is hit, less samples are returned. (Never hardcode this number!)&lt;/P&gt;
&lt;P&gt;Reading the full log can be done in the following way:&lt;/P&gt;
&lt;P&gt;(1) set OFFSET = 0&lt;/P&gt;
&lt;P&gt;(2) execute GetMeasurements with offset "OFFSET" -&amp;gt; it returns the offset, the number of samples returned = N, and the N samples.&lt;/P&gt;
&lt;P&gt;(3) while N&amp;gt;0:&amp;nbsp; OFFSET = OFFSET + N; goto (2)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Example output:&lt;/P&gt;
&lt;P&gt;OFFSET, N&lt;/P&gt;
&lt;P&gt;0 232&lt;/P&gt;
&lt;P&gt;232 232&lt;/P&gt;
&lt;P&gt;464 232&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;24360 232&lt;/P&gt;
&lt;P&gt;24592 151&lt;/P&gt;
&lt;P&gt;24743 0 -&amp;gt; done&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Kind regards,&lt;/P&gt;
&lt;P&gt;Patrick&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 08:46:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/GetMeasurements-NHS3100/m-p/1536983#M7128</guid>
      <dc:creator>patrickgeens</dc:creator>
      <dc:date>2022-10-13T08:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: GetMeasurements NHS3100</title>
      <link>https://community.nxp.com/t5/Sensors/GetMeasurements-NHS3100/m-p/1537019#M7129</link>
      <description>&lt;P&gt;Thanks for your answer Patrick!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 09:30:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/GetMeasurements-NHS3100/m-p/1537019#M7129</guid>
      <dc:creator>MarcoT</dc:creator>
      <dc:date>2022-10-13T09:30:54Z</dc:date>
    </item>
  </channel>
</rss>

