This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

nRF8001 setup

Hi,

I have purchased the nRF8001 Development Kit and so far I wired the nRF2740 board to a FTDI VNC2 microcontroller. I have been reading about how to configure the 8001 using nRFGO Studio but I am having troubles to go on after creating the services.h file. I have seen good documentation out there but most of it is focused on how to connect the nRF8001 boards with Arduino so I am a little lost. Here are my questions, any help will be greatly appreciated:

1.- I´ve already created the services.h file using nRFGO Studio, How do I send the setup messages to the 8001?

For example:

#define SETUP_MESSAGES_CONTENT {
{0x00,
{
0x07,0x06,0x00,0x00,0x03,0x02,0x40,0x6c,
},\

Do I have to send 0x07,0x06,0x00,0x00,0x03,0x02,0x40,0x6c and then the next line until the end of the services.h SETUP_MESSAGES_CONTENT part?

2.- The byte 0x00: Is it neccesary to send it always at the beginning?

0x00,0x07,0x06,0x00,0x00,0x03,0x02,0x40,0x6c

Please help,

Thank you in advance,

Josh

Parents
  • Apologies for the delayed response. The Setup message is an ACI message with the format ..... See the nRF8001 Datasheet for reference, in Section 7.1.4 and 7.1.5

    So the message that needs to be sent is in bold

    SETUP_MESSAGES_CONTENT {\ {0x00,\ {\ 0x07,0x06,0x00,0x00,0x03,0x02,0x40,0x6c,\ },\

    The byte is in the front 0x00 is not really needed but was put in to match the ACI Event message that has a debug byte in front.

    The defines that are created are just the Setup messages as defined in Section 24.6

  • Thanks Star Destroyer! Now after sending a Setup message I receive a Device Started Event, but no signs of the CommandResponseEvent that has to come before it. Besides, some Setup messages have more than 31 bytes, like this one: {0x00,
    {
    0x1f,0x06,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x02,0x01,0x01,0x00,0x00,0x06,0x00,0x05,
    0x81,0x09,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    },\

    Should I divide the message in two separated messages? One until the backslash, and then the other?

Reply
  • Thanks Star Destroyer! Now after sending a Setup message I receive a Device Started Event, but no signs of the CommandResponseEvent that has to come before it. Besides, some Setup messages have more than 31 bytes, like this one: {0x00,
    {
    0x1f,0x06,0x10,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x02,0x00,0x02,0x01,0x01,0x00,0x00,0x06,0x00,0x05,
    0x81,0x09,0x18,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
    },\

    Should I divide the message in two separated messages? One until the backslash, and then the other?

Children
No Data
Related