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.

pan1325 trying to get inquiry results

Other Parts Discussed in Thread: MSP430F5438A

Hi guys,

I am starting with bluetooth stuff, so I designed a board with the msp430f5438a and the pan1325 module. The pan1325 module boots well (I know that because the #rts signal sets in low state), I send some H.C.I. commands and I receive the appropiate responses, for example the hci_read_bd_addr, the hci_write_local_name and read it back (hci_read_local_name), the hci_read_oob_data, just for prove how it was working, but when I am going to prove the comunication I didn't succeed, I mean, I send the hci_set_filter_event command to enable inquiry result events from the controller, then I send the hci_inquiry command and I get the command_status event that signals that the command was accepted and the command is being performed, but when finally I receive something is the inquiry_complete event, I didn't get any result event, and I have my cellphone in visible state. I don't think it could be a possible error in the antenna because I didn't do it, it comes with the module itself, so I suppose it is not the problem, so I think that it could be a configuration problem, so I wonder if you guys can help me with that issue.

I have been reading and it seems like we need to download a service pack, but I don't think it is neccesary, those posts are old, and I am already comunicating with the chip, so, Do you know if I am forgetting to send any hci command to enable the comunication or the transmission or something like that,

Thanks,

Daniel

  • Hi,

    If I understand you correctly, You are using msp430f5438a + pan1325 module, without downloading the service pack and without any stack. right?

    If so please keep in mind that you can only verify UART communication without downloading the service pack. But A service pack is required to initialize the CC256x chip(this must be done before any BT operations).

    See the first three steps in http://processors.wiki.ti.com/index.php/CC256x_Testing_Guide

    Get the correct service pack from http://processors.wiki.ti.com/index.php/CC256x_Downloads and download it as part of the CC256x chip initialization.

  • Hi,

    Yes, you undertand well, and thank you for the response.

    I looked at the cc256x downloads page and I downloaded the service pack for the pan1315.

    But I don't know how to load it in the chip by uart, and secondly It makes me think that the uart would be at 3 megabitspersecond, and probably my system wouldn't work at that speed, How do I change that d

  • Hi,

    You can download the service pack, using the Bluetooth hardware evaluation tool see: http://processors.wiki.ti.com/index.php/CC256x_PC_tool 

    There is also modify option on this tool which will allow you to change the baud rate.

  • Hi,

    I am looking at the Blutooth hardware evaluation tool wiki, and I can see that one needs to have Windows or Linux with wine (sometimes java apps don't run), and the bluetooth hardware evaluation tool, but I don't have none of them. I just designed my own board with the msp430f5438a and the pan1325 module, it doesn't have any usb port and the only way I comunicate with it is by spi-bi-wire connection, now I just program in my text editor, and I would like to know if there is any way to load the service pack in these conditions, I am expecting something like a library or something that I could instanciate or call or include from my C code and execute it in that way.


    Other option is that I have heard about a stack and probably it is possible to use it in my project, or the other one option that I see is that you mention the hci commands that I need to configure the chip (general or propietary), and I am willing to try them.

    Thanks,

    Daniel

  • Hi,

    Using the Bluetopia stack(http://www.ti.com/tool/stonestreetone-bt-sdk ) you can download the service pack please have a look at the function "HCI_VS_InitializeAfterHCIReset" from where they are downloading the service pack.

    Relevant post which might help: http://e2e.ti.com/support/low_power_rf/f/660/p/322884/1127256.aspx 

  • Hi,

    Thank you Sundeep for your replies,

    I download the stack without problems, but I am still not able to make my device visible (I am checking that with my smartphone) my program flow:

    download_patch.

    write_local_name (parameter: "Name")

    set_event_filter (parameters: 0x02,0x00,0x03) auto-accept every connection petition

    write_scan_enable (parameter: 0x03) inquiry scan and page scan enable, that means visible and connectable I guess.

    And no more, maybe I am missing any command, but with the webpage: http://processors.wiki.ti.com/index.php/CC256x_Testing_Guide#BT_RF_SIG_Mode I think that, those commands are enough.


    I am looking at the patch document and it says that this patch is for - wl1271l1 (cc256x) bt sp 2.10, and I am using the pan1325 module.

    Daniel

  • Hi,

    If you want to communicate with the device to make it discoverable,

    Either use the HCI commands(HCI_Write_Scan_Enable, ....) or you can do it from the Bluetopia stack, by running any of the demo available.

    Since you are using the bluetopia stack to download the service pack. you can use one of the demo to communicate with the remote device(your smartphone).

    Note: you need to downelode the service pack every time you do a power cycle. If you are using any of the Bluetopia demo, It will take care of downloading the service pack on every power cycle.