<?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 setup issues</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/4910/nrf8001-setup-issues</link><description>Hello, 
 I am sending below setup packet to nRF8001, and i don&amp;#39;t get any response form nRF8001. ACI as such works fine, i tried sending diff commands and able to receive response, but when i send below packet which i copied from ublue_setup.gen.out.txt</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 08 Oct 2016 14:09:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/4910/nrf8001-setup-issues" /><item><title>RE: nRF8001 setup issues</title><link>https://devzone.nordicsemi.com/thread/17345?ContentTypeID=1</link><pubDate>Sat, 08 Oct 2016 14:09:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a595c4e1-8872-46f5-8f4f-40b6bd6576c9</guid><dc:creator>user123x</dc:creator><description>&lt;p&gt;Dear Raghu&lt;/p&gt;
&lt;p&gt;Could you kindly let us know how you are sending the services.h (hex) ?&lt;/p&gt;
&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF8001 setup issues</title><link>https://devzone.nordicsemi.com/thread/17336?ContentTypeID=1</link><pubDate>Mon, 26 Jan 2015 12:38:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22e027db-83bc-4717-a466-9cb872551df2</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;Did you get the Echo response ACI event or did you get the exact 31 bytes that you sent back. When you send the Echo Command you should get the Echo Event as the response. Have you got this ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF8001 setup issues</title><link>https://devzone.nordicsemi.com/thread/17344?ContentTypeID=1</link><pubDate>Wed, 07 Jan 2015 16:45:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb682bfa-8e74-4f61-a1b9-afbefd4c3492</guid><dc:creator>raghu</dc:creator><description>&lt;p&gt;Can you please reply to my question?? I am stuck from last 2 weeks. Please help me out...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF8001 setup issues</title><link>https://devzone.nordicsemi.com/thread/17342?ContentTypeID=1</link><pubDate>Wed, 24 Dec 2014 05:43:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f23afe89-235d-40a9-b87d-3723bbe29b75</guid><dc:creator>raghu</dc:creator><description>&lt;p&gt;After i send first setup packet, nRF never makes RDYn line low, what does it mean? nRF8001 didn&amp;#39;t recoginze the packet i sent? or is it still waiting for something else before it can send response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF8001 setup issues</title><link>https://devzone.nordicsemi.com/thread/17343?ContentTypeID=1</link><pubDate>Wed, 24 Dec 2014 05:07:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7de1f29-ec8e-425e-a97f-6bda4f42d37f</guid><dc:creator>raghu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have tested my ACI lines integerity by sending 31 bytes of data in echo packet and i have received all 31 bytes correctly. So i don&amp;#39;t see an issue here with MISO line also.&lt;/p&gt;
&lt;p&gt;I am able to receive some response for any command i sent except for the below setup command when i sent, it just stucks there, no response from nRF8001.&lt;/p&gt;
&lt;p&gt;0x07,0x06,0x00,0x00,0x03,0x02,0x42,0x07.&lt;/p&gt;
&lt;p&gt;To be more clear, this is first time NRF8001 is powered-up, in the sense i have never configured or setup on this device yet. So, am i supposed to do anything before trying to set up??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF8001 setup issues</title><link>https://devzone.nordicsemi.com/thread/17341?ContentTypeID=1</link><pubDate>Tue, 23 Dec 2014 11:22:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4311e0fa-2b86-4878-a77c-efb362996670</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;Can you attach the file in your question and remove it from the comment or at least add the pre-formatted option to it. (Its the icon with 101 010 )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF8001 setup issues</title><link>https://devzone.nordicsemi.com/thread/17340?ContentTypeID=1</link><pubDate>Tue, 23 Dec 2014 10:09:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:18cd317e-8d02-4991-95bc-727c3d61826f</guid><dc:creator>raghu</dc:creator><description>&lt;p&gt;Am really sorry, if my questions are confusing. I am not using ACI library as such. I am trying to implement my own ACI functions on PIC controller. So i took binary(hex) data generated in service.h file and am sending them from my code.&lt;/p&gt;
&lt;p&gt;by the way i dont see a way to attach a file, hence copying entire services.h file here&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/**
* This file is autogenerated by nRFgo Studio 1.17.1.3252
*/

