<?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>BLE ACI verification</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4403/ble-aci-verification</link><description>Hi, i&amp;#39;m kinda a newbie on this, and i&amp;#39;m trying to port the SDK available for arduino to a PIC, i followed the instructions on the SDK and also here 
 Now i want to verify that my code is alright by running the ble_aci_transport_layer_verification, but</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 02 Dec 2014 00:57:06 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4403/ble-aci-verification" /><item><title>RE: BLE ACI verification</title><link>https://devzone.nordicsemi.com/thread/15646?ContentTypeID=1</link><pubDate>Tue, 02 Dec 2014 00:57:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d152d25b-ada0-45d1-98e8-ca0052efa6ef</guid><dc:creator>Nico</dc:creator><description>&lt;p&gt;I&amp;#39;m also struggling with a similar problem and have started by porting the MSP430 example to a PIC32, the one that only puts it in UART test mode. It does spit out the 0x01 0x04 0x81 0x02 0x00 0x02 start event but followed by 26 bytes of 0x00 then a 0x07 or 0xD7 randomly. I think it&amp;#39;s not nabbing the length packet properly (I&amp;#39;m bit swapping LSB in software as there&amp;#39;s no HW support). My problem is an aci buffer overflow.&lt;/p&gt;
&lt;p&gt;I&amp;#39;d be very interested in your complete code if you made any headway to build from as I was going to migrate to PIC18.&lt;/p&gt;
&lt;p&gt;On a side note it would be fantastic if nordic provided more than an arduino example to build from&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE ACI verification</title><link>https://devzone.nordicsemi.com/thread/15645?ContentTypeID=1</link><pubDate>Mon, 17 Nov 2014 20:57:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d9e3097-e8bd-490b-b852-278e3ea5c639</guid><dc:creator>SYonekura</dc:creator><description>&lt;p&gt;the most typical was: 0xAC 0x00 (just that)&lt;/p&gt;
&lt;p&gt;i read the datasheet again and did some changes to the code, in particular i commented some lines (hal_aci_tl -&amp;gt; m_aci_event_check):&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    // If the ready line is disabled and we have pending messages outgoing we enable the request line
  if (HIGH == !digitalRead(a_pins_local_ptr-&amp;gt;rdyn_pin))
  {
    //if (!aci_queue_is_empty(&amp;amp;aci_tx_q))
    //{
      m_aci_reqn_enable();
    //}

    //return;
  }
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Since &amp;quot;devide started&amp;quot; its an event, if rdyn is set low by nRF8001 then reqn should be set low too and then start the SPI communication (this was not happening because of the return statement)&lt;/p&gt;
&lt;p&gt;Now i get this package: 0x01 0x04 0x81 0x02 0x00 0x02. Clearly more familiar with the nomenclature specified with the datasheet, but i&amp;#39;m not sure if that changes would cause some overflow or another bug afterwards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE ACI verification</title><link>https://devzone.nordicsemi.com/thread/15644?ContentTypeID=1</link><pubDate>Mon, 17 Nov 2014 15:52:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c0be63c-f894-4072-91c3-ba608ecec9b2</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;Can you post whatever you received ?
The Events have a debug byte in the front, followed by the length and then the Event code. See Section 7 in the nRF8001 datasheet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE ACI verification</title><link>https://devzone.nordicsemi.com/thread/15643?ContentTypeID=1</link><pubDate>Sun, 16 Nov 2014 19:02:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ece5bdb-00d3-4046-92f7-80df6b918abe</guid><dc:creator>SYonekura</dc:creator><description>&lt;p&gt;thx for the info. i did the test and i still don&amp;#39;t get any event signal.&lt;/p&gt;
&lt;p&gt;i also checked with a logic analyzer and there are communication between pic and nRF8001, but no one of the packets received have an event code (0x8X)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE ACI verification</title><link>https://devzone.nordicsemi.com/thread/15642?ContentTypeID=1</link><pubDate>Tue, 11 Nov 2014 12:43:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:573047a8-3743-447c-83c3-aacb6d271d84</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;Can you check with an logic analyzer on the SPI to verify that the hardware connections are ok.
If no messages are coming over the SPI, this is the normal behaviour.&lt;/p&gt;
&lt;p&gt;Do a simple test:
Do a pin reset of the nRF8001 - Section 14.4 on the nRF8001 datasheet
You should receive a Device Started Event from the nRF8001 about 62ms after the reset.
Verify that your code on the PIC has got this event.&lt;/p&gt;
&lt;p&gt;See section 7.1.5 of the nRF8001 datasheet for the Events on the SPI lines.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>