<?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>Where to use lib_aci_set_local_data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4583/where-to-use-lib_aci_set_local_data</link><description>Hello Nordic Team,
i&amp;#39;ve get my things working and i figured out how i can set service data and to display it in nRF Master Control. 
 Now i want to CHANGE my service data every 5 seconds for example. 
 Till now, i&amp;#39;ve used lib_aci_set_local_data like</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Jan 2016 09:44:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4583/where-to-use-lib_aci_set_local_data" /><item><title>RE: Where to use lib_aci_set_local_data</title><link>https://devzone.nordicsemi.com/thread/16232?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2016 09:44:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccf415b1-2cd2-4954-9f36-7ed458112e30</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Hi David, thanks for getting back to me.  I created a post last wednesday with my issue, please see &lt;a href="https://devzone.nordicsemi.com/question/64355/nrf8001-strange-events/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;  Let me know if the debug provided isn&amp;#39;t enough to go on.  Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where to use lib_aci_set_local_data</title><link>https://devzone.nordicsemi.com/thread/16231?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2016 09:06:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d99095a-52c8-4378-8fbf-b003ef50a35d</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;I think this may be an issue in the original question may be due to SPI wiring as a command that does not exist was tagged with an error. However we did not progress as the additional information requested was not received. Can you post the issue that you see with the debug logs (Can you turn on the debug option in the lib_aci_init and post the ACI message traces that are printed over the Serial ?).&lt;/p&gt;
&lt;p&gt;Post this as a separate question so it will get the right level of attention.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where to use lib_aci_set_local_data</title><link>https://devzone.nordicsemi.com/thread/16230?ContentTypeID=1</link><pubDate>Mon, 18 Jan 2016 08:02:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:093934d6-fbb2-412d-bccc-baf1cba5eeb4</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Did you get to the bottom of this issue?  I&amp;#39;m seeing a similar problem while calling lib_aci_set_local_data within the aci loop, unless I put a delay within the loop via delay or a simple printf.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where to use lib_aci_set_local_data</title><link>https://devzone.nordicsemi.com/thread/16229?ContentTypeID=1</link><pubDate>Thu, 08 Jan 2015 11:08:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9afde7ce-095d-430a-bfa0-3faa9ec4c9b3</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;The error says that a Command Response Event with an error was received for the ACI Command 0x82, which is a bit odd as ACI command 0x82 does not exist.
Can you turn on the debug option in the lib_aci_init and post the ACI message traces that are printed over the Serial ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where to use lib_aci_set_local_data</title><link>https://devzone.nordicsemi.com/thread/16228?ContentTypeID=1</link><pubDate>Thu, 08 Jan 2015 09:39:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:108894ff-c976-4300-8fe8-12e4d9726987</guid><dc:creator>DennisEB</dc:creator><description>&lt;p&gt;So.. now i got the &lt;code&gt;ACI Command 82: Evt Cmd respone: Error. Arduino is in a while(1) loop&lt;/code&gt;.
What does ACI Command 82 say? If i insert an &lt;code&gt;delay(200)&lt;/code&gt;, this error message doesn&amp;#39;t show up. Put if i change the delay to &lt;code&gt;delay(100)&lt;/code&gt;, i got this message.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where to use lib_aci_set_local_data</title><link>https://devzone.nordicsemi.com/thread/16227?ContentTypeID=1</link><pubDate>Mon, 22 Dec 2014 09:12:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e838480d-93ba-4e79-9b89-397d43af2eaa</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;You can also turn on debug printing over Serial by setting the debug mode to true in the lib_aci_init(). Post the debug prints in your question so it will be easier to help you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where to use lib_aci_set_local_data</title><link>https://devzone.nordicsemi.com/thread/16226?ContentTypeID=1</link><pubDate>Fri, 05 Dec 2014 07:59:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3fef871c-0041-4c01-be46-cc906237c1b5</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Hi,
I&amp;#39;m sorry for the late reply. Add this above the while (1); to print the status code:
Serial.println(aci_evt-&amp;gt;params.cmd_rsp.cmd_status, HEX);
Anyway you could upload your code so I can see what you are doing when you call set_local_data? Are you calling it directly in the loop? And are you waiting for the command response event from the previous set_local_data before calling it again?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where to use lib_aci_set_local_data</title><link>https://devzone.nordicsemi.com/thread/16225?ContentTypeID=1</link><pubDate>Thu, 27 Nov 2014 10:29:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6d9361c-7280-49c7-a052-b73d4845c581</guid><dc:creator>DennisEB</dc:creator><description>&lt;p&gt;Hello Runar,
i don&amp;#39;t know what i have to do, to give you the Command Response Event. Arduino Serial Monitor shows nothing, but the mentioned &lt;code&gt;ACI COMMAND D, Evt Cmd respone: error. Arduino is in a while(1) loop&lt;/code&gt; . And thats the only error. No PipeErrorEvent.?!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where to use lib_aci_set_local_data</title><link>https://devzone.nordicsemi.com/thread/16224?ContentTypeID=1</link><pubDate>Thu, 27 Nov 2014 09:42:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d83e132-0cc7-4c18-a784-3e477f0bf122</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Can you print out the &lt;a href="https://devzone.nordicsemi.com/documentation/ps/nRF8001_PS_v1.2.pdf#G1053146"&gt;Status code&lt;/a&gt; given in the Command response event? Chapter 28.1 ACI Status Code in Product specification.&lt;/p&gt;
&lt;p&gt;I assume you might also be getting a PipeErrorEvent?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where to use lib_aci_set_local_data</title><link>https://devzone.nordicsemi.com/thread/16223?ContentTypeID=1</link><pubDate>Wed, 26 Nov 2014 12:17:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e632db66-e164-4a86-8630-12fd628103b0</guid><dc:creator>DennisEB</dc:creator><description>&lt;p&gt;Hi Runar,
in services.h it looks like this:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt; /* Service: Gap - Characteristic: Device name - Pipe: SET */
#define PIPE_GAP_DEVICE_NAME_SET          1
#define PIPE_GAP_DEVICE_NAME_SET_MAX_SIZE 2