#ifndef SETUP_MESSAGES_H__
#define SETUP_MESSAGES_H__

#include &amp;quot;hal_platform.h&amp;quot;
#include &amp;quot;aci.h&amp;quot;


#define SETUP_ID 0
#define SETUP_FORMAT 2 /** nRF8001 Cx */
#define ACI_DYNAMIC_DATA_SIZE 105




#define GAP_PPCP_MAX_CONN_INT 0xffff /**&amp;lt; Maximum connection interval as a multiple of 1.25 msec , 0xFFFF means no specific value requested */
#define GAP_PPCP_MIN_CONN_INT  0xffff /**&amp;lt; Minimum connection interval as a multiple of 1.25 msec , 0xFFFF means no specific value requested */
#define GAP_PPCP_SLAVE_LATENCY 0
#define GAP_PPCP_CONN_TIMEOUT 0xffff /** Connection Supervision timeout multiplier as a multiple of 10msec, 0xFFFF means no specific value requested */

#define NB_SETUP_MESSAGES 9
#define SETUP_MESSAGES_CONTENT {\
    {0x00,\
        {\
            0x07,0x06,0x00,0x00,0x02,0x02,0x42,0x07,\
        },\
    },\
    {0x00,\
        {\
            0x1f,0x06,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00,0x06,0x00,0x01,\
            0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
        },\
    },\
    {0x00,\
        {\
            0x1e,0x06,0x10,0x1c,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,\
            0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x10,0x03,0x90,0x00,\
        },\
    },\
    {0x00,\
        {\
            0x1f,0x06,0x20,0x00,0x04,0x04,0x02,0x02,0x00,0x01,0x28,0x00,0x01,0x00,0x18,0x04,0x04,0x05,0x05,0x00,\
            0x02,0x28,0x03,0x01,0x02,0x03,0x00,0x00,0x2a,0x04,0x04,0x14,\
        },\
    },\
    {0x00,\
        {\
            0x1f,0x06,0x20,0x1c,0x05,0x00,0x03,0x2a,0x00,0x01,0x52,0x61,0x67,0x68,0x75,0x63,0x73,0x65,0x6d,0x69,\
            0x2e,0x63,0x6f,0x6d,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04,\
        },\
    },\
    {0x00,\
        {\
            0x1f,0x06,0x20,0x38,0x05,0x05,0x00,0x04,0x28,0x03,0x01,0x02,0x05,0x00,0x01,0x2a,0x06,0x04,0x03,0x02,\
            0x00,0x05,0x2a,0x01,0x01,0x00,0x00,0x04,0x04,0x05,0x05,0x00,\
        },\
    },\
    {0x00,\
        {\
            0x1f,0x06,0x20,0x54,0x06,0x28,0x03,0x01,0x02,0x07,0x00,0x04,0x2a,0x06,0x04,0x09,0x08,0x00,0x07,0x2a,\
            0x04,0x01,0xff,0xff,0xff,0xff,0x00,0x00,0xff,0xff,0x04,0x04,\
        },\
    },\
    {0x00,\
        {\
            0x0d,0x06,0x20,0x70,0x02,0x02,0x00,0x08,0x28,0x00,0x01,0x01,0x18,0x00,\
        },\
    },\
    {0x00,\
        {\
            0x06,0x06,0xf0,0x00,0x02,0xd1,0xb8,\
        },\
    },\
}

