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.

Truble with CC2560 discoverable mode.

Other Parts Discussed in Thread: TMS320F28027

Hi everyone!

I'm trying to put the Pan1325 in discoverable mode and I just can't get it done.

I'm using an Usb-Rs232 cable connected to a Max3218 to comunícate with the module.

I can send commands and receive events properly by the computer.

After the power-up sequence is done, I send a No Operation command and I get the command_complete event by the Bluetooth.

Then, to make descoverable my module, I send it a Write_Scan_Enable_command with the Scan_Enable parameter set to 0x01 to enable Inquiry scan. I also tryed with 0x03 enabling both scans, but neither allow me to find the Mac_Addr of the Pan1325 in any computer or cellphone looking for discoverable Bluetooth devices.

I appreciate any help with this Little trouble.

Thank you!

  • Hi Hugo,

    You should download the init script before issuing the write scan enable.

    You can use the Hardware Evaluation Tool to download the script:

    http://processors.wiki.ti.com/index.php/CC256x_Bluetooth_Hardware_Evaluation_Tool

    http://www.ti.com/lit/zip/swrc256

    The init script can be found in:

    http://processors.wiki.ti.com/index.php/CC256x_Downloads

    Regards,

    Dotan

  • Hi Dotan. Thank you very much for you quick answer!

    In my inital post I forgot to mention that I already tryed downloading the Service Pack to the module, but in the Hardware Evaluation Tool I always get the COM port timed out error. Sometimes at the very begining and some others after several commands have been sent to the module.

    I've already tryed with the four .bts files that come in the CC2560A_BT_SP_BTS.zip file, and not one can be completly loaded.

    There is something else that is bothering me. I'm also trying to control the module with the TMS320F28027 LanchPad. I'm using assambly instructions to comunícate with the Pan1325A, and like the other module that I'm controling with the Rs232, I already can comunícate with the bluetooth. I send commands such as No_Operation, Read_Local_Versión_Information, Read_BD_Addr, Read_Scan_Enable_Activity and Write_Scan_Enable_Activity. In all cases, I get a succesfull answer from the Pan1325A. But, just like the other module, I can't get to see the module attached to the LaunchPad with another dispositive such as a cellphone or the computer.

    I guess the question would be if I can load the init Script without using the Hardware evaluation Tool. For example, by a series of commands sent directly with the Rs232, or if I can do it using the Code Composer Studio, which is the software I'm using to control the F28027 MCU.

    Or antoher temporary solution would be that I could send command with the Hardware Evaluation Tool right after succesfully loading the ServicePack.

    Again, thanks for the help!

  • Hi Hugo,

    First can you try, disabling the sleep and loading the service pack.
    1. After selecting the service pack and the correct COM port in the Bluetooth Hardware Evaluation tool(BHET).
    2. click on the modify tab and disable sleep and save and then try load the service pack from BHET.


    Yes you can lode the service pack from the CCS. I hope you are using Bluetopia stack(V1.4 R1), please fowow the be low steps
    1. Open the BTEH
    2. Open/select the service pack.
    3. Save it as “.h” file(array format).
    4. Take a back-up and change the BasePatch array in the file “MSP430_Experimentor\Bluetopia\btpsvend\CC256x.h”
    5. Rebuild the demo and download the demo.

    But the MCU you are using has very less flash(minimum 128KB required ). Have you tried it with the MP430F5438A EXP board?

  • Ok, let's see.

    I did what you told me in the BHET, and I finally succeded loading the init file. Then, I tryed using a terminal (closing the port in the BHET and opening it in the terminal program) and tryed to send it another commands, and I only got FF octets as response. After that, I couldn't  succed loading the init file again. I got another error in the BHET, which was not valid return parameters.

    Now, as I told you, I'm also intrested in making this work with the C2000. At the moment, the team which I'm working for can't get the MSP430 experimenter board. So, by now,  I'm forced to work with the C2000 MCU. And I would appreciate if you could help me to get this working with this MCU. I'm using only assembly instructions to program it. So, honestly, I don't know how to load .h files to an assembly-only Project in CCS.

    Again, thanks for the help!

  • Hi,

    Until you reset the CC256x device you don't have to download the init file again.

    Regarding the C2000 interfacing, please do check it on the C2000 forum . From the CC256x side You need to make sure that your UART is configured correctly. See the first three steps from http://processors.wiki.ti.com/index.php/CC256x_Testing_Guide