Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8561391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T16:29:33+00:00 2026-06-11T16:29:33+00:00

I am trying to connect to a BLE devices based on CC2540 from TI

  • 0

I am trying to connect to a BLE devices based on CC2540 from TI (I have the keyfob from TI, and another device from connectblue OLP425) with my Motorola RAZR, the only succes I had so far is an app named Propagation on the market that I don’t have access to the sources.

I tried to connect to the device with this code but the biggest thing I don’t understand is the UUID,

I downloaded an app on a iPad 3 and I found a device has the following UUID
00000000-0000-0000-ff31-1a064f8c5966

private static final UUID SPP_UUID = UUID.fromString("00000000-0000-0000-ff31-1a064f8c5966");
BluetoothDevice bd  =BluetoothAdapter.getDefaultAdapter().getBondedDevices().iterator().next();
//I only have I device paired that is the Bluetooth Low Energy Device so using the first Device returned by the iterator is fine.
    try {
        BluetoothSocket bs = bd.createRfcommSocketToServiceRecord(UUID);
        bs.connect();
    } catch (IOException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
    }

All I get is a Service discovery failed in logcat

In almost all the example everyone is using

00000000-0000-1000-8000-00805f9b34fb

If I go further in the app it syas that the battery service is UUID 0x180f

I would just like to create an app the read the value of this service which is a simple decimal value

anyone has any succes pairing with a BLE device in the past?

thank you

Jonathan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T16:29:34+00:00Added an answer on June 11, 2026 at 4:29 pm

    I’ve been able to connect to my CC2540 with the Heart Rate Monitor.
    I flashed the firmware using the CCDebugger and using 0000180d-0000-1000-8000-00805f9b34fbas the UUID i’ve been able to read a value.

    Using the Motorola_BLE_profile sample app with some modifications.

    primaryServices = mGattService.getGattPrimaryServices(device);
    if (primaryServices == null) {
      String message = "Connection failed !";
      Toast.makeText(mContext, message, Toast.LENGTH_SHORT).show();
      return;
    }
    for (i = 0; i < primaryServices.length; i++) {
      Log.v(TAG, "primary service " + primaryServices[i]);
      if (primaryServices[i].equalsIgnoreCase(hrmUUID)) {
        try {
          status = mGattService.connectGatt(device, hrmUUID, callback1);
          if (status == true){
            mDevice = device;
            mLeState = CONNECTING;
            BluetoothLeReceiver.isDevicePickerPending = false;
          } else {
            String message = "Connection failed !";
            Toast.makeText(mContext, message, Toast.LENGTH_SHORT).show();   
          }
    
    } catch (Exception e) {
      Log.e(TAG,"Exception while calling gatt Connect");
    }
    return;
    if (i == primaryServices.length) {
     Log.v(TAG,"Primary Service not found");
     String message = "Connection failed !";
     Toast.makeText(mContext, message, Toast.LENGTH_SHORT).show();
    

    }

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Iam trying to connect my android device with a bluetooth compatible device. I know
Im trying to connect MySql from VB.NET in visual basic 2010. I wanted to
I'm trying to connect to an Active Directory from Activiti, using Apache Directory's LDAP
I am trying to connect to a database from my rails app. This database
When trying to connect to a server, my app does not have a very
Ok I am trying to connect to an Outlook calendar from C# using the
I have been trying to connect to mysql all evening using PHP. I know
Trying to connect to the database ; I have a problem context = null
I am trying to connect my Mobile device (WM 6.0 PE) through a GPRS
Im trying to connect to the Magento 1.4.0.1 API, but until now I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.