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.

MSP430BT5190+CC2560 SDK Modifications to Pair with a laptop.

Other Parts Discussed in Thread: MSP430F5438

Hi,

I was looking for some help in modifying the SDK code from Mindtree with the SPP profile to connect a single MSP-EXP430F5438 board with a PAN1315 Bluetooth board to a generic laptop with a built-in bluetooth. I'd like to use the temperature demo program to send the temperature information to a laptop, rather than another MSP-EXP430F5438 board. Thank you for your help.

-D

  • Hello Dlo,

    Accelerometer sample application should be a good example.

    Regards,
    Nir

  • Hi dlo,

    A virtual COM port is created after you have successfully established an SPP connection between your laptop's in built bluetooth device  and one of the MSP-EXP430F5438 boards.

    There is a PC Application with source code available as part of the package. This application has been programmed to accept the SPP data transmitted by the accelerometer image running on the MSP-EXP430F5438 board and map the accelerometer data into key board events.

    The PC application opens the COM port,  splits the data as x and y coordinates and hands it to two threads to write it on to the key board event buffer.It also displays the accelerometer data so received.

    To acheive your goal , you can modify the PC application to just receive the data and print it on the console, and avoid overwriting the keyboard event buffer.

    Regards

    Ullas

     

     

     

  • Another step for Pairing with a laptop/PC from the MSP430 firmware standpoint is (got a broken link so I am just pasting the solution) here:

    In order to accelerate the Bluetooth connection establishment, we have decided to add device name spell check mechanism in both sample applications.
    Both sample applications are programmed to allow connection only with device names which start with "BlueMSP-".
    You can modify these settings in sdk_config.h file – please refer to SDK_REM_DEV_NAME_PREFIX parameter.

    I haven't had a chance to try myself but know that at least 1 customer was successful on 1 PC.

     

  • Thank you all for the information and help! Hopefully I won't need anymore help in developing this product.

     

    Joe, unfortunately I couldn't find/read that post. It said it couldn't be found. If you can find the link again, that would be great. I'm curious to learn what they did. Thank you.

  • (got a broken link so I am just pasting the solution above)

  • I have tried to connect the device to the bluetooth of my laptop, and the process just works fine:

    1 - Turn on the bluetooth target board.

    2 - Turn on bluetooth in the laptop, and scan for devices: a device called BlueMSP-DemoXXXX shall appear.

    3 - Establish a connection to the device (SPP profile is configured automatically)

    4 - You can now see a new COM port.

    5 - Use the C code included in the package to read from this port and interpret the data.

     

    Nevertheless, I have seen a couple of things:

     - Actually, 2 COM ports are created when connection is established. The first one seems to be the port where the data arrives to. Does anyone know what is the second COM port for?

     - Once the device is reset, the COM port is still present in the PC, but the device does not pair automatically, and no connection can be opened towards the COM port. Is there a solution for this? It is annoying to have to pair the device every time it is turned on.

  • Ibon,,

     - Actually, 2 COM ports are created when connection is established. The first one seems to be the port where the data arrives to. Does anyone know what is the second COM port for?

    [TI]: Could you provide the name of the two COM ports, please?

     - Once the device is reset, the COM port is still present in the PC, but the device does not pair automatically, and no connection can be opened towards the COM port. Is there a solution for this? It is annoying to have to pair the device every time it is turned on.

     

    [TI]: The COM Port is enabled as part of the UART-USB converter in the EZ430U (Black Emulator Board). Therefore, its PC enumeration cannot be controlled. Regarding the second question, you can save the link key of the connection in flash. This example will be shown in the new SDK package coming in one week.

    Thanks for your patience,

  • Thanks for the answer Miguel,

    I am glad to hear that you are upgrading the SDK package. Saving the link key in flash should fix the second problem allowing automatic re-pairing. Great!

    Regarding to the first issue, I should explain better:

    • When  EZ430U (emulator board) is connected to the PC, a device called "MSP430 Application UART" appears. It takes a random port number, in this case COM9. But this is not the second COM port I am referring to.
    • When I pair the BlueMSP-DemoXXXX device to my laptop using the internal Bluetooth of my laptop (EZ430U is not even connected), two new devices appear. Both of them are called "Serie estándar sobre el vínculo Bluetooth" (I am using Spanish OS), these should be SPP devices. Each of them is mapped to a random COM port, in this case COM11 and COM12.
    • I have noticed that the accelerometer data is sent through the first device, COM11.
    • I think the other device, COM12 is not being used for anything.
    • Is it possible to create just one SPP device? It is not a big deal, but it is confusing to have two SPP devices connected to the laptop for just one physical BlueMSP-DemoXXXX device.
  • I can confirm what Ibon is seeing on my Windows Vista Machine. Multiple (more than 2) COM ports are created, but only one of them works to get data from the BlueMSP-DemoXXXX SPP. At first I thought it might be my Laptop's bluetooth. I have a DELL D620.

  • This is a configuration of the PC's BT Stack. It creates one COM Port in Client Mode (When PC requests the BT connection) and one in Server Mode (Peer device request the BT connection to the PC). It is only related to "who" starts the connection. Data flow can be bidirectional in both cases.

    Regards,

  • Thanks for the answer Miguel, this helps a lot.

    In my application the PC will be always the one who starts the communication, so that only the Client Mode COM port will be used. I may ignore the second COM port without further concern.

  • Miguel Sanchez said:

    ... This example will be shown in the new SDK package coming in one week.

    Any news about the new SDK package? Where can it be downloaded?

     

  • Ibon,

          The release will be posted during this week. It will be posted in here: http://focus.ti.com/docs/toolsw/folders/print/mt-bt-sdk.html 

    Regards,

    ~Miguel 

  • Miguel,

    The SDK beta 2 is still available for preview only. It can not be downloaded through the web. Is it possible to get the new SDK even in preview status? It would be helpful to have something to work with until the new SDK is released.

    Thanks,

    Ibon

  • Ibon,

    The release should be downloadable from the web sometime today or nearly next week. It has been submitted already to our webmasters. 

            I apologize for the inconvenience.

    Regards,

     

  • Hello

    I'm working with MSP430F5438 experimenter board and the PAN1315.

    I'm trying to connect the PAN1315 to the PC via bluetooth link and test frame trasmission.

    My computer displays that connection is successful but the experimenter board displays "ACL disconnected".

    I'm trying to find an application running in windows to select the SPP profile wich is only supported by the Ethermind Stack.

    Could you please help me to find a solution?

    Emna 

  • Emna,

                 I apologize, something happened to the previous post. I was referring to this thread: http://e2e.ti.com/support/low_power_rf/f/660/p/84691/349041.aspx#349041.

    It basically has the information you are looking for. Let us know if you have more questions.

    Thanks,

     

  • Moderator Note: Thread seemed to get lost - moved it here :)

  • Ibon,

    The Microsoft BT stack seems to create two ports. One for incoming data and another one for outgoing. If you look at the Bluetooth information that's part of the Windows Bluetooth manager, you can see the second port is set for outgoing.

     

    Gustavo

  • Hello,

    I would like to pair the PAN1315 with my PC, which has connected another USB bluetooth and installed a bluetooth application software to connect other bluetooth device. I  followed the solution indicated above, and changed the name of PC's Bluetooth device name. Then the software can get the SPP service. But when connect the PAN1315, It displayed an error that is "cannot open bluetooth COM port" and so cannot connect the PC to PAN1315. How can I connect the two devices successfully? Thanks.

    Lisa

  • Lisa,

         I have seen similar messages due to configuration issues on the PC BT Stack. Can you check that the PC BT Stack has some COM ports assigned for SPP service? Also, make sure that if it does, the COM ports are not assigned to other programs in the PC.

    Regards,

    ~Miguel