<?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>AGPS with nrf cloud, Cannot parse schema version: 123</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75704/agps-with-nrf-cloud-cannot-parse-schema-version-123</link><description>Hello, 
 I come to you because I wanted to recover the GPS data in my project for that I based on the sample agps, however when I launch my project at the time of the reception of data of the cloud I have this error: 
 ASSERTION FAIL [version == (1)]</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 May 2021 11:15:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75704/agps-with-nrf-cloud-cannot-parse-schema-version-123" /><item><title>RE: AGPS with nrf cloud, Cannot parse schema version: 123</title><link>https://devzone.nordicsemi.com/thread/312614?ContentTypeID=1</link><pubDate>Mon, 31 May 2021 11:15:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fc53266-b3ca-4352-9820-95ff9991f09f</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello again Tatiana,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Thanks a lot for your feedback! So, the&amp;nbsp;ASSERT in &lt;em&gt;nrf_cloud_agps.c,&lt;/em&gt; which actually is located on line 850, is the following:&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;version = buf[NRF_CLOUD_AGPS_BIN_SCHEMA_VERSION_INDEX];

parsed_len += NRF_CLOUD_AGPS_BIN_SCHEMA_VERSION_SIZE;



__ASSERT(version == NRF_CLOUD_AGPS_BIN_SCHEMA_VERSION,

&amp;quot;Cannot parse schema version: %d&amp;quot;, version);

&lt;/pre&gt;&lt;span style="color:rgba(212, 212, 212, 1);"&gt;&lt;span style="font-family:&amp;#39;Droid Sans Mono&amp;#39;, monospace, monospace, &amp;#39;Droid Sans Fallback&amp;#39;;"&gt;&lt;span style="font-size:small;"&gt;&lt;span&gt;&lt;span style="color:rgba(156, 220, 254, 1);"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;The binary schema version is supposed to be 1, as defined in &lt;em&gt;nrf_cloud_agps_schema_v1.h:16&lt;/em&gt;:&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define NRF_CLOUD_AGPS_BIN_SCHEMA_VERSION (1)&lt;/pre&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;However, the value which comes in from your application via the argument evt-&amp;gt;data.msg.buf is obviously 123, which causes the ASSERT.&lt;/p&gt;
&lt;p lang="en-GB"&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;int err = gps_process_agps_data(evt-&amp;gt;data.msg.buf, evt-&amp;gt;data.msg.len);&lt;/pre&gt;&lt;/p&gt;
&lt;p lang="en-GB"&gt;A good starting point might be to check why your application applies this value to the cloud message.&lt;/p&gt;
&lt;p lang="en-GB"&gt;I hope this will help you!&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AGPS with nrf cloud, Cannot parse schema version: 123</title><link>https://devzone.nordicsemi.com/thread/312413?ContentTypeID=1</link><pubDate>Fri, 28 May 2021 13:48:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3c56eac-05a5-40b0-902c-24301ca5cdeb</guid><dc:creator>ActiTAG</dc:creator><description>&lt;p&gt;Hello, Thank you for your answer.&lt;br /&gt;&lt;br /&gt;When I run the agps sample project, I have no errors and the GPS data is received and sent to the cloud.&amp;nbsp; When I create a project in which I take parts of the code when the event CLOUD_EVT_DATA_RECEIVED is triggered in the function gps_process_agps_data I have the error that I told you above. I&amp;#39;m using the SDK 1.5.1.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think that when I take parts of the code, despite a copy of the configuration, there must be a step or other that is missing to fix the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AGPS with nrf cloud, Cannot parse schema version: 123</title><link>https://devzone.nordicsemi.com/thread/312385?ContentTypeID=1</link><pubDate>Fri, 28 May 2021 13:01:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0b0eaec3-5eb8-49a4-8262-bf1b49e3ea6b</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p lang="en-GB"&gt;Hello Tatiana,&lt;/p&gt;
&lt;p lang="en-GB"&gt;I unfortunately do not have a straight forward answer to your problem, but I’ll check this internally and come back to you as soon as possible.&lt;/p&gt;
&lt;p lang="en-GB"&gt;Would you mind elaborate what you mean by “&lt;em&gt;...launch my project at the time of the reception of data of the cloud...&lt;/em&gt;” compared to “&lt;em&gt;This problem does not appear when I run the sample, ...&lt;/em&gt;”, just to make sure I understand the problem you are facing? Thanks!&lt;/p&gt;
&lt;p lang="en-GB"&gt;Regards,&lt;/p&gt;
&lt;p lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>