#endif
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF8001 setup issues</title><link>https://devzone.nordicsemi.com/thread/17339?ContentTypeID=1</link><pubDate>Tue, 23 Dec 2014 10:00:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1e15a11-0083-40d9-a2a2-d2c6b14a6f93</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;Can you attach the services.h file that you are using ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF8001 setup issues</title><link>https://devzone.nordicsemi.com/thread/17338?ContentTypeID=1</link><pubDate>Tue, 23 Dec 2014 09:46:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46f59cd1-8516-49a7-8b62-c8fbc9ebb467</guid><dc:creator>raghu</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;While i try to capture from scope, can you please tell me if the setup data am trying to send are correct? Am using version D chip of nRF8001.&lt;/p&gt;
&lt;p&gt;Thanks,
Raghu&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF8001 setup issues</title><link>https://devzone.nordicsemi.com/thread/17337?ContentTypeID=1</link><pubDate>Tue, 23 Dec 2014 09:02:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c29f9cd3-787d-4f32-a01a-4c2f72fa31b3</guid><dc:creator>raghu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the reply. Unfortunately i dont have way to collect traces. It&amp;#39;s through debugging, am looking at the responses received by the NRF8001.&lt;/p&gt;
&lt;p&gt;If i send only first packet of setup and wait for response, the NRF8001 is never sending response.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF8001 setup issues</title><link>https://devzone.nordicsemi.com/thread/17335?ContentTypeID=1</link><pubDate>Tue, 23 Dec 2014 08:52:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e767f5d-4bed-408f-9e83-9260b9a5c68e</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;Each setup message will generate a command response event which needs to be processed, which appears to be your mis-understanding. See section 24 of the nRF8001 data sheet for the setup command.&lt;/p&gt;
&lt;p&gt;All command responses for the setup will carry the Transaction_continue except the last command response which will have Transaction_complete as the status code. The status codes are listed in the appendix of the nRF8001 datasheet.&lt;/p&gt;
&lt;p&gt;A status of 0x83 means device state is invalid.&lt;/p&gt;
&lt;p&gt;Action: Send a trace of the aci commands and events from chip reset time
If that is not possible can you get an SPI capture with an logic analyzer ?&lt;/p&gt;
&lt;p&gt;For placing the Setup in NVM look at these posts&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/16370/selection-of-nvm-or-volatile-storage-nrf8001-in-setup-procedure/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/18044/nrf8001-setup-data-locked/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;[Edited]
I notice that you are using the setup format for a C version IC on a D version IC. This will work, but you will lose some features. I suggest that you select the D version in the pulldown in nRFgo studio.
nRFgo Studio -&amp;gt; nRF8001 configuration -&amp;gt; Device pulldown&lt;/p&gt;
&lt;p&gt;I suggest that you still take a look at the &lt;a href="https://github.com/NordicSemiconductor/ble-sdk-arduino/blob/master/documentation/libraries/BLE/nRF8001-Porting-ACI-Library.md"&gt;porting guide for the nRF8001&lt;/a&gt; so you do not miss any of the steps.&lt;/p&gt;
&lt;p&gt;Since you have received the ACI Device Started Event, it looks like the MISO path is ok, but you need to verify the MOSI path. I would suggest that you verify the ACI as suggested in the porting guide and then do the Setup.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF8001 setup issues</title><link>https://devzone.nordicsemi.com/thread/17334?ContentTypeID=1</link><pubDate>Tue, 23 Dec 2014 08:10:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc65fc6b-d507-4ee4-8e60-18c38c7c29c5</guid><dc:creator>raghu</dc:creator><description>&lt;p&gt;and also i have one more question. How can i instruct to save setup data in NVM or RAM? when i see contents of services.h and services_lock.h, both look same&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF8001 setup issues</title><link>https://devzone.nordicsemi.com/thread/17333?ContentTypeID=1</link><pubDate>Tue, 23 Dec 2014 08:07:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d976c54e-3159-4b88-bdb1-a6dfceb42255</guid><dc:creator>raghu</dc:creator><description>&lt;p&gt;I am using PIC controller as application controller, am packing the ACI packets and sending over SPI and receving the responses also correctly.&lt;/p&gt;
&lt;p&gt;On power up am receiving device started event, in which the operating mode is &amp;quot;2&amp;quot; which means setup mode. So i took the data generated by gostudio and am trying to send the below packets oen by one continuously without waiting for response, and am expecting success response at the end of last packet, but i received 0x83 response. Why is that am not able to setup nRF8001?&lt;/p&gt;
&lt;p&gt;the packets am sending are&lt;/p&gt;
&lt;p&gt;unsigned char setup1[8] = {0x07,0x06,0x00,0x00,0x03,0x02,0x42,0x07};&lt;/p&gt;
&lt;p&gt;unsigned char setup2[32] = {0x1F,0x06,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x01,0x01,0x00,0x00, 0x06,0x00,0x01,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00};&lt;/p&gt;
&lt;p&gt;unsigned char setup3[32] = {0x1F,0x06,0x10,0x1C,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00, 0x00,0x00,0x00,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x10,0x03,0x90,0x00,0xFF};&lt;/p&gt;
&lt;p&gt;unsigned char setup4[32] = {0x1F,0x06,0x10,0x38,0xFF,0xFF,0x02,0x58,0x0A,0x05,0x00,0x00,0x00,0x10,0x00,0x00,0x00, 0x10,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x10,0x00,0x00,0x00,0x00,0x00,0x00};&lt;/p&gt;
&lt;p&gt;unsigned char setup5[6] = {0x05,0x06,0x10,0x54,0x00,0x00};&lt;/p&gt;
&lt;p&gt;unsigned char setup6[32] = {0x1F,0x06,0x20,0x00,0x04,0x04,0x02,0x02,0x00,0x01,0x28,0x00,0x01,0x00,0x18,0x04,0x04, 0x05,0x05,0x00,0x02,0x28,0x03,0x01,0x02,0x03,0x00,0x00,0x2A,0x04,0x04,0x14};&lt;/p&gt;
&lt;p&gt;unsigned char setup7[32] = {0x1F,0x06,0x20,0x1C,0x05,0x00,0x03,0x2A,0x00,0x01,0x52,0x61,0x67,0x68,0x75,0x63,0x73, 0x65,0x6D,0x69,0x2E,0x63,0x6F,0x6D,0x00,0x00,0x00,0x00,0x00,0x00,0x04,0x04};&lt;/p&gt;
&lt;p&gt;unsigned char setup8[32] = {0x1F,0x06,0x20,0x38,0x05,0x05,0x00,0x04,0x28,0x03,0x01,0x02,0x05,0x00,0x01,0x2A,0x06, 0x04,0x03,0x02,0x00,0x05,0x2A,0x01,0x01,0x00,0x00,0x04,0x04,0x05,0x05,0x00};&lt;/p&gt;
&lt;p&gt;unsigned char setup9[32] = {0x1F,0x06,0x20,0x54,0x06,0x28,0x03,0x01,0x02,0x07,0x00,0x04,0x2A,0x06,0x04,0x09,0x08, 0x00,0x07,0x2A,0x04,0x01,0xFF,0xFF,0xFF,0xFF,0x00,0x00,0xFF,0xFF,0x04,0x04};&lt;/p&gt;
&lt;p&gt;unsigned char setup10[14] = {0x0D,0x06,0x20,0x70,0x02,0x02,0x00,0x08,0x28,0x00,0x01,0x01, 0x18,0x00};&lt;/p&gt;
&lt;p&gt;unsigned char setup11[7] = {0x06,0x06,0xF0,0x00,0x83,0xE2,0x04};&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF8001 setup issues</title><link>https://devzone.nordicsemi.com/thread/17332?ContentTypeID=1</link><pubDate>Tue, 23 Dec 2014 07:55:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bbd5440f-a63d-40e3-a0c3-8917439849cd</guid><dc:creator>David Edwin</dc:creator><description>&lt;p&gt;Can you elaborate on the method you used to verify the ACI. I would suggest that you use the ACI transport layer verification project as a start point &lt;a href="https://github.com/NordicSemiconductor/ble-sdk-arduino/tree/master/libraries/BLE/examples/ble_aci_transport_layer_verification"&gt;github.com/.../ble_aci_transport_layer_verification&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>