<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl-pl">
<link rel="self" type="application/atom+xml" href="https://forum.atnel.pl/feed.php?f=4&amp;t=9007&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2014-10-29T00:46:49+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=4&amp;t=9007&amp;mode</id>
<entry>
<author><name><![CDATA[icer_cmg]]></name></author>
<updated>2014-10-29T00:46:49+01:00</updated>
<published>2014-10-29T00:46:49+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9007&amp;p=101337#p101337</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9007&amp;p=101337#p101337"/>
<title type="html"><![CDATA[Re: UART problem z parsowaniem danych]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9007&amp;p=101337#p101337"><![CDATA[
<!-- l --><a class="postlink-local" href="http://forum.atnel.pl/post35459.html?hilit=taki%20tam%20niby%20gps#p35459" >post35459.html?hilit=taki%20tam%20niby%20gps#p35459</a><!-- l --><br /><!-- l --><a class="postlink-local" href="http://forum.atnel.pl/post80770.html?hilit=gps#p80770" >post80770.html?hilit=gps#p80770</a><!-- l --><br /><br />Prześledź<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1636">icer_cmg</a> — 29 paź 2014, o 00:46</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[atmel]]></name></author>
<updated>2014-10-29T00:40:56+01:00</updated>
<published>2014-10-29T00:40:56+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9007&amp;p=101336#p101336</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9007&amp;p=101336#p101336"/>
<title type="html"><![CDATA[Re: UART problem z parsowaniem danych]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9007&amp;p=101336#p101336"><![CDATA[
Brak alokacji pamięci kończy się &quot;crash'em&quot; aplikacji...<br /><br />Nalepiej zamień &quot;<strong>char *token;</strong>&quot; na &quot;<strong>char token[7];</strong>&quot;.<br />W przypadku zmiennej &quot;reszta&quot; jest ta sama sytuacja - brak zaalokowanej pamięci. Używaj zapisów tablicowych dla łańcuchów znaków to będzie łatwiej na początku, później możesz przerzucić się na &quot;malloc/calloc&quot; itd.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=1183">atmel</a> — 29 paź 2014, o 00:40</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[morq]]></name></author>
<updated>2014-10-29T00:11:30+01:00</updated>
<published>2014-10-29T00:11:30+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9007&amp;p=101332#p101332</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9007&amp;p=101332#p101332"/>
<title type="html"><![CDATA[UART problem z parsowaniem danych]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9007&amp;p=101332#p101332"><![CDATA[
Witam,<br /><br />Korzystając z programu zamieszczonego w greenbook'u chciałbym odbierać dane z odbiornika GPS. Wzorując się na kodzie z książki dopisałem funkcje:<br /><br />[syntax=c]void parser_uart_data(char *pbuf) {<br /><br />char *reszta;<br />char *token;<br /><br />token = strtok_r(pbuf, &quot;,&quot;, &amp;reszta);<br />uart_puts(token);//&lt;--- Sprawdzanie zawartości<br />uart_puts(&quot;\r\n&quot;);<br /><br /><br />if(token &amp;&amp; (strcmp(token, &quot;$GPGGA&quot;) == 0)) {<br />uart_puts(token);<br />uart_puts(&quot;\r\n&quot;);<br />token = strtok_r(NULL, &quot;,&quot;, &amp;reszta);<br />}<br />}[/syntax]<br /><br />Jak widać interesuje mnie odczyt $GPGGA, ale problem w tym, że do tokenu nigdy nie jest on zapisywany. Sprawdzając w terminalu mam tylko dostęp do dwóch innych ramek. <br /><br />Czy problem będzie wynikał z przerwaniem w ISR( USART_RXC_vect ) ?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=5940">morq</a> — 29 paź 2014, o 00:11</p><hr />
]]></content>
</entry>
</feed>