/* Service: GPS_info - Characteristic: GPSsend - Pipe: BROADCAST */
#define PIPE_GPS_INFO_GPSSEND_BROADCAST          2
#define PIPE_GPS_INFO_GPSSEND_BROADCAST_MAX_SIZE 16
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And in my sketch, within the case-part i use:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;case ACI_DEVICE_STANDBY:
            
            // Open advertising pipe on pipe 2
            
            lib_aci_open_adv_pipe(2);
            // Start broadcasting
            lib_aci_broadcast(0x1000, 0x1000);
            lib_aci_set_local_data(&amp;amp;aci_state, 2,(uint8_t *) &amp;amp;Nummer1, sizeof(Nummer1)); // 
            break;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Cut setlocaldata in this part and cory it outside all case-statements will cause ACI D Err&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where to use lib_aci_set_local_data</title><link>https://devzone.nordicsemi.com/thread/16222?ContentTypeID=1</link><pubDate>Wed, 26 Nov 2014 10:16:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35c06772-5c95-4285-ace2-8a5403f05a5e</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Any chance you could share your project? I looked at the broadcast and as far as I can see we are not using set_local_data there, but I could be wrong. This should be fairly straight forward as long as the set pipe property is set (would be #define PIPE_GAP_DEVICE_NAME_SET in services.h with the _SET postfix). Note that if you don&amp;#39;t want to share your project here you could create a support case instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where to use lib_aci_set_local_data</title><link>https://devzone.nordicsemi.com/thread/16221?ContentTypeID=1</link><pubDate>Tue, 25 Nov 2014 13:35:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e560b35e-b4b0-43b5-b51d-c34803e989a2</guid><dc:creator>DennisEB</dc:creator><description>&lt;p&gt;The command response is &lt;code&gt;ACI COMMAND D, Evt Cmd respone: error. Arduino is in a while(1) loop&lt;/code&gt; . No i can&amp;#39;t use notifications because will and have to use advertising service data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Where to use lib_aci_set_local_data</title><link>https://devzone.nordicsemi.com/thread/16220?ContentTypeID=1</link><pubDate>Tue, 25 Nov 2014 13:19:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:430a3ba0-8ace-4333-931e-649cd80bd5e1</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;What is the command response you are getting? Since you are planning on updating your service data every 5 seconds, have you considered using notifications?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>