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.

How do I establish a simple connection on Bluetooth?

I have both the EZ430-RF2560 and the EVAL_PAN1315 and I want to have the EVAL_PAN1315  send its temperature reading to the EZ430-RF2560.  I am having a difficult time gathering and including all of the files to configure these devices.  I am using IAR.

What files should I include into my project?  Where do I find them?  Must the Ethermind be used?

 

Any help is greatly appreciated,

 

Noah

  • Noah,

    You can use the sample applications as a starting point. In the case of the PAN1315_SDK, you can use the Thermometer Application (Temp Project). You will have to make a small modification to the device name configuration. I would suggest changing settings on the EZ430-RF2560 SDK to match the application on the PAN1315 SDK. See below. These modifications are required as explained in this post: http://e2e.ti.com/support/low_power_rf/f/660/t/84691.aspx

     

    PAN1315 SDK -- Original Config @ sdk_config.h

    /* Local device name */

    #define SDK_CONFIG_DEVICE_NAME "BlueMSP-"

    /* Name of the Remote BT Device to which SPP connection has to be established */

    #define SDK_REM_DEV_NAME_PREFIX     "BlueMSP-"

     

    EZ430-RF2560 SDK -- Original Config @ sdk_config.h

    /* Local device name */

    #define SDK_CONFIG_DEVICE_NAME "BlueMSP-Demo"

    /* Name of the Remote BT Device to which SPP connection has to be established */

    #define SDK_REM_DEV_NAME_PREFIX     "BlueMSP-Demo"

     

    EZ430-RF2560 SDK -- Modified Config @ sdk_config.h

    /* Local device name */

    #define SDK_CONFIG_DEVICE_NAME "BlueMSP-"

    /* Name of the Remote BT Device to which SPP connection has to be established */

    #define SDK_REM_DEV_NAME_PREFIX     "BlueMSP-"

    Regards,

  • Thanks for the feedback.  I'm afraid I do not know of the "thermometer application."  Regarding the Accelerometer application, I have done the changes, which you suggest, and I have been able to get the PAN device to "see" the EZ device.  However, I do not know where to intercept the transmitted data in the source code.  

    Is there an ISR for handling incoming messages?  Or, do I need to create a new task for this?

     

    Regards,

     

    Noah

  • Noah,

    There are two projects in the PAN1315 SDK, the accl project and the temp project. This last one contains the Thermometer Application.

    In the Accelerometer Application, (once you are connected), the data is received under the  SPP_RECVD_DATA_IND case in the appl_spp_notify_cb() function in the appl_spp.c file. From the example, you can see that it is send to the UART (connected to the USB). See the snapshot below:

     

    case SPP_RECVD_DATA_IND:

            printf("SPP_RECVD_DATA_IND -> Data received successfully\n");

            printf("\n----------------HEX DUMP------------------------\n");

            for (index = 0; index < datalen; index++) {

                printf("%02X ", l_data[index]);

            }

            printf("\n------------------------------------------------\n");

            if (TRUE == sdk_usb_detected) {

                memcpy(string, l_data, datalen);

                halUsbSendString(string, 4);

            }

            break;

     

    Regards,