<?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>error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7429/error-code-0x05-softdevice-s130-testing</link><description>Hi, 
 i&amp;#39;m testing softdevice s130 central/peripheral example. I modefied the uuid of device to which my nrf58122 should connect, but i get error 0x05 (Device not found) everytime. 
 Edit: 
 I changed uuid of devices on which to connect. 
 static const</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Jun 2015 05:26:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7429/error-code-0x05-softdevice-s130-testing" /><item><title>RE: error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/thread/26460?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2015 05:26:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ad9d619-df5c-4acd-8c8c-532da9a6f42f</guid><dc:creator>nejcokle</dc:creator><description>&lt;p&gt;Yes that was the problem. I should have used &lt;code&gt;BLE_GAP_ADDR_TYPE_PUBLIC&lt;/code&gt; for my pheripheral. Thank you both for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/thread/26459?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 18:50:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfc799fd-eeee-458c-8d7f-d7c524b8f92f</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;Is the address type of the advertiser actually random static?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/thread/26463?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 12:16:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05011756-b5e5-4c54-8adc-9877f31fbca7</guid><dc:creator>Eirik Aa</dc:creator><description>&lt;p&gt;Do tou call this function from main?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/thread/26448?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 11:43:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8324075a-0316-4e49-8589-a7920a710059</guid><dc:creator>Eirik Aa</dc:creator><description>&lt;p&gt;This code should run without you trying to connect. If you try to connect then you need to stop scanning first.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;sd_ble_gap_scan_stop()
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/thread/26447?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 11:43:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0397503-8a6b-46a8-95a1-415befcc36d7</guid><dc:creator>nejcokle</dc:creator><description>&lt;p&gt;sorry, i converted your answer, i missclicked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/thread/26462?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 11:42:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a70ccbb3-f865-4765-aa9a-edd3957e4eb9</guid><dc:creator>nejcokle</dc:creator><description>&lt;p&gt;oops, i missclicked and made this a question, sorry.&lt;/p&gt;
&lt;p&gt;hmm, if i import this code, my application seems to crash, due too scan_start function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/thread/26461?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 11:24:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:add3b25c-fa63-49b1-9590-abb152b17db7</guid><dc:creator>Eirik Aa</dc:creator><description>&lt;p&gt;To get advertisement packages you also need to start the scanner.&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define SCAN_INTERVAL                           MSEC_TO_UNITS(130, UNIT_0_625_MS)
#define SCAN_WINDOW                             MSEC_TO_UNITS(30, UNIT_0_625_MS)
static ble_gap_scan_params_t        m_scan_param;
static void scan_start(void)
{
uint32_t              err_code;

LOG_INFO(&amp;quot;Scan started&amp;quot;);
// No devices in whitelist, hence non selective performed.
m_scan_param.active       = 0;            // Active scanning set.
m_scan_param.selective    = 0;            // Selective scanning not set.
m_scan_param.interval     = SCAN_INTERVAL;// Scan interval.
m_scan_param.window       = SCAN_WINDOW;  // Scan window.
m_scan_param.p_whitelist  = NULL;         // No whitelist provided.
m_scan_param.timeout      = 0x0000;       // No timeout.

err_code = sd_ble_gap_scan_start(&amp;amp;m_scan_param);
APP_ERROR_CHECK(err_code);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/thread/26458?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 11:17:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca956775-7ae0-4076-b332-7b45cbf33dd1</guid><dc:creator>nejcokle</dc:creator><description>&lt;p&gt;If i LOG_INFO error code after that line, i get error code 0x5, if that&amp;#39;s what you mean.&lt;/p&gt;
&lt;p&gt;if i LOG_INFO evt_len, i get &amp;quot;0&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/thread/26457?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 11:09:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54d6be2e-bab0-4a17-8eba-cdb971c27103</guid><dc:creator>Eirik Aa</dc:creator><description>&lt;p&gt;There are several of the test on the error code. What are the codeline putting the last value into the erro_code.  sd_ble_evt_get(p_evt_buf, &amp;amp;evt_len) ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/thread/26456?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 11:06:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:081f54a0-a96d-4364-b633-6474511d0571</guid><dc:creator>nejcokle</dc:creator><description>&lt;p&gt;In the event_handler function, i can&amp;#39;t get into:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;if (error_code == NRF_SUCCESS)
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/thread/26455?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 11:00:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:076b2564-5152-4d13-9c67-4d0bd93650a6</guid><dc:creator>Eirik Aa</dc:creator><description>&lt;p&gt;What fucntion is failing?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/thread/26454?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 10:53:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c0d7f5ff-9e28-4c3e-ab4c-33282fe72559</guid><dc:creator>nejcokle</dc:creator><description>&lt;p&gt;If i put that code you posted in switch case, like you posted, i don&amp;#39;t get anything, since i don&amp;#39;t fall into this  switch function (my error_code is not equal to NRF_SUCCESS).&lt;/p&gt;
&lt;p&gt;But if i put that into if and put it before the &amp;quot;if (error_code == NRF_SUCCESS)&amp;quot;, i get:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Advertisement received Address 00 00 00 00 00 00
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/thread/26453?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 10:34:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cd37ae9-7815-420c-abd7-66b69db05208</guid><dc:creator>Eirik Aa</dc:creator><description>&lt;p&gt;In event handle add:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;case BLE_GAP_EVT_ADV_REPORT:
LOG_INFO(&amp;quot;Advertisement received Address  %02X %02X %02X %02X %02X %02X&amp;quot;,p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.peer_addr.addr[0],p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.peer_addr.addr[1],p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.peer_addr.addr[2],p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.peer_addr.addr[3],p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.peer_addr.addr[4],p_ble_evt-&amp;gt;evt.gap_evt.params.adv_report.peer_addr.addr[5]);
break;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Then you can see what addresses you received advertisement from&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/thread/26450?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 10:29:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b114b9d1-0f86-4d30-b609-5cb09445bee5</guid><dc:creator>nejcokle</dc:creator><description>&lt;p&gt;Looking closely i saw that address in example is backwars so i put mine backwards too, like:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;{0x19, 0x24, 0x0D, 0x50, 0xA0, 0x00}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;but still no success.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/thread/26452?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 10:20:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2c31bff-e48f-4652-80bc-31464b64d0ca</guid><dc:creator>nejcokle</dc:creator><description>&lt;p&gt;Can you please explain, what exactly do you mean by correct order?&lt;/p&gt;
&lt;p&gt;When i print address of my peripheral device i get:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Start Advertisement with addr: 00a0500d2419
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/thread/26451?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 10:13:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4b7c1cd6-47f5-4a47-81b1-25fe8ae9fed0</guid><dc:creator>Eirik Aa</dc:creator><description>&lt;p&gt;Are you sure you entered the bytes in the correct order?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/thread/26449?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 10:04:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30d37a29-aa63-4f4c-96cc-98dec0bbeb31</guid><dc:creator>nejcokle</dc:creator><description>&lt;p&gt;Sorry i meant MAC and not UUID. Yes the first address is the address of my periferial device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/thread/26446?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 09:34:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fc4edbd-c33b-4d4b-9d3a-02c2366ccff2</guid><dc:creator>Eirik Aa</dc:creator><description>&lt;p&gt;You changed the MAC / device ID that the unit tries to connect to. This means that the devices tries to find and connect to the addresses mentioned above. Do you have periferial devices with that address. Not the same as UUID. normally the MAC address is used or a program defined replacment for that number.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/thread/26444?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 08:50:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed14c724-5e80-4ebb-a0c7-787313923e4a</guid><dc:creator>nejcokle</dc:creator><description>&lt;p&gt;Edited. As you can see i didn&amp;#39;t change much, just uuid of device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: error code 0x05, SoftDevice S130 testing</title><link>https://devzone.nordicsemi.com/thread/26445?ContentTypeID=1</link><pubDate>Thu, 04 Jun 2015 08:33:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:04ebb1f7-8b31-4bc9-a7e2-b6bedfdcbf09</guid><dc:creator>Eirik Aa</dc:creator><description>&lt;p&gt;I think you should post some more details.. Perhaps a diff to see what you changed. Hard to know without any information&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>