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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2015-01-11T12:17:19+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=12&amp;t=9923&amp;mode</id>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-11T12:17:19+01:00</updated>
<published>2015-01-11T12:17:19+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113694#p113694</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113694#p113694"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113694#p113694"><![CDATA[
po zapytaniach kończących się na bb, odpowiada coś w stylu 00 17 czyli 4 znaki<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=988">slawek3000</a> — 11 sty 2015, o 12:17</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-11T10:17:26+01:00</updated>
<published>2015-01-11T10:17:26+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113671#p113671</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113671#p113671"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113671#p113671"><![CDATA[
Próbowałem napisać kawałek kodu do zmiany LONG , ale wcale się nie zmienia<br />[syntax=basic4gl]Dim Freq_aeram As Eram Long  <br /><br />    If Zmienna_long &gt; 10000 Then<br />    Zmienna_long = Freq_aeram<br />    Else<br />    Zmienna_long = 14577500<br />    End If<br />'*** START ***<br /><br />Do<br />If Pind.7 = 0 Then<br />Incr Zmienna_long<br />String_long = Str(zmienna_long)<br />End If<br />If Pind.6 = 0 Then<br />Decr Zmienna_long<br />String_long = Str(zmienna_long)<br />End If<br />Locate 3 , 1 : Lcd Zmienna_long[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=988">slawek3000</a> — 11 sty 2015, o 10:17</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-11T07:10:21+01:00</updated>
<published>2015-01-11T07:10:21+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113661#p113661</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113661#p113661"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113661#p113661"><![CDATA[
Hej, te komendy BC a BB odczytują dokonują zmian .... tu są prawie wszystkie komendy <!-- m --><a class="postlink" href="http://www.ka7oei.com/ft817_meow.html" >http://www.ka7oei.com/ft817_meow.html</a><!-- m --> , tu też na stronie 71,72 ale szczątkowo <!-- m --><a class="postlink" href="http://www.yaesu.co.uk/files/FT-817ND_Operating%20Manual.pdf" >http://www.yaesu.co.uk/files/FT-817ND_O ... Manual.pdf</a><!-- m --> <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":-)" title="Szczęśliwy" />,  w ATMEGI-e wszystkich nie będzie <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":-)" title="Szczęśliwy" /> chce te kilkanaście podstawowych  <img src="https://forum.atnel.pl/images/smilies/icon_lol.gif" alt=":lol:" title="Śmieje się" /><br />Ok spróbuje złapać jak najwięcej  <img src="https://forum.atnel.pl/images/smilies/icon_lol.gif" alt=":lol:" title="Śmieje się" />.<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: 25 minutach ]</span></strong><br /><br />W załączniku jest log , monitor miałem załączony wcześniej więc zarejestrował chwilę aktywacji HRD z radiem<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: 31 minutach ]</span></strong><br /><br />Pliku o nazwie scaner jest praca scanera, poznasz po szybkiej zmianie freq 00 37 23 18 00 ... pierwsza transmisja scanuje UP potem scan OFF a następnie scan DOWN i znowu OFF<br /><br />W pliku z nazwą mode jest to sekwencyjne przełączanie modulacji, a mała poprawka freq 14577500 to freq 145.775.00 bo w PC wyszło 14.577.500 , próbowałem przestawić na MID-ach ale mi nie wyszło <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=988">slawek3000</a> — 11 sty 2015, o 07:10</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-10T22:44:17+01:00</updated>
<published>2015-01-10T22:44:17+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113620#p113620</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113620#p113620"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113620#p113620"><![CDATA[
WOW super  <img src="https://forum.atnel.pl/images/smilies/icon_e_biggrin.gif" alt=":D" title="Bardzo szczęśliwy" /> ,Bartek dziękuje  <br />czyli zegarek jakiś musi być do odmierzania czasu ... te nie zrozumiałe komendy to są następne kody , które wysyła PC  ... a jak dopisać kolejne komendy do obsługi np. załączam funkcję SCAN w logu wygląda tak <br /><br />SCAN UP<br /><br />0000056810.01.2015 21:40:07.828+0.0IRP_MJ_WRITEDOWN0x00000000 00 79 49 17 bc .yI.. PC wysłał SCAN UP<br />0000057110.01.2015 21:40:08.531+0.703IRP_MJ_READUP0x0000010200 .      ATMEGA wysyła potwierdzenie<br />0000057410.01.2015 21:40:08.546+0.0IRP_MJ_WRITEDOWN0x0000000000 79 00 00 bb .y...PC wysyła pytanie do Atmegi<br />0000057710.01.2015 21:40:08.562+0.015IRP_MJ_READUP0x0000000049 17 I.                        ATMEGA odpowiada UP<br />0000058010.01.2015 21:40:08.562+0.0IRP_MJ_WRITEDOWN0x0000000000 00 00 00 03 ..... PC wysyła pytanie o FREQ i mod<br />0000058310.01.2015 21:40:08.593+0.031IRP_MJ_READUP0x0000000001 41 94 61 02 .A.a. Atmega odpowiada <br /><br />potem SCAN DOWN<br /><br />0000126410.01.2015 21:40:16.359+0.0IRP_MJ_WRITEDOWN0x0000000000 79 69 17 bc .yi..PC wysyła Do Atmegi <br />0000126710.01.2015 21:40:17.046+0.687IRP_MJ_READUP0x0000010200 .     ATMEGA ODPOWIADA<br />0000127010.01.2015 21:40:17.062+0.0IRP_MJ_WRITEDOWN0x0000000000 79 00 00 bb .y...PC wysyła zapytanie o rodzaj scanu<br />0000127310.01.2015 21:40:17.093+0.031IRP_MJ_READUP0x0000000069 17 i.                   Atmega odpowiada DOWN<br />0000127610.01.2015 21:40:17.093+0.0IRP_MJ_WRITEDOWN0x0000000000 00 00 00 03 .....PC wysyła zapytanie o freq <br />0000127910.01.2015 21:40:17.125+0.031IRP_MJ_READUP0x0000000001 41 98 29 02 .A.). ATMEGA odpowiada<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=988">slawek3000</a> — 10 sty 2015, o 22:44</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-10T17:24:17+01:00</updated>
<published>2015-01-10T17:24:17+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113552#p113552</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113552#p113552"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113552#p113552"><![CDATA[
Pomiędzy radiem a PC ten wzorcowy<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=988">slawek3000</a> — 10 sty 2015, o 17:24</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-10T17:10:22+01:00</updated>
<published>2015-01-10T17:10:22+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113549#p113549</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113549#p113549"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113549#p113549"><![CDATA[
to jest podgląd między radiem(ATMEGA) a programem(PC)<br /><br />0000463610.01.2015 16:00:36.656+0.0IRP_MJ_WRITEDOWN0x0000000000 00 00 00 03 .....  PC pyta <br />0000463910.01.2015 16:00:36.687+0.031IRP_MJ_READUP0x0000000000 72 46 00 0a .rF.. ATMEGA odpowiada gdy coś się zmienia <br />0000464210.01.2015 16:00:36.687+0.0IRP_MJ_WRITEDOWN0x0000000000 72 45 00 01 .rE..PC zmienia <br />0000464510.01.2015 16:00:36.828+0.125IRP_MJ_READUP0x0000000000 .Atmega odpowiada<br />0000464810.01.2015 16:00:37.140+0.0IRP_MJ_WRITEDOWN0x0000000000 00 00 00 03 .....<br />0000465110.01.2015 16:00:37.171+0.031IRP_MJ_READUP0x0000000000 72 45 00 0a .rE..<br />0000465410.01.2015 16:00:37.421+0.0IRP_MJ_WRITEDOWN0x0000000000 72 44 00 01 .rD.. PC zmienia <br />0000465710.01.2015 16:00:37.562+0.140IRP_MJ_READUP0x0000000000 .                          Atmega odpowiada ,że ustawiona Freq<br />0000466010.01.2015 16:00:37.875+0.0IRP_MJ_WRITEDOWN0x0000000000 00 00 00 03 ..... PC pyta<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: 1 minucie ]</span></strong><br /><br />właśnie działa to w dwie strony PC sterujesz radiem i radio steruje programem <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":-)" title="Szczęśliwy" /><br />jak masz jakąś wolną Atmegę z LCD to w programie PC w menu TOOLS wybierz Command Tester a tam YEASU , prędkość port RS <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=988">slawek3000</a> — 10 sty 2015, o 17:10</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-10T16:39:26+01:00</updated>
<published>2015-01-10T16:39:26+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113541#p113541</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113541#p113541"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113541#p113541"><![CDATA[
do podglądania  <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /> RS jest taki dobry program <!-- m --><a class="postlink" href="http://www.hhdsoftware.com/device-monitoring-studio" >http://www.hhdsoftware.com/device-monitoring-studio</a><!-- m --> niestety też trial na 14 dni<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=988">slawek3000</a> — 10 sty 2015, o 16:39</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-10T16:30:01+01:00</updated>
<published>2015-01-10T16:30:01+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113535#p113535</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113535#p113535"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113535#p113535"><![CDATA[
ok działa , a teraz jak prawidłowo to wysłać albo inaczej wysłać do PC aby uzyskać tą samą Freq ? a tym &quot;ciurkiem&quot; to jak  <img src="https://forum.atnel.pl/images/smilies/icon_lol.gif" alt=":lol:" title="Śmieje się" /> ?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=988">slawek3000</a> — 10 sty 2015, o 16:30</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-10T15:43:38+01:00</updated>
<published>2015-01-10T15:43:38+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113524#p113524</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113524#p113524"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113524#p113524"><![CDATA[
jest jeszcze wersja 5 free <!-- m --><a class="postlink" href="http://www.iw5edi.com/software/ham-radio-deluxe-5-download-links" >http://www.iw5edi.com/software/ham-radi ... load-links</a><!-- m -->  <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":-)" title="Szczęśliwy" />, program jest ok mam radio i spokojnie nim steruje w dwie strony działa  <img src="https://forum.atnel.pl/images/smilies/icon_e_biggrin.gif" alt=":D" title="Bardzo szczęśliwy" /><br /><br />coś już wiem <br /><br />PC do ATMEGI wysyła tak 14577500 01<br />Atmega do PC wysyła tak 14577500 0a przy zmianie wartości zmiennej<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=988">slawek3000</a> — 10 sty 2015, o 15:43</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-10T15:07:11+01:00</updated>
<published>2015-01-10T15:07:11+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113513#p113513</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113513#p113513"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113513#p113513"><![CDATA[
Bufor teraz jest na sztywno  <img src="https://forum.atnel.pl/images/smilies/icon_lol.gif" alt=":lol:" title="Śmieje się" /> a chcę ,żeby bufor się wypełniał zmienną Vfo_dat z programu poniżej postu , tak taka konstrukcja jak przedstawiłeś <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":-)" title="Szczęśliwy" />.. co do wyświetlania to na LCD jest na OK , jak się połączę z programem HDR to wyświetla na PC mi złą daną a powinno wyświetlać to co jest na LCD<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=988">slawek3000</a> — 10 sty 2015, o 15:07</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-10T13:53:44+01:00</updated>
<published>2015-01-10T13:53:44+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113506#p113506</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113506#p113506"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113506#p113506"><![CDATA[
Hej, Bartek a jak zmienną LONG -w poniższym przykładzie &quot;Vfo_dat&quot;można rozbić tak aby bufor nie  był pusty<br />[syntax=basic4gl]Rs_output(1) = &amp;H14<br />Rs_output(2) = &amp;H57<br />Rs_output(3) = &amp;H75<br />Rs_output(4) = &amp;H00<br />Rs_output(5) = &amp;H01[/syntax]<br />mam taką przykładową syntezę <br />[syntax=basic4gl]'********************************************************<br />'AD9834 DDS VFO program<br />'<br />'     7.000Mhz to 7.200Mhz Limitted!<br />'     (VFO frequency = IF frequency - Frequency)<br />'                                       2013/07/05<br />'                                           JA2GQP<br />' BASCOM AVR 2.0.7.5(DEMO version) Compiled<br />'--------------------------------------------------------<br />'  Function<br />'<br />'     1.Upper heterodyne<br />'     2.RIT operation(-10khz to +10khz)<br />'     3.STEP(10000,1000,100,10)<br />'     4.Memory operation is push RIT<br />'       (Frequency and Step)<br />'     5. Protection operation at the time of transmission<br />'********************************************************<br />'<br />$regfile = &quot;m644pdef.dat&quot;                                   ' specify the used micro<br />$crystal = 16000000                                         '16Mhz clock<br />$hwstack = 254<br />$swstack = 254<br />$framesize = 100<br /><br /><br />'************************************************************<br />'UART config - serial interface to FT-817<br />$baud = 9600<br />Echo Off<br />'Config Com1 = 4800 , Synchrone = 0 , Parity = None , Stopbits = 2 , Databits = 8 , Clockpol = 0<br />Config Serialin = Buffered , Size = 100<br />Config Serialout = Buffered , Size = 100<br />Enable Interrupts<br /><br /><br />'--- config port ---<br />Config Porta = &amp;B00000000                                   '0=TX,1-6=none<br />Config Portd = &amp;B00001111               '0=FSYNC,1=SCLK,2=SDATA,3=none<br />                                         '4=ENC B,5=ENC A,6=STEP,7=RIT<br />'--- port pullup ---<br />Porta = &amp;B11111111                                          'All<br />Portd = &amp;B11110000                      'RIT,STEP,ENC A,ENC B<br />'--- debounce set ---<br />Config Debounce = 1<br />'---LCD port assign ---<br />Config Lcdpin = Pin , Db4 = Portb.4 , Db5 = Portb.5 , Db6 = Portb.6 , Db7 = Portb.7 , E = Portb.3 , Rs = Portb.2<br />Echo Off<br />Config Lcd = 16 * 4<br />'--- constant data ---<br />Const If_frq = 9999700                  'IF frequency<br />Const Lw_frq = 7000000                  'Lower limit operation frequency<br />Const Hi_frq = 7200000                  'Upper limit operation frequency<br />Const Def_frq = 7050000                 'Operation frequency(initial)<br />Const Lw_vfo = If_frq - Lw_frq          'VFO lower limit<br />Const Hi_vfo = If_frq - Hi_frq          'VFO upper limit<br />Const Def_vfo = If_frq - Def_frq        'VFO operation frequency(initial)<br />Const Enc_dir = -1                      '1:CW up count,-1:CW down count<br />Const Lw_rit = -10000                   'RIT lower limit<br />Const Hi_rit = 10000                    'RIT upper limit<br />Const Scal = 4.00000                    '2^28/2^26  2^26(X'tal 67.108864Mhz)<br />'--- define subrutine ---<br />Declare Sub Enc_sub                     'Encorder<br />Declare Sub Dds_sub                     'DDS<br />Declare Sub Lcd_sub                     'LCD<br />Declare Sub Stp_sub                     'STEP<br />Declare Sub Rit_sub                     'RIT<br />Declare Sub Rx_sub                      'RX<br />Declare Sub Tx_sub                      'TX<br />'--- define memory ---<br />Dim Vfo_dat As Long                     'VFO freqency data<br />Dim Dds_dat As Long                     'DDS frequency data<br />Dim Str_frq As String * 10              'String frequency<br />Dim Dsp_frq As String * 10              'Display frequency<br />Dim Sng_wrk As Single                   'main channel<br />Dim Lng_wk1 As Long                     'Long work1<br />Dim Lng_wk2 As Long                     'Long work2<br />Dim Wrd_wk1 As Word                     'Word work1<br />Dim Wrd_wk2 As Word                     'Word work2<br />Dim Wrd_wk3 As Word                     'Word work3<br />Dim Enc_stp As Integer                  'Encorder step<br />Dim Rit_dat As Integer                  'RIT data<br />Dim Int_wrk As Integer                  'Integer work<br />Dim Flg_rit As Byte                     'RIT flag<br />Dim Flg_tx As Byte                      'TX flag<br />Dim Frq_eep As Eram Long                'power off frequency A<br />Dim Stp_eep As Eram Integer             'EEP STEP data<br />Dim Flg_enc As Byte                                         'Encorder dir flag<br /><br />Dim Rs_output(5) As Byte<br />Dim Rs_input(5) As Byte<br />Dim Rs_mode(5)as Byte<br />Dim Rs_in As Byte<br />Dim Otrzymanych As Byte<br /><br />'--------------<br />'Main roution<br />'--------------<br />Main:<br />   Flg_tx = 0<br />   Flg_rit = 0                          'RIT flag<br />   If Frq_eep =&lt; 0 Then                 'EEP VFO data check<br />      Vfo_dat = Def_vfo                 'Initialize VFO data<br />      Frq_eep = Vfo_dat<br />      Else<br />         Vfo_dat = Frq_eep              'Restore VFO data<br />         End If<br />   If Stp_eep =&lt; 0 Then                 'EEP STEP data check<br />      Enc_stp = 1000<br />      Stp_eep = Enc_stp                 'Initialize STEP data<br />      Else<br />         Enc_stp = Stp_eep<br />         End If                         'Restore STEP data<br />   Cursor Off<br />   Cls<br />   Call Lcd_sub                         'LCD<br />   Do<br />      If Flg_tx = 0 Then<br />         Debounce Pind.5 , 0 , Enc_sub , Sub       'Encorder<br />         Debounce Pind.6 , 0 , Stp_sub , Sub       'Step<br />         Debounce Pind.7 , 0 , Rit_sub , Sub       'RIT<br />         End If<br />         Debounce Pina.0 , 1 , Rx_sub , Sub                 'RX<br />         Debounce Pina.0 , 0 , Tx_sub , Sub                 'TX<br />         If Flg_rit = 1 Then<br />            Dds_dat = Vfo_dat - Rit_dat<br />            Else<br />               Dds_dat = Vfo_dat<br />               End If<br />         If Flg_tx = 1 Then<br />            Dds_dat = Vfo_dat<br />            End If<br />         Call Dds_sub<br />   Loop<br />End<br />'-----------------------------<br />'Encoder check,Create DDS data<br />'-----------------------------<br />Sub Enc_sub<br />   If Pind.4 = 1 Then<br />      Flg_enc = 0                       'Up<br />      Else<br />         Flg_enc = 1                    'down<br />         End If<br />   Int_wrk = Enc_stp * Enc_dir<br />   If Flg_enc = 0 Then<br />      Lng_wk1 = Vfo_dat + Int_wrk       'Up<br />      Lng_wk2 = Rit_dat + Enc_stp<br />      Else<br />         Lng_wk1 = Vfo_dat - Int_wrk    'down<br />         Lng_wk2 = Rit_dat - Enc_stp<br />         End If<br />   If Flg_rit = 1 Then<br />      Rit_dat = Lng_wk2<br />      Else<br />         Vfo_dat = Lng_wk1<br />         Rit_dat = 0<br />         End If<br />   If Vfo_dat &gt; Lw_vfo Then             'VFO lower limit check<br />      Vfo_dat = Lw_vfo<br />      End If<br />   If Vfo_dat &lt; Hi_vfo Then             'VFO upper limit check<br />      Vfo_dat = Hi_vfo<br />      End If<br />   If Rit_dat &lt; Lw_rit Then             'RIT lower limit check<br />      Rit_dat = Lw_rit<br />      End If<br />   If Rit_dat &gt; Hi_rit Then             'RIT upper limit check<br />      Rit_dat = Hi_rit<br />      End If<br />   Call Lcd_sub<br />End Sub<br />'-----------------------------<br />'AD9834(DDS) Data write<br />'-----------------------------<br />Sub Dds_sub<br />   Sng_wrk = Dds_dat * Scal<br />   Lng_wk1 = Sng_wrk<br />   Wrd_wk1 = Lng_wk1 And &amp;H3FFF<br />   Wrd_wk2 = Wrd_wk1 Or &amp;H4000<br />   Shift Lng_wk1 , Right , 14<br />   Wrd_wk3 = Lng_wk1 Or &amp;H4000<br />   Wrd_wk1 = &amp;H2000<br />   Reset Portd.0<br />   Shiftout Portd.2 , Portd.1 , Wrd_wk1 , 0<br />   Shiftout Portd.2 , Portd.1 , Wrd_wk2 , 0<br />   Shiftout Portd.2 , Portd.1 , Wrd_wk3 , 0<br />   Set Portd.0<br />End Sub<br />'-----------------------------<br />'LCD Data write<br />'-----------------------------<br />Sub Lcd_sub<br />   Cls<br />   Locate 1 , 1<br />   Lng_wk1 = If_frq<br />   Lng_wk1 = If_frq - Vfo_dat<br />   Str_frq = Str(lng_wk1)<br />   Str_frq = Format(str_frq , &quot;00.000000&quot;)<br />   Dsp_frq = Left(str_frq , 3) + Mid(str_frq , 4 , 3) + &quot;.&quot; + Mid(str_frq , 7 , 3)<br />   Lcd &quot;F:&quot; ; Dsp_frq ; &quot;Mhz&quot;<br />   Locate 2 , 1<br />   Lcd &quot;S:    &quot;<br />   Locate 2 , 3<br />   Lcd Enc_stp<br />   If Flg_rit = 1 Then<br />      Locate 2 , 8<br />      Lcd &quot;R:&quot;<br />      Str_frq = Str(rit_dat)<br />      Str_frq = Format(str_frq , &quot;00.000&quot;)<br />      Locate 2 , 10<br />      Lcd Str_frq<br />      Else<br />         Locate 2 , 8<br />         Lcd &quot;   JA2GQP&quot;<br />         End If<br />End Sub<br />'-----------------------------<br />'Step<br />'-----------------------------<br />Sub Stp_sub<br />   Select Case Enc_stp<br />      Case 10000:<br />         Enc_stp = 1000                 '1000<br />      Case 1000:<br />         Enc_stp = 100                  '100<br />      Case 100:<br />         Enc_stp = 10                   '10<br />      Case 10:<br />         Enc_stp = 10000                '10000<br />      Case Else:<br />         Enc_stp = 1000                 '1000(initial)<br />   End Select<br />   Call Lcd_sub<br />End Sub<br />'-----------------------------<br />'RIT<br />'-----------------------------<br />Sub Rit_sub<br />   If Flg_rit = 0 Then<br />      Rit_dat = 0<br />      Flg_rit = 1<br />      Frq_eep = Vfo_dat                 'Save VFO data<br />      Stp_eep = Enc_stp                 'Save STEP data<br />      Else<br />         Flg_rit = 0<br />         End If<br />   Call Lcd_sub<br />End Sub<br />'-----------------------------<br />'RX<br />'-----------------------------<br />Sub Rx_sub<br />   If Flg_tx = 1 Then<br />      Flg_tx = 0                        'TX flag rest<br />      Locate 1 , 1<br />      Lcd &quot;F&quot;<br />      End If<br />End Sub<br />'-----------------------------<br />'TX<br />'-----------------------------<br />Sub Tx_sub<br />   If Flg_tx = 0 Then<br />      Flg_tx = 1                        'TX flag set<br />      Locate 1 , 1<br />      Lcd &quot;T&quot;<br />      End If<br />End Sub[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=988">slawek3000</a> — 10 sty 2015, o 13:53</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-09T21:48:36+01:00</updated>
<published>2015-01-09T21:48:36+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113455#p113455</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113455#p113455"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113455#p113455"><![CDATA[
Tu masz opis prawie wszystkich komend <!-- m --><a class="postlink" href="http://www.ka7oei.com/ft817_meow.html" >http://www.ka7oei.com/ft817_meow.html</a><!-- m --><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=988">slawek3000</a> — 9 sty 2015, o 21:48</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[pikczu]]></name></author>
<updated>2015-01-09T20:21:17+01:00</updated>
<published>2015-01-09T20:21:17+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113425#p113425</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113425#p113425"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113425#p113425"><![CDATA[
Sławek podaj więcej danych jak masz ustawiony Ham radio delux chciał bym to przetestować jaka jest firma i model radia który wysyła te komendy.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=154">pikczu</a> — 9 sty 2015, o 20:21</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-09T16:58:01+01:00</updated>
<published>2015-01-09T16:58:01+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113372#p113372</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113372#p113372"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113372#p113372"><![CDATA[
Bartek a jak mam przerzucić tą wstępną częstotliwość ?<br /><br />skróciłem do celów testowych program do takiej postaci<br /> [syntax=basic4gl]Dim Rs_output(5) As Byte<br />Dim Rs_input(5) As Byte<br />Dim Rs_mode(5)as Byte<br />Dim Rs_in As Byte<br />Dim Otrzymanych As Byte<br />Do<br /><br />If Ischarwaiting() &gt; 0 Then<br /><br />  Incr Otrzymanych<br /><br />  Rs_in = Inkey()<br /><br />   Rs_input(1) = Rs_input(2)<br />   Rs_input(2) = Rs_input(3)<br />   Rs_input(3) = Rs_input(4)<br />   Rs_input(4) = Rs_input(5)<br />   Rs_input(5) = Rs_in<br /><br />End If<br />Rs_output(1) = &amp;H14<br />Rs_output(2) = &amp;H57<br />Rs_output(3) = &amp;H75<br />Rs_output(4) = &amp;H00<br />Rs_output(5) = &amp;H01<br />          If Rs_input(1) = &amp;H00 And Rs_input(2) = &amp;H00 And Rs_input(3) = &amp;H00 And Rs_input(4) = &amp;H00 And Rs_input(5) = &amp;H03 Then<br />          Print Rs_output(1) = &amp;H00 ; Rs_output(2) = &amp;H00 ; Rs_output(3) = &amp;H00 ; Rs_output(4) = &amp;H00 ; Rs_output(5) = &amp;H00 ;<br />  Print Rs_output(1) ; Rs_output(2) ; Rs_output(3) ; Rs_output(4) ; Rs_output(5) ;<br />  End If<br />Loop[/syntax]<br /><br />a połączeniu się z HDR swoje na wstępie 323.038.370 co jest tego przyczyną ?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=988">slawek3000</a> — 9 sty 2015, o 16:58</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-08T20:34:10+01:00</updated>
<published>2015-01-08T20:34:10+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113209#p113209</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113209#p113209"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=113209#p113209"><![CDATA[
Napisałem sobie taki warunek do przełączania modulacji coś takiego tutaj OPCODE jest pierwszym i piątym bitem<br />[syntax=basic4gl]'przełączanie modulacji<br /><br />      For N = 1 To 5<br />         If Rs_input(1) = &amp;H00 And Rs_input(2) = 0 And Rs_input(3) = 0 And Rs_input(4) = 0 And Rs_input(5) = &amp;H07 Then<br />             Locate 1 , 1 : Lcd &quot;LSB&quot; : Modulacja = 1 :<br />                Print Rs_output(1) ; Rs_output(2) ; Rs_output(3) ; Rs_output(4) ; Rs_output(5) = &amp;H00 ;<br /><br />         Elseif Rs_input(1) = &amp;H01 And Rs_input(2) = 0 And Rs_input(3) = 0 And Rs_input(4) = 0 And Rs_input(5) = &amp;H07 Then<br />             Locate 1 , 1 : Lcd &quot;USB&quot; : Modulacja = 2 :<br />               Print Rs_output(1) ; Rs_output(2) ; Rs_output(3) ; Rs_output(4) ; Rs_output(5) = &amp;H01 ;<br /><br />         Elseif Rs_input(1) = &amp;H02 And Rs_input(2) = 0 And Rs_input(3) = 0 And Rs_input(4) = 0 And Rs_input(5) = &amp;H07 Then<br />             Locate 1 , 1 : Lcd &quot;CW&quot; : Modulacja = 1 :<br />                Print Rs_output(1) ; Rs_output(2) ; Rs_output(3) ; Rs_output(4) ; Rs_output(5) = &amp;H02 ;<br /><br />         Elseif Rs_input(1) = &amp;H03 And Rs_input(2) = 0 And Rs_input(3) = 0 And Rs_input(4) = 0 And Rs_input(5) = &amp;H07 Then<br />             Locate 1 , 1 : Lcd &quot;CWR&quot; : Modulacja = 3 :<br />                Print Rs_output(1) ; Rs_output(2) ; Rs_output(3) ; Rs_output(4) ; Rs_output(5) = &amp;H03 ;<br /><br />         Elseif Rs_input(1) = &amp;H04 And Rs_input(2) = 0 And Rs_input(3) = 0 And Rs_input(4) = 0 And Rs_input(5) = &amp;H07 Then<br />             Locate 1 , 1 : Lcd &quot;AM&quot; : Modulacja = 4 :<br />                Print Rs_output(1) ; Rs_output(2) ; Rs_output(3) ; Rs_output(4) ; Rs_output(5) = &amp;H04 ;<br /><br />         Elseif Rs_input(1) = &amp;H08 And Rs_input(2) = 0 And Rs_input(3) = 0 And Rs_input(4) = 0 And Rs_input(5) = &amp;H07 Then<br />             Locate 1 , 1 : Lcd &quot;FM&quot; : Modulacja = 5 :<br />                Print Rs_output(1) ; Rs_output(2) ; Rs_output(3) ; Rs_output(4) ; Rs_output(5) = &amp;H08 ;<br /><br />         Elseif Rs_input(1) = &amp;H0A And Rs_input(2) = 0 And Rs_input(3) = 0 And Rs_input(4) = 0 And Rs_input(5) = &amp;H07 Then<br />           Locate 1 , 1 : Lcd &quot;DIG&quot; : Modulacja = 6 :<br />               Print Rs_output(1) ; Rs_output(2) ; Rs_output(3) ; Rs_output(4) ; Rs_output(5) = &amp;H0A;<br /><br />         Elseif Rs_input(1) = &amp;H0C And Rs_input(2) = 0 And Rs_input(3) = 0 And Rs_input(4) = 0 And Rs_input(5) = &amp;H07 Then<br />         Locate 1 , 1 : Lcd &quot;PKT&quot; : Modulacja = 7 :<br />               Print Rs_output(1) ; Rs_output(2) ; Rs_output(3) ; Rs_output(4) ; Rs_output(5) = &amp;H0C ;<br />      Next<br />     End If[/syntax]<br />niby działa , niby nie działa na wyświetlaczu po wybraniu modulacji jest ok tylko sam program nie trzyma wyboru <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":-)" title="Szczęśliwy" />  program to <!-- m --><a class="postlink" href="http://www.hrdsoftwarellc.com/setuphrd627-294.exe" >http://www.hrdsoftwarellc.com/setuphrd627-294.exe</a><!-- m --><br />zastanawia mnie jedno jak się połączę z tym programem zawsze mam freq  323.038.370 , chodź w ATMEDZE ustawiłem jaką wstępną 14577500<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=988">slawek3000</a> — 8 sty 2015, o 20:34</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-06T14:31:19+01:00</updated>
<published>2015-01-06T14:31:19+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112715#p112715</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112715#p112715"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112715#p112715"><![CDATA[
To nic nie daje<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=988">slawek3000</a> — 6 sty 2015, o 14:31</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-06T14:17:40+01:00</updated>
<published>2015-01-06T14:17:40+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112711#p112711</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112711#p112711"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112711#p112711"><![CDATA[
W tej wersji i w nowej wersji Atmega i Pc zwracają jakieś inne wartości zobacz <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":-)" title="Szczęśliwy" /> <br /><br />tak pokazuje inne wartości<br /><br /><a href="http://forum.atnel.pl/_obrazki/o/988/5d727b2f7adb88af38a05a40490cdc18.jpg"  class="postlink"><img src="http://forum.atnel.pl/_obrazki/o/thumb/988/5d727b2f7adb88af38a05a40490cdc18.jpg" alt="Obrazek" /></a><br /><br />a tak prawidłowo powinno wyglądać <br /><br /><a href="http://forum.atnel.pl/_obrazki/o/988/0b0ae7f7c5ca44e3b7472c7f0f1c75c4.jpg"  class="postlink"><img src="http://forum.atnel.pl/_obrazki/o/thumb/988/0b0ae7f7c5ca44e3b7472c7f0f1c75c4.jpg" alt="Obrazek" /></a><br /><br /><br />[syntax=basic4gl]Dim Rs_output(5) As Byte<br />Dim Rs_input(5) As Byte<br />Dim N As Byte , Correct As Byte<br />Dim Rs_in As Byte<br />Dim Otrzymanych As Byte<br />Dim Temp_long As Long<br />Dim Temp_string As String * 4<br />Dim Temp_string_tx As String * 5<br />Dim Temp_long_tx As Long<br />Dim Freq_long As Long<br />Dim Str_long As Long At Rs_input(1) Overlay<br /><br />'-------------------------------------------------------------------------------<br />'Freq_long = 11241212<br />Do<br /><br />'Rs_output(1) = &amp;H14<br />'Rs_output(2) = &amp;H57<br />'Rs_output(3) = &amp;H75<br />'Rs_output(4) = &amp;H00<br />'Rs_output(5) = &amp;H00<br /><br />If Ischarwaiting() &gt; 0 Then<br /><br />  Incr Otrzymanych<br /><br />  Rs_in = Inkey()<br /><br />   Rs_input(1) = Rs_input(2)<br />   Rs_input(2) = Rs_input(3)<br />   Rs_input(3) = Rs_input(4)<br />   Rs_input(4) = Rs_input(5)<br />   Rs_input(5) = Rs_in<br /><br />'   Locate 1 , 1<br />'     'wyswietla cala zawartosc bufora<br />'    For N = 1 To 5<br />'    Lcd Hex(rs_input(n))<br /><br />'    Next<br />'    ''Locate 3 , 1 : Lcd &quot;Otrz &quot; ; Otrzymanych ; &quot;  &quot;<br /><br />'  If Rs_input(5) = &amp;H03 Then<br />'   'test reszty wiadomosci<br />'    Correct = 1<br />'     For N = 1 To 5<br />'      If Rs_input(5) = &amp;H01 Then Correct = 0<br />'          Print Rs_output(1) = &amp;H00<br />'      Next<br /><br /><br />'  End If<br /><br />'   If Correct = 1 Then<br />'    For N = 1 To 5<br />'     Print Rs_output(n)<br /><br />'    Next<br /><br />'   End If<br /><br />'End If<br />'-------------------------------------------------------------------------------<br /> If Rs_input(5) = &amp;H01 Then<br /><br />      Temp_string = Hex(str_long)<br />      Freq_long = Val(temp_string)<br />      N = Memcopy(rs_input(1) , Rs_output(1) , 4)<br /><br />      Print &amp;H00<br /><br />  Elseif Rs_input(5) = &amp;H03 Then<br /><br />     If Str_long = 0 Then<br />      Print Rs_output(1) ; Rs_output(2) ; Rs_output(3) ; Rs_output(4) ; Rs_output(5)<br />     End If<br />  End If<br /><br />'-------------------------------------------------------------------------------<br />    Temp_string = &quot;&quot;<br />       For N = 1 To 4<br />        Temp_string = Temp_string + Hex(rs_input(n))<br />       Next<br />        Temp_long = Val(temp_string)<br /><br /><br />'        Temp_string = Hex(str_long)<br />'        Temp_long = Val(temp_string)<br /><br />        Locate 1 , 1 : Lcd &quot;RX&quot; ; Temp_string<br /><br />        Locate 2 , 1 : Lcd &quot;RX&quot; ; Temp_long<br />'-------------------------------------------------------------------------------<br />      Temp_string_tx = &quot;&quot;<br />       For N = 1 To 4<br />        Temp_string_tx = Temp_string_tx + Hex(rs_output(n))<br />       Next<br />          Temp_long_tx = Val(temp_string_tx)<br />         Locate 3 , 1 : Lcd &quot;TX&quot; ; Temp_string_tx<br />         Locate 4 , 1 : Lcd &quot;TX&quot; ; Temp_long_tx<br /> End If<br />Loop[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=988">slawek3000</a> — 6 sty 2015, o 14:17</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-06T07:58:04+01:00</updated>
<published>2015-01-06T07:58:04+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112655#p112655</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112655#p112655"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112655#p112655"><![CDATA[
Hej, zmienna LONG będzie wynikiem działania innego podprogramu czy raczej głównego programu .. . właśnie gdzie to mam umieścić w kodzie <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":-)" title="Szczęśliwy" /><br />bo takie ,rzeczy mi wychodzą <br />KOD 01 jest OK <br /><a href="http://forum.atnel.pl/_obrazki/o/988/9fed210c83a437e633e958ff6f2743f9.jpg"  class="postlink"><img src="http://forum.atnel.pl/_obrazki/o/thumb/988/9fed210c83a437e633e958ff6f2743f9.jpg" alt="Obrazek" /></a><br /><br />RX<br /><a href="http://forum.atnel.pl/_obrazki/o/988/2f0e42f7894cfd479390211dfe54c4b9.jpg"  class="postlink"><img src="http://forum.atnel.pl/_obrazki/o/thumb/988/2f0e42f7894cfd479390211dfe54c4b9.jpg" alt="Obrazek" /></a><br /><br />KOD 03 czyści mi LONG , a ma na zadanie odpytać ATMEGĘ o zmienną LONG i ta ma ją wysłać z kodem 00<br /><br /><a href="http://forum.atnel.pl/_obrazki/o/988/290ed5475ea3163ac709d13fc2210bb5.jpg"  class="postlink"><img src="http://forum.atnel.pl/_obrazki/o/thumb/988/290ed5475ea3163ac709d13fc2210bb5.jpg" alt="Obrazek" /></a><br /><br />RX<br /><br /><a href="http://forum.atnel.pl/_obrazki/o/988/53820cd5d2400fb5b07dfddc1c34a838.jpg"  class="postlink"><img src="http://forum.atnel.pl/_obrazki/o/thumb/988/53820cd5d2400fb5b07dfddc1c34a838.jpg" alt="Obrazek" /></a><br /><br /><br />[syntax=basic4gl]Dim Rs_output(5) As Byte<br />Dim Rs_input(5) As Byte<br />Dim N As Byte , Correct As Byte<br />Dim Rs_in As Byte<br />Dim Otrzymanych As Byte<br />Dim Temp_long As Long<br />Dim Temp_string As String * 4<br />Dim Temp_string_tx As String * 5<br />Dim Temp_long_tx As Long<br /><br />Do<br /><br />Rs_output(1) = &amp;H14<br />Rs_output(2) = &amp;H57<br />Rs_output(3) = &amp;H75<br />Rs_output(4) = &amp;H00<br />Rs_output(5) = &amp;H00<br /><br />If Ischarwaiting() &gt; 0 Then<br /><br />  Incr Otrzymanych<br /><br />  Rs_in = Inkey()<br /><br />   Rs_input(1) = Rs_input(2)<br />   Rs_input(2) = Rs_input(3)<br />   Rs_input(3) = Rs_input(4)<br />   Rs_input(4) = Rs_input(5)<br />   Rs_input(5) = Rs_in<br /><br />   Locate 1 , 1<br />     'wyswietla cala zawartosc bufora<br />    For N = 1 To 5<br />    Lcd Hex(rs_input(n))<br /><br />    Next<br />    ''Locate 3 , 1 : Lcd &quot;Otrz &quot; ; Otrzymanych ; &quot;  &quot;<br /><br />  If Rs_input(5) = &amp;H03 Then                                <br />   'test reszty wiadomosci<br />    Correct = 1<br />     For N = 1 To 5<br />      If Rs_input(5) = &amp;H01 Then Correct = 0<br />          Print Rs_output(1) = &amp;H00<br />      Next<br /><br /><br />  End If<br /><br />   If Correct = 1 Then<br />    For N = 1 To 5<br />     Print Rs_output(n)<br /><br />    Next<br /><br />   End If<br /><br />End If<br />'-------------------------------------------------------------------------------<br />    Temp_string = &quot;&quot;<br />       For N = 1 To 4<br />        Temp_string = Temp_string + Hex(rs_input(n))<br />       Next<br />        Temp_long = Val(temp_string)<br /><br /><br />'        Temp_string = Hex(str_long)<br />'        Temp_long = Val(temp_string)<br /><br />        Locate 1 , 1 : Lcd &quot;RX&quot; ; Temp_string<br /><br />        Locate 2 , 1 : Lcd &quot;RX&quot; ; Temp_long<br />'-------------------------------------------------------------------------------<br />      Temp_string_tx = &quot;&quot;<br />       For N = 1 To 4<br />        Temp_string_tx = Temp_string_tx + Hex(rs_output(n))<br />       Next<br />          Temp_long_tx = Val(temp_string_tx)<br />         Locate 3 , 1 : Lcd &quot;TX&quot; ; Temp_string_tx<br />         Locate 4 , 1 : Lcd &quot;TX&quot; ; Temp_long_tx<br /><br />Loop[/syntax]<br />Wydaje mi się,że ten warunek może nie być nigdy spełniony, wyrzuciłem tą zmienną na LCD <br />[syntax=basic4gl]If Str_long = 0 Then[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=988">slawek3000</a> — 6 sty 2015, o 07:58</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-05T21:50:12+01:00</updated>
<published>2015-01-05T21:50:12+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112587#p112587</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112587#p112587"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112587#p112587"><![CDATA[
teraz się zastanawiam jak napisać warunek , tak aby po odebraniu ciągu 00 00 00 00 03 nie zmieniał mi wartości zmiennej LONG na same zera <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=988">slawek3000</a> — 5 sty 2015, o 21:50</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[pikczu]]></name></author>
<updated>2015-01-05T20:36:20+01:00</updated>
<published>2015-01-05T20:36:20+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112552#p112552</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112552#p112552"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112552#p112552"><![CDATA[
Bartek masz racje  najpierw wkleiłem bufor  chyba dla serialin a zapomniałem o serial out a potem wkleiłem oba ale juz dla drugiego uarta. <br />Wsumie to sam nie załapałem dla którego to miało być moja wina.<br />Ale tak popiep... ej konfiguracji jak maja wszystkie 4 uarty to ciężko znaleść<br />[syntax=basic4gl]Config Com1 = 9600 , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0<br /><br />Config Com2 = 9600 , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0<br /><br />Config Com3 = 9600 , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0<br /><br />Config Com4 = 9600 , Synchrone = 0 , Parity = None , Stopbits = 1 , Databits = 8 , Clockpol = 0<br /><br />'Open all UARTS<br /><br />Open &quot;com2:&quot; For Binary As #1<br /><br />Open &quot;Com3:&quot; For Binary As #2<br /><br />Open &quot;Com4:&quot; For Binary As #3[/syntax]<br /><br />Alberts się chyba zakręcił jak wymyślał to otwieranie<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=154">pikczu</a> — 5 sty 2015, o 20:36</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-05T20:20:10+01:00</updated>
<published>2015-01-05T20:20:10+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112548#p112548</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112548#p112548"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112548#p112548"><![CDATA[
jak umieszczę  ten kod bez stałych Rs_input to wyświetla mi się kod HEX a nie cyfry w postacji dziesiętnej, które wpisałem<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: 7 minutach ]</span></strong><br /><br />OK sorki <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":-)" title="Szczęśliwy" /> , w terminala miałem ustawioną inną szybkość działa bez zarzutu<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=988">slawek3000</a> — 5 sty 2015, o 20:20</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-05T19:10:21+01:00</updated>
<published>2015-01-05T19:10:21+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112531#p112531</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112531#p112531"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112531#p112531"><![CDATA[
Nie wiem czy dobrze robię<br />[syntax=basic4gl]Dim freq_temp as long<br />freq_temp=Freq_long[/syntax]<br />ach i jeszcze jedno te dane , które wpisuje np.0212751901<br />chce ,żeby były w zmiennej long o takiej samej wartości, a teraz otrzymałem coś takiego 1964114432 ... bez tych dwóch ostatnich<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=988">slawek3000</a> — 5 sty 2015, o 19:10</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-05T18:47:19+01:00</updated>
<published>2015-01-05T18:39:08+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112519#p112519</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112519#p112519"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112519#p112519"><![CDATA[
z tego bufora od 1 do 4 ,czyli pierwsza cyfra jest pierwszą cyfrą od lewej aż do prawej 8 cyfry...  piąty jest techniczny dla PC ATMEGI <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=988">slawek3000</a> — 5 sty 2015, o 18:39</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-05T18:19:58+01:00</updated>
<published>2015-01-05T18:19:58+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112508#p112508</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112508#p112508"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112508#p112508"><![CDATA[
Jeszcze mam pytanie, a jak z tej odebranej przez Atmegę i wyświetloną wartość przerobić na zmienną LONG ?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=988">slawek3000</a> — 5 sty 2015, o 18:19</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[slawek3000]]></name></author>
<updated>2015-01-05T17:01:33+01:00</updated>
<published>2015-01-05T17:01:33+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112483#p112483</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112483#p112483"/>
<title type="html"><![CDATA[Re: Wyświetlanie danych odebranych i wysyłanych przez progra]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=9923&amp;p=112483#p112483"><![CDATA[
Ha Bartek , wielkie wielkie dziękuje za pomoc <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":-)" title="Szczęśliwy" /> ... Napisz książkę np.pt.&quot;Bascom dla średnio-zaawansowanych&quot; brakuje takiej publikacji na rynku<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=988">slawek3000</a> — 5 sty 2015, o 17:01</p><hr />
]]></content>
</entry>
</feed>