This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CC2640R2F: Simple network processor API

Part Number: LAUNCHXL-CC2640R2
Other Parts Discussed in Thread: BLE-STACK

Hello, 

I am running the cc2640r2lp_simple_np_uart_xpm_xsbl.hex image in my CC2640R2 launchpad. 

I am trying to use the comand  SNP Set GATT Parameter (0x8C) but it doesn't work for my. This command is always returning me this frame FE 01 00 75 8C 18 E0. I don't know the meaning of the number 18 because is not specified in the document. 

Can you help me using this command?  SNP Set GATT Parameter (0x8C)

Thank you in advance.

  • Part Number: CC2640R2F

    Hello,

    I have a CC2640R2 LaunchPad runing the c2640r2lp_simple_np_uart_xpm_xsbl.hex image. I am using real term software to comunicate to the board and the board is answering properly to the comands.

    The thing is that the comand SNP Set Advertisement Data (0x43) doesn't work for me. For example, I am sending this frame: 0xFE 0x0C 0x00 0x55 0x43 0x02 0x02 0x06 0x08 0x09 0x42 0x4c 0x45 0x20 0x30 0x30 0x31 0x47 to change the connectable Advertisement Data and then I send SNP Start Advertisement (0x42) command. Both commands answer properly but the name is still being "SNP" and not the one that I sent.

    Can you tell what I am doing wrong?

    Thank you in advance.



  • Hi Ruben,

    I'm not familiar with the tool you are using to interact with the SNP. Can you give me some more details (and links if possible).
  • Hi Ruben,

    Regarding your first issue: SNP Set GATT Parameter (0x8C).
    Tracing through the code execution, I do not exactly see how this value can be returned either. Can you perform the following tests:

    - Set a breakpoint in SNP_processSetGattParamCmd, see the value of the status variable is on line 1957 before the call to SNP_replyToHost_send. Please note that you may need to remove optimization of this function or file to see this variable properly in the watch window. Refer to the BLE-Stack User's Guide, debugging chapter for more information.

    - Please provide the command that you sent to the device to make it respond this way.

    Regarding your second issue: SNP Set Advertisement Data (0x43)

    - What device are you using to observe the advertising data? Phones are known to cache adv data.
    - You also most likely want to use the parameter 0x01 for Advertisement Type as this is the advertisement data that will be sent when the device is not connected.
  • Hello Evan,

    I am using RealTerm: Serial/TCP Terminal (sourceforge.net/.../).

    Best regards,
    Ruben
  • Part Number: LAUNCHXL-CC2640R2

    Hello, 

    I am running the cc2640r2lp_simple_np_uart_xpm_xsbl.hex image in my CC2640R2 launchpad. And my goal is to manage the SNP Server just using the comands specified in the API (processors.wiki.ti.com/.../CC2640_Simple_Network_Processer_API_Guide.pdf)

    Can you help me using these comands?

    • SNP Set Attribute Value (0x86): According to the document, the payload must be 2 bytes long (to specify the handle ID).

    - How can I send the value to set the attribute?

    • SNP Set Gatt Parameter (0x8C): I am trying to modify the Device namevalue without success. I sent this commad to change the name from 'SNP' to '100'

      0xFE 0x06 0x00 0x35 0x8C 0x01 0x00 0x00 0x31 0x30 0x30 0x8F  --> Answer OK: FE 01 00 75 8C 00 F8 

    The thing is that when I am paired with the device, the device name space is in blank (no letters)

    Thank you in advance.

    Best regards, 

    Rubén.

  • Hi Rubén,

    We have already been providing support to your SNP inquiries in this thread.
    e2e.ti.com/.../

    I will merge the two threads. Regarding the Set GATT parameter, please run the suggested tests and get back to us.