<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Combing central and peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/66540/combing-central-and-peripheral</link><description>Hi everyone, 
 I&amp;#39;m working on programming nRF52833. I want to my nRF52833 is able to broadcast advertising and also scanning (In another word, my device plays peripheral role and central role). I decided to merge 2 project ble_app_uart_c and ble_app_uart</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 02 Oct 2020 09:44:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/66540/combing-central-and-peripheral" /><item><title>RE: Combing central and peripheral</title><link>https://devzone.nordicsemi.com/thread/272683?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2020 09:44:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ff3928c-2566-40b8-923a-8d1946910900</guid><dc:creator>Nguyen Trong Tuan</dc:creator><description>&lt;p&gt;Okay sorry I forget it, my bad.Really sorry about that!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combing central and peripheral</title><link>https://devzone.nordicsemi.com/thread/272681?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2020 09:31:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88332188-ae46-4889-bd3e-9de6ac979dc4</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/1234._5F00_Verify_2D00_answer_2D00_nordic_5F00_2.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combing central and peripheral</title><link>https://devzone.nordicsemi.com/thread/272679?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2020 09:11:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc85a37f-7de7-4656-9da5-05d3df60ff4d</guid><dc:creator>Nguyen Trong Tuan</dc:creator><description>&lt;p&gt;Oh many thanks for your useful reply. I did it. Many thanks for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combing central and peripheral</title><link>https://devzone.nordicsemi.com/thread/272677?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2020 09:05:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef119047-6e1f-40b8-9019-c31e9e39b4c0</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Have you tried to debug nrf_ble_scan_filter_set()? This code is open source, so you should be able to step through this. I suspect that neither of the configurations are set in sdk_config.h, which is why the default return value (NRF_ERROR_INVALID_PARAM == 7) returns. Look at how this is done in the&amp;nbsp;&lt;span&gt;ble_app_uart_c&amp;nbsp;example.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combing central and peripheral</title><link>https://devzone.nordicsemi.com/thread/272641?ContentTypeID=1</link><pubDate>Fri, 02 Oct 2020 02:47:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f03969e2-3e9a-4732-89bb-0dc60c68667c</guid><dc:creator>Nguyen Trong Tuan</dc:creator><description>&lt;p&gt;yes, I have a look on that and when I comment that line, the application run well. But I don&amp;#39;t get it why my parameter is invalid. Can you tell me??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combing central and peripheral</title><link>https://devzone.nordicsemi.com/thread/272462?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2020 09:22:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f30e1f46-d80a-4fc1-8644-0e38faade2e5</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Go to the declaration (not definition) of &lt;span&gt;nrf_ble_scan_filter_set&lt;/span&gt;&lt;span&gt;()&amp;nbsp; - it&amp;#39;ll be in an SDK header file.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Read the comment documentation for&amp;nbsp;nrf_ble_scan_filter_set()&amp;nbsp; - it will list all the possible error returns, and their meanings.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combing central and peripheral</title><link>https://devzone.nordicsemi.com/thread/272447?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2020 08:39:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6034a807-9be1-4c5b-8282-d86565d9ae53</guid><dc:creator>Nguyen Trong Tuan</dc:creator><description>&lt;p&gt;Yes, i have checked it already!!&lt;/p&gt;
&lt;p&gt;The error code comes from scan_init() with the error_code = 0x00000007 after nrf_ble_scan_filter_set. Do you have any ideas for this??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combing central and peripheral</title><link>https://devzone.nordicsemi.com/thread/272445?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2020 08:15:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7ffe66d4-9261-416f-ab98-aa1daa5c5001</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So there&amp;#39;s something basic that you need to fix&lt;/p&gt;
&lt;p&gt;Again, did&amp;nbsp;you have the individual examples working before you combined them?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combing central and peripheral</title><link>https://devzone.nordicsemi.com/thread/272444?ContentTypeID=1</link><pubDate>Thu, 01 Oct 2020 08:07:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a27f83d-1f25-44c2-914f-e915f6dee27a</guid><dc:creator>Nguyen Trong Tuan</dc:creator><description>&lt;p&gt;it prints nothing&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combing central and peripheral</title><link>https://devzone.nordicsemi.com/thread/272332?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 13:22:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:55b3a5f9-f682-451c-875f-e21ef885a824</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Let us know what the RTT log says, &lt;a href="https://devzone.nordicsemi.com/members/nguyen-trong-tuan"&gt;Nguyen Trong Tuan&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combing central and peripheral</title><link>https://devzone.nordicsemi.com/thread/272319?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 12:50:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:345db7fc-7133-4284-ab3d-7505f1e1bda3</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;It&amp;#39;s &lt;strong&gt;your&lt;/strong&gt; code - so &lt;em&gt;&lt;strong&gt;you&lt;/strong&gt; &lt;/em&gt;are the one that needs to debug it!&lt;/p&gt;
&lt;p&gt;&lt;a href="https://www.avrfreaks.net/comment/2418156#comment-2418156"&gt;www.avrfreaks.net/.../2418156&lt;/a&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Did you have the individual examples working before you combined them?&lt;/li&gt;
&lt;li&gt;Add further RTT traces to get more details of what&amp;#39;s happening&lt;/li&gt;
&lt;li&gt;Use the debugger to see what&amp;#39;s actually happening in your code&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/debug.html"&gt;https://infocenter.nordicsemi.com/topic/ug_gsg_ses/UG/gsg/debug.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combing central and peripheral</title><link>https://devzone.nordicsemi.com/thread/272307?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 12:33:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:57f09d69-7456-496c-a417-091062f35e95</guid><dc:creator>Nguyen Trong Tuan</dc:creator><description>&lt;p&gt;I think my code has something wrong. But I dont know @_@. Do you have any ideas???&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combing central and peripheral</title><link>https://devzone.nordicsemi.com/thread/272305?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 12:31:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10713470-bec2-46cf-b392-ce9240ded1d1</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;so what did you learn from that?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combing central and peripheral</title><link>https://devzone.nordicsemi.com/thread/272273?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 11:45:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18ae5920-74c1-4275-a108-ff6a8dcc4fab</guid><dc:creator>Nguyen Trong Tuan</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your reply. I used RTT to see what happened and used nRFconnect to see my device broadcast advertising or not. But I can&amp;#39;t find my device in the list of nRFconnect @_@&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Combing central and peripheral</title><link>https://devzone.nordicsemi.com/thread/272254?ContentTypeID=1</link><pubDate>Wed, 30 Sep 2020 11:08:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03235c44-0065-42cc-970a-dfe13b0505cb</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;The SDK has some examples of doing both Central &amp;amp; Peripheral&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/examples_ble_cen_per.html"&gt;https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.0.2/examples_ble_cen_per.html&lt;/a&gt;&lt;/p&gt;
[quote userid="92648" url="~/f/nordic-q-a/66540/combing-central-and-peripheral"]give me some suggestions to solve it[/quote]
&lt;p&gt;What debugging have &lt;em&gt;&lt;strong&gt;you&lt;/strong&gt; &lt;/em&gt;done to find where it&amp;#39;s going wrong ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>