troystribling / BlueCap

iOS Bluetooth LE framework
MIT License
715 stars 115 forks source link

CC2650 SensorTag Support #30

Closed rahimizad closed 7 years ago

rahimizad commented 8 years ago

Hi Troy, I am unable to discover or connect to the sensors on the new CC2650 sensor tag. Is you TISensorTagServiceProfiles for the first gen or the current sensor tags? http://processors.wiki.ti.com/index.php/CC2650_SensorTag_User's_Guide

troystribling commented 8 years ago

I only have defined GATT profiles for the older version. I just ordered a new version. It does not support the older services. You should still be able to connect to it and discover services but they will show up as Unknown. What exactly do you mean by 'unable to discover or connect to the sensors'?. Does it show up in Central Peripherals table?

rahimizad commented 8 years ago

Hi Troy, the examples didnt work since they were looking for the accelerometer at the old UUID address. No worries, now that i know, I can update them to match the new sensortag. thanks so much

troystribling commented 8 years ago

The examples will not work with sensor tag since it does not advertise services. The accelerometer example expects the accelerometer service to be advertised. If you build the Bluecap app it should see the device.

mph070770 commented 7 years ago

Hi Troy. Sorry for opening an old thread. Can the CentralManager demo be fixed to work with the sensorTag? How do you connect to the sensorTag UUID of F0000000-0451-4000-B000-000000000000 instead of the accelerometer UUID F000AA10-0451-4000-B000-000000000000.

troystribling commented 7 years ago

I do not understand the question. F0000000-0451-4000-B000-000000000000 is the TI base UUID it does not map to a service. http://processors.wiki.ti.com/index.php/SensorTag_User_Guide.

If you want to add a service you can use this https://github.com/troystribling/BlueCap/blob/master/BlueCapKit/Service%20Profile%20Definitions/TiSensorTagProfiles.swift as a guid.

The documentation on writing GATT profiles is here https://github.com/troystribling/BlueCap/blob/master/Documentation/GATTProfileDefinition.md.