<?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>NRF8001 + Ardino - set advertisement data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4742/nrf8001-ardino---set-advertisement-data</link><description>Hello, 
 I have been since many days desperately trying to set the bytes in the advertisement packets in my Arduino, combined with an NRF8001. 
 What I am trying to achieve? 
 I am using an app for Android to test my Arduino program screenshot . I</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Dec 2014 20:23:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4742/nrf8001-ardino---set-advertisement-data" /><item><title>RE: NRF8001 + Ardino - set advertisement data</title><link>https://devzone.nordicsemi.com/thread/16784?ContentTypeID=1</link><pubDate>Thu, 11 Dec 2014 20:23:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a98b71d7-a871-4c62-a6c7-cf0106a553d9</guid><dc:creator>barth.zalewski</dc:creator><description>&lt;p&gt;Thank you for the clarification. I think this will help me a lot. Besides of that, I started using nRFgo Studio to generate the Service.h but facing Problems there. I will ask a new question for this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF8001 + Ardino - set advertisement data</title><link>https://devzone.nordicsemi.com/thread/16783?ContentTypeID=1</link><pubDate>Mon, 08 Dec 2014 19:52:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5b2fe8f-afad-4a05-b62b-208516e8be3c</guid><dc:creator>barth.zalewski</dc:creator><description>&lt;p&gt;Sadly no. I had already found the linked threads. They are not helpful. I still do not know how to change other bytes in the scan record.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF8001 + Ardino - set advertisement data</title><link>https://devzone.nordicsemi.com/thread/16782?ContentTypeID=1</link><pubDate>Mon, 08 Dec 2014 09:52:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:06fb28e4-7266-4f02-aac2-185b87b497c1</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;My apologies on the trouble that you have faced. I see that there is a similar set of questions have been posted and answered on the devzone.&lt;/p&gt;
&lt;p&gt;Please see these&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/19004/how-to-send-data-while-advertising-with-redbear-blendnrf8001/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/21359/multiple-pipes-in-service-data/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;[Added to clarify]
All the bytes in the advertising and in the scan response are changeable from broadcast pipes.
However you need to be aware that the any command that is sent to the nRF8001 will get a response like a Command Response event.
When you are opening a pipe using the ACI Command OpenAdvPipe, you need to wait for the Command Response Event.
You are using the return code incorrectly , the return code says that the command has been successfully placed in the queue and the pipe is not open yet.&lt;/p&gt;
&lt;p&gt;You also need to do an ACI broadcast /ACI connect to start the radio which you are not doing.&lt;/p&gt;
&lt;p&gt;=Steps=
Once the nRF8001 sends the ACI Device Started Standby event, you can use the ACI OpenAdvPipe command on the broadcast pipe.&lt;/p&gt;
&lt;p&gt;The functions to use the ACI commands are present in the lib_aci.h ( lib_aci_open_adv_pipes , lib_aci_set_local_data )&lt;/p&gt;
&lt;p&gt;Then start advertising using the ACI broadcast command.&lt;/p&gt;
&lt;p&gt;You can update the data in the Pipe by using the ACI Set Local Data command.
lib_aci_set_local_data&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>