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

<title>ATNEL tech-forum</title>
<link href="https://forum.atnel.pl/index.php" />
<updated>2019-07-15T18:05:16+01:00</updated>

<author><name><![CDATA[ATNEL tech-forum]]></name></author>
<id>https://forum.atnel.pl/feed.php?f=63&amp;t=22401&amp;mode</id>
<entry>
<author><name><![CDATA[Tokio518]]></name></author>
<updated>2019-07-15T18:05:16+01:00</updated>
<published>2019-07-15T18:05:16+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220410#p220410</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220410#p220410"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220410#p220410"><![CDATA[
Ok, dzięki<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=20050">Tokio518</a> — 15 lip 2019, o 18:05</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Harry]]></name></author>
<updated>2019-07-15T18:02:29+01:00</updated>
<published>2019-07-15T18:02:29+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220405#p220405</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220405#p220405"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220405#p220405"><![CDATA[
Przecież sam wstawiłeś w poście dzielenie Regexem.<br />Fajnie że działa,tylko pamiętaj że w ten sposób odbierzesz dane będąc w tym konkretnym Activity.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14685">Harry</a> — 15 lip 2019, o 18:02</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tfosik]]></name></author>
<updated>2019-07-15T18:02:34+01:00</updated>
<published>2019-07-15T17:59:50+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220404#p220404</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220404#p220404"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220404#p220404"><![CDATA[
podałem ci procedurę wyżej<br /><br />[syntax=basic4gl]dim a,b,c as string<br />Dim data As String<br />data = &quot;aaa.bbb.ccc&quot;<br />Dim numbers() As String<br />numbers = Regex.Split(&quot;\.&quot;, data)<br />a=numbers(0)<br />b=numbers(1)<br />c=numbers(2)[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18769">tfosik</a> — 15 lip 2019, o 17:59</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Tokio518]]></name></author>
<updated>2019-07-15T17:51:31+01:00</updated>
<published>2019-07-15T17:51:31+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220402#p220402</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220402#p220402"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220402#p220402"><![CDATA[
Bardzo dziękuję panowie za pomoc <img src="https://forum.atnel.pl/images/smilies/icon_e_smile.gif" alt=":)" title="Szczęśliwy" /> . Użyłem klasy AsyncSteram, a nie modułu AsyncSteramText i użyłem normalnie procedury New_Data i wszystko działa. I mam jeszcze takie jedno pytanko jak chcę wysłać z atmegi taki text np. &quot;0,1,4,5,7&quot; to jak zrobić, żeby basic4android rozdzielił to na zmienne:<br />a=0<br />b=1<br />c=4<br />d=5<br />e=7<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=20050">Tokio518</a> — 15 lip 2019, o 17:51</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Harry]]></name></author>
<updated>2019-07-15T12:36:37+01:00</updated>
<published>2019-07-15T12:36:37+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220396#p220396</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220396#p220396"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220396#p220396"><![CDATA[
Tokio zainicjował klasę AsyncStreamsText którą ma w innym module, a próbuje odwoływać się do niej bezpośrednio w Activity, więc albo rybki albo akwarium <img src="https://forum.atnel.pl/images/smilies/icon_e_wink.gif" alt=";)" title="Puszcza oko" /><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14685">Harry</a> — 15 lip 2019, o 12:36</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tfosik]]></name></author>
<updated>2019-07-15T12:08:09+01:00</updated>
<published>2019-07-15T12:08:09+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220395#p220395</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220395#p220395"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220395#p220395"><![CDATA[
Zobacz ten poradnik, co prawda inna komunikacja ale wiele wyjaśnia.<br /><!-- m --><a class="postlink" href="https://www.b4x.com/android/forum/threads/b4x-asyncstreams-tutorial.7669/" >https://www.b4x.com/android/forum/threa ... rial.7669/</a><!-- m --><p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18769">tfosik</a> — 15 lip 2019, o 12:08</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Harry]]></name></author>
<updated>2019-07-15T11:16:07+01:00</updated>
<published>2019-07-15T11:16:07+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220391#p220391</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220391#p220391"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220391#p220391"><![CDATA[
tak wygląda prawidłowo w klasie AsyncStreams<br />[syntax=vb]Private Sub astreams_NewData (Buffer() As Byte)<br />'----------------------------------<br />SchodyService.Notifi.SetInfo(&quot;Schody&quot;,&quot;Nadejszła wiadomość&quot;,mTarget)<br />SchodyService.Notifi.Notify(1)<br />'---------------------------------- można wy****ć<br />Dim newDataStart As Int = sb.Length<br />sb.Append(BytesToString(Buffer, 0, Buffer.Length, charset))<br />Dim s As String = sb.ToString<br />Dim start As Int = 0<br />For i = newDataStart To s.Length - 1<br />Dim c As Char = s.CharAt(i)<br />If i = 0 And c = Chr(10) Then '\n...<br />start = 1 'might be a broken end of line character<br />Continue<br />End If<br />If c = Chr(10) Then '\n<br />CallSubDelayed2(mTarget, mEventName &amp; &quot;_NewText&quot;, s.SubString2(start, i))<br />start = i + 1<br />Else If c = Chr(13) Then '\r<br />CallSubDelayed2(mTarget, mEventName &amp; &quot;_NewText&quot;, s.SubString2(start, i))<br />If i &lt; s.Length - 1 And s.CharAt(i + 1) = Chr(10) Then '\r\n<br />i = i + 1<br />End If<br />start = i + 1<br />End If<br />Next<br />If start &gt; 0 Then sb.Remove(0, start)<br />End Sub[/syntax]<br />widzisz różnice?<br />w Activity ma być tylko xxx_NewText...<br />A to co kolega zrobił to jest masakra.<br />A jeżeli już mu się nie chce czytać, to niech przynajmniej usunie z Activity inicjalizacje i tego Suba AST_NewData, bo w ten sposób niema prawa działać.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14685">Harry</a> — 15 lip 2019, o 11:16</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tfosik]]></name></author>
<updated>2019-07-15T11:08:28+01:00</updated>
<published>2019-07-15T11:08:28+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220389#p220389</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220389#p220389"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220389#p220389"><![CDATA[
Przeanalizowałem pobieżnie, na pewno powinno być x=BytesToString(Buffer, 0, Buffer.Length, &quot;UTF8&quot;) ale przy tym też nie działało. Usuń też Exitapplication (to bez znaczenia dla błędu ale już się nie stosuje). Szukaj raczej błędu po stronie procka..<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18769">tfosik</a> — 15 lip 2019, o 11:08</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Harry]]></name></author>
<updated>2019-07-15T10:47:13+01:00</updated>
<published>2019-07-15T10:47:13+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220388#p220388</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220388#p220388"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220388#p220388"><![CDATA[
Chyba się paruje skoro mówił że wysyłanie do avr działa. Kolega po prostu spartolił odbiór i tyle. Musi porównać wersję z załącznika w temacie który podałem(najlepiej ostatnia wersja) i musi śmigać. <br /><br />Wysłane ze srajfona<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14685">Harry</a> — 15 lip 2019, o 10:47</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tfosik]]></name></author>
<updated>2019-07-15T10:34:50+01:00</updated>
<published>2019-07-15T10:34:50+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220387#p220387</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220387#p220387"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220387#p220387"><![CDATA[
Jakiej używasz wersji B4A?, Czy urządzenia parują się, tz. AVR-telefon?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18769">tfosik</a> — 15 lip 2019, o 10:34</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Harry]]></name></author>
<updated>2019-07-15T08:43:44+01:00</updated>
<published>2019-07-15T08:43:44+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220385#p220385</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220385#p220385"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220385#p220385"><![CDATA[
<div class="quotetitle">Tokio518 napisał(a):</div><div class="quotecontent"><br />Debuger jest taki, że jeśli wywoła procedura zaświeci się panel<br /></div><br />Powiedz że to żart, bo nie wierzę własnym oczom :/<br />W linku który podałem wyżej masz też co nieco na ten temat.<br /><br />Co kawałek klasy AsynchStreams robi w Activity?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14685">Harry</a> — 15 lip 2019, o 08:43</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Tokio518]]></name></author>
<updated>2019-07-15T06:58:38+01:00</updated>
<published>2019-07-15T06:58:38+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220381#p220381</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220381#p220381"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220381#p220381"><![CDATA[
O to cały kod:<br />[syntax=vb]#Region  Project Attributes <br />#ApplicationLabel: BT_Terminal<br />#VersionCode: 1<br />#VersionName: <br />'SupportedOrientations possible values: unspecified, landscape or portrait.<br />#SupportedOrientations: unspecified<br />#CanInstallToExternalStorage: False<br />#End Region<br /><br />#Region  Activity Attributes <br />#FullScreen: False<br />#IncludeTitle: True<br />#End Region<br /><br />Sub Process_Globals<br />'These global variables will be declared once when the application starts.<br />'These variables can be accessed from all modules.<br />Dim Admin As BluetoothAdmin <br />Dim Serial1 As Serial<br />Dim FoundDevices As List<br />Type NameAndMac( Name As String, Mac As String )<br />Dim ConnectedDevices As NameAndMac<br /><br />DimConnect_Bluetooth As Boolean<br />Dim AST As AsyncStreamsText<br />End Sub<br /><br />Sub Globals<br />'These global variables will be redeclared each time the activity is created.<br />'These variables can only be accessed from this module.<br />Private BtnSend As Button<br />Private BtnConnect As Button<br />Private BtnSearch As Button<br />Private EdLog As EditText<br />Private EdSend As EditText<br />Private Panel2 As Panel<br />End Sub<br /><br />Sub Activity_Create(FirstTime As Boolean)<br />'Do not forget to load the layout file created with the visual designer. For example:<br />Activity.LoadLayout(&quot;Layout1&quot;)<br /><br />If FirstTime Then<br />Connect_Bluetooth = False<br />Admin.Initialize( &quot;Admin&quot; )<br />Serial1.Initialize( &quot;Serial1&quot; )<br />End If<br /><br />If Connect_Bluetooth = False Then<br />Activity.Title = &quot;BT_Terminal(No connected)&quot;<br />BtnSend.Enabled = False<br />EdSend.Enabled = False<br />EdLog.Enabled = False<br />BtnSearch.Enabled = True<br />BtnConnect.TextColor = Colors.Green<br />BtnConnect.Text = &quot;Connect&quot;<br />Else<br />Activity.Title = &quot;BT_Terminal(Connect)&quot;<br />BtnSend.Enabled = True<br />EdSend.Enabled = True<br />EdLog.Enabled = True<br />BtnSearch.Enabled = False<br />BtnConnect.TextColor = Colors.Red<br />BtnConnect.Text = &quot;Disconnect&quot;<br />End If<br /><br />End Sub<br /><br />Sub Activity_Resume<br /><br />If Admin.IsEnabled = False Then<br />If Admin.Enable = False Then<br />ToastMessageShow( &quot;Nie nawiązano połaczenia&quot;, True )<br />Else<br />ToastMessageShow( &quot;Właczam adapter Bluetooth...&quot;, True )<br />End If<br />Else<br />Admin_StateChanged( Admin.STATE_ON, 0  )<br />End If<br /><br />EdSend.Text = File.ReadString( File.DirInternal, &quot;text&quot; )<br /><br />End Sub<br /><br />Sub Activity_Pause (UserClosed As Boolean)<br />AST.Close<br />Serial1.Disconnect<br />Activity.Finish<br />ExitApplication<br />End Sub<br /><br /><br /><br /><br /><br /><br />Sub Admin_DiscoveryFinished<br />ProgressDialogHide<br />If FoundDevices.Size = 0 Then<br />ToastMessageShow( &quot;Nie znaleziono urządzenia Bluetooth&quot;&amp;CRLF&amp;&quot;Spróbuj ponownie&quot;, True )<br />Else<br />Dim IL As List<br />IL.Initialize<br />For i=0 To FoundDevices.Size-1<br />Dim NM As NameAndMac<br />NM=FoundDevices.Get(i)<br />IL.Add( NM.Name )<br />Next<br />Dim res As Int<br />res = InputList( IL, &quot;Wybierz urządzenie z listy&quot;, -1 )<br />If res &lt;&gt; DialogResponse.CANCEL Then<br />ConnectedDevices = FoundDevices.Get( res )<br />ProgressDialogShow(&quot;Próba połączenia z: &quot;&amp;CRLF&amp;ConnectedDevices.Name&amp;CRLF&amp;&quot;MAC ADR (&quot;&amp;ConnectedDevices.Mac)<br />Serial1.Connect( ConnectedDevices.Mac )<br />End If<br />End If<br />End Sub<br /><br />Sub Admin_DeviceFound (Name As String, MacAddress As String)<br />Dim NM As NameAndMac<br />NM.Name = Name<br />NM.Mac = MacAddress<br />FoundDevices.Add( NM )<br />ProgressDialogShow(&quot;Poszukiwanie urządzeń(znaleziono @)...&quot;.Replace(&quot;@&quot;, FoundDevices.Size))<br />End Sub<br /><br />Sub Serial1_Connected (Success As Boolean)<br />ProgressDialogHide<br /><br />If Success Then <br />ToastMessageShow(&quot;Połączono pomyślnie Bluetooth&quot;, False)<br />Connect_Bluetooth = True<br /><br />If AST.IsInitialized Then <br />AST.Close<br />End If<br />AST.Initialize( Me, &quot;AST&quot;, Serial1.InputStream, Serial1.OutputStream )<br /><br /><br />Activity.Title = &quot;BT_Terminal(Connect)&quot;<br />BtnSend.Enabled = True<br />EdSend.Enabled = True<br />EdLog.Enabled = True<br />BtnSearch.Enabled = False<br />BtnConnect.TextColor = Colors.Red<br />BtnConnect.Text = &quot;Disconnect&quot;<br />Else<br />ToastMessageShow(&quot;Problem z połaczniem Bluetooth&quot;, False)<br />Connect_Bluetooth = False<br />Activity.Title = &quot;BT_Terminal(No connected)&quot;<br />BtnSend.Enabled = False<br />EdSend.Enabled = False<br />EdLog.Enabled = False<br />BtnSearch.Enabled = True<br />BtnConnect.TextColor = Colors.Green<br />BtnConnect.Text = &quot;Connect&quot;<br />End If<br /><br />End Sub<br /><br /><br /><br /><br />Sub AST_Error<br />ToastMessageShow( &quot;Bład strumienia: &quot;&amp;LastException.Message, False )<br />End Sub<br /><br />Sub AST_Terminated<br />ToastMessageShow( &quot;Połaczenie zerwane&quot;, False )<br />End Sub<br /><br />'Sub AST_NewText( Text As String )<br />'Dim msg As String<br />'<br />'EdLog.Text = Text &amp; CRLF<br />'End Sub<br /><br />Sub AST_NewData (Buffer() As Byte)<br />Panel2.Color = Colors.Green<br />Dim x As String<br />x=BytesToString(Buffer, 0, Buffer.Length, &quot;ASCII&quot;)<br />EdLog.Text = x<br />End Sub<br /><br /><br /><br /><br />Sub BtnSend_Click<br /><br />If Connect_Bluetooth Then<br />'AST.Write(  &quot;OFFKo:&quot; &amp; EdSend.Text )'&amp; Chr(13) &amp; Chr(10) )<br />'<br />'EdSend.SelectAll<br />'EdSend.RequestFocus<br />'Dim Dane() As Byte<br />Dim str As String<br /><br />str = &quot;TrB:&quot; &amp; EdSend.Text &amp; Chr(13) &amp; Chr(10)<br />str = &quot;TrBA:&quot; &amp; &quot;2223&quot; &amp; Chr(13) &amp; Chr(10)<br />'Dane = str.GetBytes( &quot;UTF8&quot; )<br />AST.Write( str )<br /><br />File.WriteString( File.DirInternal, &quot;text&quot;, EdSend.Text )<br />End If<br />End Sub<br /><br />Sub BtnConnect_Click<br />If Connect_Bluetooth = False Then<br />Connect_Bluetooth = True<br />Dim pairedDevices As Map<br />pairedDevices = Serial1.GetPairedDevices<br />Dim IL As List<br />IL.Initialize<br />For i=0 To pairedDevices.Size - 1<br />IL.Add( pairedDevices.GetKeyAt(i) )<br />Next<br />Dim res As Int<br />res = InputList( IL,&quot;Wybierz urządzenie&quot;, -1 )<br />If res &lt;&gt; DialogResponse.CANCEL Then<br />Serial1.Connect( pairedDevices.Get( IL.Get( res ) ) )<br />End If<br />Else<br />Connect_Bluetooth = False<br />AST.Close<br />Serial1.Disconnect<br />Activity.Title = &quot;BT_Terminal(No connected)&quot;<br />BtnSend.Enabled = False<br />EdSend.Enabled = False<br />EdLog.Enabled = False<br />BtnSearch.Enabled = True<br />BtnConnect.TextColor = Colors.Green<br />BtnConnect.Text = &quot;Connect&quot;<br />End If<br />End Sub<br /><br />Sub BtnSearch_Click<br />FoundDevices.Initialize<br />If Admin.StartDiscovery = False Then<br />ToastMessageShow( &quot;Bład wyszukiwania Bluetooth&quot;, True )<br />Else<br />ToastMessageShow( &quot;Poszukiwanie urządzeń Bluetooth&quot;, False )<br />End If<br />End Sub[/syntax]<br /><br />Podpięte biblioteki:<br />RandomAcessFile i Serial + plik AsyncStreamText<br /><br />Nie działa tylko komunikacja avr --&gt; telefon<br />Debuger jest taki, że jeśli wywoła procedura zaświeci się panel<br />Nie próbowałem jeszcze użyć kodu z tej podpowiedzi<br />[syntax=vb]dim a,b,c as string<br /> <br />Dim data As String<br />data = &quot;aaa.bbb.ccc&quot;<br />Dim numbers() As String<br />numbers = Regex.Split(&quot;\.&quot;, data)<br />a=numbers(0)<br />b=numbers(1)<br />c=numbers(2)[/syntax]<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=20050">Tokio518</a> — 15 lip 2019, o 06:58</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Harry]]></name></author>
<updated>2019-07-14T20:54:55+01:00</updated>
<published>2019-07-14T20:54:55+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220376#p220376</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220376#p220376"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220376#p220376"><![CDATA[
Sub może nie działać z wielu powodów, ale nie mając kodu to nawet z fusów ciężko wywróżyć.<br />Ja bym ustawił pułapki na wszystkich procedurach związanych z połączeniem i oczywiście przeszedł krok po kroku całość, bo może np telefon się rozłącza...<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14685">Harry</a> — 14 lip 2019, o 20:54</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tfosik]]></name></author>
<updated>2019-07-14T20:47:08+01:00</updated>
<published>2019-07-14T20:47:08+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220375#p220375</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220375#p220375"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220375#p220375"><![CDATA[
Bardzo dobre pytanie Hary. Odbiór nie działa skoro sub nie działa. Czy urządzenia są sparowane?<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18769">tfosik</a> — 14 lip 2019, o 20:47</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Harry]]></name></author>
<updated>2019-07-14T20:50:18+01:00</updated>
<published>2019-07-14T20:43:20+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220374#p220374</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220374#p220374"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220374#p220374"><![CDATA[
Ja się zastanawiam co mu działa:<br />a - procek -&gt; komp<br />b - komp -&gt; procek<br />c - procek -&gt; telefon<br />d - telefon -&gt; procek<br />e - telefon -&gt; komp<br />f - komp -&gt; telefon<br /><br />Najlepiej by było jakby wrzucił cały kod, a jeśli nie to przynajmniej procedure łączenie-&gt; odbiór<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14685">Harry</a> — 14 lip 2019, o 20:43</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tfosik]]></name></author>
<updated>2019-07-14T20:29:53+01:00</updated>
<published>2019-07-14T20:29:53+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220373#p220373</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220373#p220373"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220373#p220373"><![CDATA[
Trudno jest wróżyć z fusów bez kodu. Może to, a może tamto...<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18769">tfosik</a> — 14 lip 2019, o 20:29</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Harry]]></name></author>
<updated>2019-07-14T19:25:30+01:00</updated>
<published>2019-07-14T19:25:30+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220371#p220371</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220371#p220371"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220371#p220371"><![CDATA[
On wogóle nie wchodzi do Suba, czy tylko nie zaświeca panelu?<br />Najlepiej ustaw pułapkę na nim, albo przejdź krok po kroku całość.<br /><br />Jeszcze głupie pytanie - masz wogóle podpiętą klasę AsyncStreams?<br /><!-- l --><a class="postlink-local" href="https://forum.atnel.pl/topic19536-60.html" >topic19536-60.html</a><!-- l --> porównaj sobie tym całą swoją  procedurę.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14685">Harry</a> — 14 lip 2019, o 19:25</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Tokio518]]></name></author>
<updated>2019-07-14T19:22:45+01:00</updated>
<published>2019-07-14T19:22:45+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220370#p220370</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220370#p220370"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220370#p220370"><![CDATA[
No, właśnie jest debuger i procedura nie jest wywoływana na gdzieś po środku wątku jest post z tym.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=20050">Tokio518</a> — 14 lip 2019, o 19:22</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Harry]]></name></author>
<updated>2019-07-14T16:35:50+01:00</updated>
<published>2019-07-14T16:35:50+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220365#p220365</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220365#p220365"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220365#p220365"><![CDATA[
Zamiast szukać winnych, to może by tak sprawdzić czy procedura odbioru wogóle dziala? Chyba po coś masz debuger?<br /><br />Wysłane ze srajfona<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14685">Harry</a> — 14 lip 2019, o 16:35</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tfosik]]></name></author>
<updated>2019-07-14T10:52:23+01:00</updated>
<published>2019-07-14T10:52:23+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220356#p220356</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220356#p220356"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220356#p220356"><![CDATA[
Może dla testów ustaw w manifeście android:targetSdkVersion=&quot;26&quot; na 22 zapisz i skompiluj.<br /><br /><strong><span style="color: #808000">------------------------ [ Dodano po: dzisiaj, o 10:52 ]</span></strong><br /><br />Użyj może jeszcze metody Regex.Split, tz. umieść ciąg w separatorach a następnie wyłuskaj tekst na przykład tak:<br />[syntax=basic4gl]dim a,b,c as string<br /> <br />Dim data As String<br />data = &quot;aaa.bbb.ccc&quot;<br />Dim numbers() As String<br />numbers = Regex.Split(&quot;\.&quot;, data)<br />a=numbers(0)<br />b=numbers(1)<br />c=numbers(2)[/syntax]<br /><br />Oczywiście musisz to sobie odpowiednio wkomponować w kod.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18769">tfosik</a> — 14 lip 2019, o 10:52</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Tokio518]]></name></author>
<updated>2019-07-14T10:36:02+01:00</updated>
<published>2019-07-14T10:36:02+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220355#p220355</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220355#p220355"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220355#p220355"><![CDATA[
Nic żadnych nowych informacji. Ale, gdy wysłałem to do aplikacji na komputerze wszystko za działało<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=20050">Tokio518</a> — 14 lip 2019, o 10:36</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tfosik]]></name></author>
<updated>2019-07-14T10:20:16+01:00</updated>
<published>2019-07-14T10:20:16+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220354#p220354</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220354#p220354"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220354#p220354"><![CDATA[
Witam<br />Wychodzi na to że błąd leży po stronie procka. Skompiluj w trybie debug i odznacz filtruj, może w niefiltrowanych dziennkiach dostaniesz więcej informacji.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18769">tfosik</a> — 14 lip 2019, o 10:20</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Tokio518]]></name></author>
<updated>2019-07-14T09:55:34+01:00</updated>
<published>2019-07-14T09:55:34+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220353#p220353</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220353#p220353"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220353#p220353"><![CDATA[
Nie dostaje żadnych komunikatów o błędzie. Uprawnienia aplikacja ma. Przy komunikacji z komputerem jak to było na jednym z poradników Mirka wszystko działało. Ale przy komunikacji z mikro kontrolerem mogę wysłać z telefonu i atmega odbierze, ale telefon nie odbiera danych od atmegi.<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=20050">Tokio518</a> — 14 lip 2019, o 09:55</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[tfosik]]></name></author>
<updated>2019-07-13T20:28:04+01:00</updated>
<published>2019-07-13T20:28:04+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220349#p220349</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220349#p220349"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220349#p220349"><![CDATA[
Witam<br />Dostajesz jakieś komunikaty o błędzie?. Jakie masz niebezpieczne uprawnienia w aplikacji (sprawdź te oznaczone gwiazdką) i czy ew. uzyskujesz zgodę użytkownika na wykonywanie się tych uprawnień...<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=18769">tfosik</a> — 13 lip 2019, o 20:28</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Harry]]></name></author>
<updated>2019-07-13T19:22:33+01:00</updated>
<published>2019-07-13T19:22:33+01:00</published>
<id>https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220346#p220346</id>
<link href="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220346#p220346"/>
<title type="html"><![CDATA[Re: AVR + B4A Komunikacja bluetooth]]></title>

<content type="html" xml:base="https://forum.atnel.pl/viewtopic.php?t=22401&amp;p=220346#p220346"><![CDATA[
<div class="quotetitle">Tokio518 napisał(a):</div><div class="quotecontent"><br />Ale nie wiem czy ta procedura jest w ogóle wywoływana<br /></div><br />Skorzystaj z debugera.<br /><br />Wysłane ze srajfona<p>Statystyki: Napisane przez <a href="https://forum.atnel.pl/memberlist.php?mode=viewprofile&amp;u=14685">Harry</a> — 13 lip 2019, o 19:22</p><hr />
]]></content>
</entry>
</feed>