none
Can't write to paired TI device on Windows 10 Creators Edition RRS feed

  • Question

  • I am trying to create an app using the TI CC260R2 device. I am able to connect to it and write to it if the device is not paired. However, as soon as I pair the device I am unable to write anything too it, even the CCFG for notifications. Every time I try to write to the device I get an unreachable response.

    Below is the code I am using to write to the device. It is from DeviceWatcher on Device added <g class="gr_ gr_24 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar only-ins doubleReplace replaceWithoutSep" data-gr-id="24" id="24">event</g> handler.

    private void WatcherOnAdded(DeviceWatcher sender, DeviceInformation args)
    { 
    BluetoothLEDeviceleDevice;
    
            try
            {
                leDevice = await BluetoothLEDevice.FromIdAsync(args.Id);
            }
            catch (Exception)
            {
                leDevice = null;
            }
    
            if (leDevice == null) return;
    
    GattDeviceServicesResult gattDeviceServicesResult = await leDevice.GetGattServicesAsync();
    foreach (GattDeviceService gattDeviceService in gattDeviceServicesResult.Services)
    {
        GattCharacteristicsResult gattCharacteristicsResult = await gattDeviceService.GetCharacteristicsAsync();
        foreach (GattCharacteristic gattCharacteristic in gattCharacteristicsResult.Characteristics)
        {
            if (gattCharacteristic.CharacteristicProperties.HasFlag(GattCharacteristicProperties.Notify))
            {
                GattCommunicationStatus gattCommunicationStatus = await gattCharacteristic.WriteClientCharacteristicConfigurationDescriptorAsync(GattClientCharacteristicConfigurationDescriptorValue.Notify);
            }
        }
    }
    }
           


    Friday, October 13, 2017 8:10 PM

All replies

  • Hello Jeff,

    From your description above, it seems that this issue is more related to TI CC260R2 device, it’s recommended to contact TI device support and TI device experts can give more precise troubleshooting.

    Thanks for your understanding.

    Sincerely,

    Neil Hu


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, October 16, 2017 8:56 AM