<?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=24&amp;t=12345&amp;mode" />

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2015-07-17T20:50:21+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=24&amp;t=12345&amp;mode</id>
<entry>
<author><name><![CDATA[Morcinek92]]></name></author>
<updated>2015-07-17T20:50:21+01:00</updated>
<published>2015-07-17T20:50:21+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134837#p134837</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134837#p134837"/>
<title type="html"><![CDATA[Re: C# = Wysyłanie łańcucha znaków]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134837#p134837"><![CDATA[
Proszę bardzo  : <br /><br /><a href="http://forum.atnel.pl/topic1226.html"  class="postlink">http://forum.atnel.pl/topic1226.html</a><br /><br />Przed ostatni post na pierwszej stronie <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" />)<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=903">Morcinek92</a> — 17 lip 2015, o 20:50</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[RafPe]]></name></author>
<updated>2015-07-17T20:47:50+01:00</updated>
<published>2015-07-17T20:47:50+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134836#p134836</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134836#p134836"/>
<title type="html"><![CDATA[Re: C# = Wysyłanie łańcucha znaków]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134836#p134836"><![CDATA[
To wrzuc linka żeby inni którzy natrafia na ten sam problem mogli łatwo go odnaleźć <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><br /><br /><br />Sent from my iPhone using Tapatalk<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=4344">RafPe</a> — 17 lip 2015, o 20:47</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Morcinek92]]></name></author>
<updated>2015-07-17T20:13:50+01:00</updated>
<published>2015-07-17T20:13:50+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134833#p134833</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134833#p134833"/>
<title type="html"><![CDATA[Re: C# = Wysyłanie łańcucha znaków]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134833#p134833"><![CDATA[
Poradziłem sobie ! <br /><br />np. tak <br />[syntax=csharp]private void rx_parse(object sender, EventArgs e)<br />        {<br /> <br />            tab_size++;<br /> <br />            string&#91;&#93; dane = new string&#91;5&#93;;<br />            dane = rx_str.Split(',');<br /> <br />            /**WYŚWIETLANIE TEMPERATURY I NUMERÓW SERYJNYCH**/<br /> <br />            textBox1.Text = dane&#91;0&#93; + &quot;°C&quot;;<br />            textBox2.Text = dane&#91;1&#93; + &quot;°C&quot;;<br />            label3.Text   = dane&#91;2&#93;.ToUpper();<br />            label4.Text   = dane&#91;3&#93;.ToUpper();<br /> <br />            chart1.Series&#91;&quot;Series1&quot;&#93;.Points.AddY(Convert.ToDouble(dane&#91;0&#93;));<br />            chart1.Series&#91;&quot;Series2&quot;&#93;.Points.AddY(Convert.ToDouble(dane&#91;1&#93;));<br />            notifyIcon1.Text = &quot;T1: &quot; + dane&#91;0&#93; + &quot;T2: &quot; + dane&#91;1&#93;;[/syntax]<br /><br />Świetnie jest to opisane w poradniku który znajduję się na forum  !<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=903">Morcinek92</a> — 17 lip 2015, o 20:13</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Morcinek92]]></name></author>
<updated>2015-07-15T20:15:06+01:00</updated>
<published>2015-07-15T20:15:06+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134642#p134642</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134642#p134642"/>
<title type="html"><![CDATA[Re: C# = Wysyłanie łańcucha znaków]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134642#p134642"><![CDATA[
oki doki , <br />a czy masz moze jakis przyklad  ?? <br /><br />bo np. nie jasne jest dla mnie &quot;odkad&quot;  co oowinienem tutaj wpisac jesli chce akurar wartosc minimalna a przed nia w lancuchu jest max to powinienem dac (max, 3)  ? <br /><br />odebrany_lancuch mam prYrownac do rx ? jako cale dane ? <br /> <br />a wynik gotowy  juz moge wyswietlac w textboxie ?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=903">Morcinek92</a> — 15 lip 2015, o 20:15</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Krauser]]></name></author>
<updated>2015-07-15T19:00:28+01:00</updated>
<published>2015-07-15T19:00:28+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134627#p134627</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134627#p134627"/>
<title type="html"><![CDATA[Re: C# = Wysyłanie łańcucha znaków]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134627#p134627"><![CDATA[
[syntax=csharp]byte wynik = Byte.Parse(odebrany_lancuch.Substring(odkad, ile_znakow));[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=465">Krauser</a> — 15 lip 2015, o 19:00</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Morcinek92]]></name></author>
<updated>2015-07-15T18:11:34+01:00</updated>
<published>2015-07-15T18:11:34+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134623#p134623</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134623#p134623"/>
<title type="html"><![CDATA[Re: C# = Wysyłanie łańcucha znaków]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134623#p134623"><![CDATA[
Dokładnie tak, już działa mi aplikacja  , a mam jeszcze pytanie odnośnie łańcucha wysyłanego z uC do aplikacji. <br /><br />Chce wysłane wartości żeby zostały zapisane w pamięci eeprom . Po zamknięciu aplikacji i włączeniu jej ponownie i wciśnięciu przycisku POŁĄCZ zostało wysłane również zapytanie o  aktualny STAN . Natomiast uC wysyła mi łańcuch : STAN= DIODA_ON, TEMP: 25st., MAX= 20 , MIN=16, HIZ= 1 .  <br />Jak teraz roździelić je aby trafiły do odpowiednich miejsc ??  bo aktualnie odbiór mam tak zrealizowany : <br /><br />[syntax=csharp]private void serialPort1_DataReceived(object sender, SerialDataReceivedEventArgs e)<br />        {<br />            Odbior = serialPort1.ReadTo(&quot;\n&quot;);<br />            this.Invoke(new EventHandler(displayText)); //instalacja zdarzenia parsującego odebrany łańcuch<br />        }<br /><br />        private void displayText(object o, EventArgs e)<br />        {<br />            string&#91;&#93; dane = new string&#91;2&#93;;<br />            dane = Odbior.Split(';');<br />            textBox1.Text = dane&#91;0&#93;+&quot;°C&quot;;<br />            <br />        }[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=903">Morcinek92</a> — 15 lip 2015, o 18:11</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Krauser]]></name></author>
<updated>2015-07-15T17:34:46+01:00</updated>
<published>2015-07-15T17:34:46+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134619#p134619</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134619#p134619"/>
<title type="html"><![CDATA[Re: C# = Wysyłanie łańcucha znaków]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134619#p134619"><![CDATA[
serialPort1.WriteLine(&quot;0$0D$0A&quot;);<br />zastąp<br />serialPort1.WriteLine(&quot;\r\n&quot;);<br />a<br />serialPort1.WriteLine( d );<br />zamień na<br />serialPort1.WriteLine( a+&quot;,&quot;+b+&quot;,&quot;+c );<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=465">Krauser</a> — 15 lip 2015, o 17:34</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Morcinek92]]></name></author>
<updated>2015-07-15T17:15:43+01:00</updated>
<published>2015-07-15T17:15:43+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134617#p134617</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134617#p134617"/>
<title type="html"><![CDATA[C# = Wysyłanie łańcucha znaków]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=12345&amp;p=134617#p134617"><![CDATA[
Hejka, <br /><br />Mam 3 textboxy w swojej aplikacji . <br /><br />1 textbox ma nazwę - Max, 2 - Min , 3 - Hiz .  oraz przycisk : USTAW<br /><br /><a href="http://forum.atnel.pl/_obrazki/o/903/8715906bbe152ececa1a22c727ba3efd.PNG"  class="postlink"><img src="http://forum.atnel.pl/_obrazki/o/903/8715906bbe152ececa1a22c727ba3efd.PNG" alt="Obrazek" /></a><br /><br />Chciałbym żeby po wciśnięciu przycisku <br /><br />Na port został wysłany łańcuch znaków  TERM=max,min,hiz$0D$0A<br /><br />w textboxy są wpisywane liczby. <br /><br />[syntax=csharp]private void Ustaw_Click_1(object sender, EventArgs e)<br />        {<br />            int a, b, c, d;<br /><br />            if (serialPort1.IsOpen)<br />            {<br />                a = Convert.ToInt16(max.Text);<br />                b = Convert.ToInt16(min.Text);<br />                c = Convert.ToInt16(hiz.Text);<br />         <br />                d = a,b,c;<br /><br />                serialPort1.WriteLine(&quot;TERM=&quot;);<br />                serialPort1.WriteLine( d );<br />                serialPort1.WriteLine(&quot;0$0D$0A&quot;);[/syntax]<br /><br />Ja myślałem w taki sposób no ale..<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=903">Morcinek92</a> — 15 lip 2015, o 17:15</p><hr />
]]></content>
</entry>
</feed>