<?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>sd_ble_gap_scan_start returns 0x6</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48711/sd_ble_gap_scan_start-returns-0x6</link><description>Hello everyone, 
 I am trying to develop a windows application using the same example from pc-ble-driver-4.1.1\examples\heart_rate_collector/main.c. When i call the function &amp;#39;sd_ble_gap_scan_start&amp;#39;, the error code is 0x6. My scan parameters are, 
 extended</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Jun 2019 09:46:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48711/sd_ble_gap_scan_start-returns-0x6" /><item><title>RE: sd_ble_gap_scan_start returns 0x6</title><link>https://devzone.nordicsemi.com/thread/194279?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2019 09:46:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2df30939-065f-4e70-a996-757029a7c311</guid><dc:creator>awneil</dc:creator><description>[quote userid="80633" url="~/f/nordic-q-a/48711/sd_ble_gap_scan_start-returns-0x6/194228"]I had resolved it[/quote]
&lt;p&gt;Jolly good - please verify the answer:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/7737._5F00_Verify_2D00_answer_2D00_nordic.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_scan_start returns 0x6</title><link>https://devzone.nordicsemi.com/thread/194228?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2019 07:34:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6c447cd-ecdc-40c4-9232-a65efddc7f76</guid><dc:creator>LCC</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Just to update on this issue,&lt;/p&gt;
&lt;p&gt;I had resolved it by changing my code structure&amp;nbsp;for&amp;nbsp;ble_gap_scan_params_t as the variable mapping is incorrect at my side.&lt;/p&gt;
&lt;p&gt;Thanks for looking at the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_scan_start returns 0x6</title><link>https://devzone.nordicsemi.com/thread/193489?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2019 16:08:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7977719b-0151-48ef-aa2d-6ab480d246a5</guid><dc:creator>awneil</dc:creator><description>[quote userid="80633" url="~/f/nordic-q-a/48711/sd_ble_gap_scan_start-returns-0x6/193482"]The&amp;nbsp;error code means : NRF_ERROR_NOT_SUPPORTED Unsupported parameters supplied[/quote][quote userid="80633" url="~/f/nordic-q-a/48711/sd_ble_gap_scan_start-returns-0x6/193482"] i am not sure which parameters is not supported.[/quote]
&lt;p&gt;Yes - it has been noted that this type of error is very unhelpful:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/48490/graceful-recovery-from-bluetooth-errors/192292#192292"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/48490/graceful-recovery-from-bluetooth-errors/192292#192292&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_scan_start returns 0x6</title><link>https://devzone.nordicsemi.com/thread/193482?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2019 15:25:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3794b6bf-7091-4ca3-8592-fea0973f9601</guid><dc:creator>LCC</dc:creator><description>&lt;p&gt;Hi awneil,&lt;/p&gt;
&lt;p&gt;Thanks for replying to the questions.&lt;/p&gt;
&lt;p&gt;The&amp;nbsp;error code means : NRF_ERROR_NOT_SUPPORTED Unsupported parameters supplied&amp;nbsp;See @ref ble_gap_scan_params_t.&lt;/p&gt;
&lt;p&gt;Below is the code that i used during the call for setting the parameters. So i am not sure which parameters is not supported.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;ble_gap_scan_params_t m_scan_param = new ble_gap_scan_params_t();
m_scan_param.extended = 0x00; // Set if accept extended advertising packetets.
m_scan_param.report_incomplete_evts = 0x00; // Set if report incomplete reports.
m_scan_param.active = 0x00; // Set if active scanning.
m_scan_param.filter_policy = 0x00; //BLE_GAP_SCAN_FP_ACCEPT_ALL Accept all advertising packets except directed advertising packets
m_scan_param.scan_phys = 0x01;//BLE_GAP_PHY_1MBPS /**&amp;lt; 1 Mbps PHY. */
m_scan_param.interval = 0x00A0; /*&amp;lt; Determines scan interval in units of 0.625 milliseconds. */
m_scan_param.window = 0x0050; /*&amp;lt; Determines scan window in units of 0.625 milliseconds. */
m_scan_param.timeout = 0x0;    /*&amp;lt; Scan timeout between 0x01 and 0xFFFF in seconds, 0x0 disables timeout. */&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: sd_ble_gap_scan_start returns 0x6</title><link>https://devzone.nordicsemi.com/thread/193399?ContentTypeID=1</link><pubDate>Tue, 18 Jun 2019 11:25:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:958f5efa-aa71-4a60-899e-94e8ba624e51</guid><dc:creator>awneil</dc:creator><description>[quote userid="80633" url="~/f/nordic-q-a/48711/sd_ble_gap_scan_start-returns-0x6"]the error code is 0x6[/quote]
&lt;p&gt;have you looked up what that code means?&lt;/p&gt;
&lt;p&gt;How to properly post source code:&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/3884._5F00_Insert-Code-_2D00_-Nordic.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>