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.

Cannot pair CC2650 in windows 8.1

Other Parts Discussed in Thread: CC2650, BLE-STACK, CC2640, CC2650STK

Hi,

We have both the C2541 and C2650 sensorTags.

In windows 8.1, we can discover both sensorTags.

We can pair and connect to C2541.

While pairing with C2650, an error message "That didn't work" appears.

Appreciate any advice.

Thank you

  • Hello Say,
    What kind of software are you using? A TI Tool like BTool or Device Monitor?
  • Hi Eirik,

    we are not using btool or device monitor. 

    In windows 8.1, we select "Add new devices", or "Add a Bluetooth device" to discover and add the sensorTags.

    From there, we are able to pair C2541, but not C2650. 

    How can we further troubleshoot?

    many thanks

  • You will most likely need a Bluetooth Sniffer of some kind and analyze the traffic to find out what goes on.

    Regards,
    Svend
  • You don't need over the air traces.  You just need to understand that the new sensortag (as it ships) does not initiate any form of pairing requests/response  AND that Windows 8+ will not connect to any bluetooth device without some form of pairing request.  

    I've seen in another thread where someone posted that modifying the source to use GAPBondMgr to initiate a pair should work but I've yet (in my limited BT experience) been able to accomplish this yet.  

    Has anybody done this already?  If so, could you share the source changes?

  • Hello, I'm having the same issue with CC2650, unable to pair in Windows 8.1. Has this been resolved?

  • Hello,

    The SensorTag 2.0 is not configured to support pairing/bonding (GAP_BOND_MANAGER). You can add the following snippet to send a "Pairing Not Supported" response code to the peer device that is requesting pairing:

    Add the following to gapRole_processGAPMsg() in peripheral.c [GAPRole Task]:

    case GAP_PAIRING_REQ_EVENT:
    gapPairingReqEvent_t *pPkt = (gapPairingReqEvent_t *)pMsg;
    // Send Pairing Failed Response
    VOID GAP_TerminateAuth( pPkt->connectionHandle, SMP_PAIRING_FAILED_NOT_SUPPORTED );
    break;

    This will be included in the next BLE-Stack release.

    Best wishes
  • Thanks JXS.

    I'm able to make the change and build SensorTag project supplied with CCS "simplelink\ble_cc26xx_2_00_00_42893\Projects\ble\SensorTag\CC26xx\CCS\SensorTag"

    I have .hex file of 105KB created under "simplelink\ble_cc26xx_2_00_00_42893\Projects\ble\SensorTag\CC26xx\CCS\SensorTag\FlashROM"

    Is this the right one that I need to program the SensorTag? If so, how do I program?
    I have TI Debugger DevPack and I also have SensorTag App in iOS.

    I see lot of material around OAD etc. but not sure where to start. Thanks in advance for your help.
  • You need to configure your project(s) to use the XDS110 debugger and flash both stack and application.
    In CCS you also need to define VERSION as a preprocessor symbol or the SensorTag app will not find it.

    Regards,
    Svend
  • Sorry but is there a step-by-step guide that I could refer to for configuring the project to use debugger and flash both stack and application.

    Thanks for your help, much appreciated!

  • You can refer to SWRU393_CC2640_BLE_Software_Developer's_Guide.pdf in C:\ti\simplelink\ble_cc26xx_2_00_00_42893\Documents if install BLE-STACK-2.
  • Hi JXS,

    To clarify, the CC2650STK is unable to pair with a Windows computer even with a USB dongle present?

    Thanks,

    Anton
  • Hello Anton,

    The STK fw is not built with the Pairing/Bonding support. You can support connections to any BLE Master/Central. If you apply the aforementioned code change, then it will send the proper Pairing response to the Windows host.

    Best wishes
  • Hi JXS,

    Thanks for the reply. With the code change, would I still need to use a USB dongle to search for the sensor tag or will I be able to do without?

    Thanks,

    Anton
  • I had problems to find the original file too. Chen helped me. :-)
    These are here: C:\ti\ simplelink\ble_cc26xx_2_00_00_42893\Projects\ble\SensorTag\CC26xx\CCS\SensorTag\

    For the advertising and pairing I am not yet able to setup my CCS but as my experience on BTLE the way to pair is the way the advertising discoverable mode is set. BTLE can be seen in different way connectable, pairable.... etc... or also not seen at all.

    If I look at file "sensortag.c" I can see a "#define DEFAULT_DISCOVERABLE_MODE GAP_ADTYPE_FLAGS_LIMITED"
    I think if we change the "GAP_ADTYPE_FLAGS_LIMITED" by something else like "GAP_ADTYPE_FLAGS_GENERAL"
    we could advertise a way to pair with windows 8.
    This worth the try. If someone already has the CCS set and the file to change?? Let us know.
    I wont be able to try till a few days...

    Jean-Marc
  • Hi,

    I am looking to pair the cc2560stk sensortag with a windows 8.1 tablet. I am new to the TI platform and have little C++/C# coding experience however, I think what I am trying to accomplish (simply reading the sensor tag in windows) requires just a few modifications to the source code (from JXS input). I have looked at the TI forums and am halfway there with the help through this discussion.

    I am unsure where (and which file) in CCS, I am to navigate to in order to implement JXS' code. Again, I have limited C++/C# experience so pardon my ignorance.

    Kind Regards,

    Anton
  • Hello Anton,

    I recommend going through the SW Developer's Guide (SWRU393) which will show you how to setup your dev environment. You can use the search function in CCS to find the file.

    Best wishes
  • Side question. Is a USB dongle required to pair the sensor tag with the computer or once your code has been added, the dongle is not needed?

    Anton
  • Hello Anton.

    In my opinion the connection and the pairing should be done without a dongle if the PC has BTLE.

    Otherwise the CC2650 would not be following the standard.

    But, I think, the CC2650 does not show as connectable connection neither pairable yet.

    We would need some change I think. And I was about to look at it.

    Unless someone can understand how load the right software and compile it :-(

    I was unable to compile it yet with CCS. Too much errors.

    I will try this later again.

  • Hello,

    The CC2650STK SensorTag default SW supports BLE connections but not Pairing or Bonding. You can connect to any standard BT4.0+ Central device that implements BLE.

    For programming, please spend some time reviewing the aforementioned SW Developer's Guide. Also refer to the sticky CC2640 FAQ thread.

    Best wishes
  • I am using other standard device (other brands) and the cc2650 does not connect. All other device do.

    The cc2650 connects only with my android and the TI app.

    Beside I dicovered the reason of the compiling errors with sensortags and CCS.

    I installed the ble_cc26xx_setupwin32_2_00_00_42893.exe in the disk D:\

    This function error free on the disk C: but not on disk D:

    I had to modify several path in the properties to make it compile correctly on disk D: (what a mess!!!).

    :-(

  • Hi! I know this workaround was posted by TI itself, but is there any confirmation that the workaround worked?

    I am trying to make sure this will work with my Windows 8.1 device before I grab a couple tags. Thanks!
  • Hello,

    Just to be clear, it's not a workaround; it's a fix since the SensorTag is now responding to the Pairing Request with a valid response.

    Best wishes
  • Sorry to ask: What workaround? Any link?
    Regards.
  • Hello, this is fixed in SensorTag firmware v1.12 which is included in the Android (v2.3) and iOS (v4.2) SensorTag smart device apps. Please apply the FW update from the respective smart device app.

    Best wishes
  • Hi This is updated for the Android and iOS apps but what about pairing with Windows 8.1? Does the FW allow pairing with windows or does the work-around still need to be applied?

    Thanks

  • Hi Venu Y,

    I was wondering if you were able to solve and implement the change to the program? Did you have any files within FlashROM or did you have to create a completely new file?

    Thanks,
  • Hi thank you for this answer. Were can I find the source code (or at least the hex file to recover) of this version v1.12? 

  • I was able to get this working with latest v1.12 FW available on iOS app. Just go to FW flashing and select v1.12 FW to download over the air.
  • Sorry, iOS app? I thought your original question posted to this forum was about pairing the sensor tags with a windows 8.1 computer? Or has there been a firmware update for the c2650 allowing it to pair with windows 8.1 now?

    Thanks

  • Sorry let me clarify. I have downloaded the latest v1.12 FW over-the-air via iOS app. Once downloaded, pairs perfectly well with Windows 8.1

  • I write again my question and try it in a different way, maybe someone from TI will answer: Is the BLE-STACK V2 up to date? Does it include this 1.12 FW? Or is there another way to get the firmware without reinstalling all the BLE-STACK? But I think it should be another way beacause it seems non-sense to me. Thank you for an answer.
  • Jean-Marc,

    Venu Y answered my question which I think is the same as yours. The new firmware allows windows 8.1 and the sensor tags to pair. To get the new firmware, you can use the iOS or android app to install it on the sensor tag, then try pairing with windows 8.1. It worked for me. This is the over the air (OTA) process some have referred to. My iOS app indicated to me my FW was old so once I installed it (1.12), everything worked!

    For anyone out there, when you pair your sensor tag with windows 8.1, does the blinking light disappear on the accelerometer or does it continue to blink?

    Anton

  • No! he answered that the firmware is updated, but he does not say where is the code. I ordered the Sensortag DevPack to be able to build my own firmware or to be able to make my custom made sensor. But I need some template to initiate with. I cannot build all from scratch it will be non sense.

    Plus, OK the Sensor now pair but it still cannot connect correctly to windows 8.1 app. I made temperature sensor with other brand and the SensorTag is not connecting.

    But this is not the point yet. We need to understand a bit more of what is going on and study this SensorTag not just use it as is.

    That is my point: Where is the SensorTag firmware official release in the web?

    Anyway thanks for replying :-)

  • Hello Jean-Marc,

    The code change required to the SensorTag firmware in order to allow it to connect to Win 8.1 can be found in my Jun 11 post near the top of this thread. This change is not in a released BLE Stack release (yet), but you can apply it to the V2 release stack, rebuild and program to the SensorTag via the DevPack Debugger (XDS110). Others in the forum have likewise confirmed that the code change works well with Win 8.1. You will then be able to connect to Win 8.1, then the SensorTag will properly respond to the Win 8.1's Pairing Request with a "Pairing not supported" message. If you do not want to rebuild the Stack, you can get the v1.12 hex file from the latest BLE Device Monitor PC application and program it via the DevPack Debugger or OTA via the TI CC2540USB dongle. The firmware is also in the latest iOS and Android apps. These changes will be in the upcoming BLE Stack V2.1 update which is not released on the web yet.

    Hopefully this is enough info to get you going with SensorTag on Win 8.1!

    Best wishes
  • JXS,

    So I am guessing there were two ways of resolving the connectivity to windows 8.1 then? One was either changing the V2 release stack with the code you mentioned earlier or two, updating the firmware to 1.12?

    Thanks,