• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Low Power RF & Wireless Connectivity » Low Power RF Bluetooth® Low Energy & ANT Forum » BLE cc2540 Proximity Profile
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

BLE cc2540 Proximity Profile

This question is answered
1960865
Posted by 1960865
on Feb 13 2012 18:11 PM
Intellectual775 points

Hello, I am new to TI & BLE

Has anyone figured out how to set the Proximity Profile to work? I have read and tried to follow the Wiki (http://processors.wiki.ti.com/index.php/Category:KeyFobDemo) but have not been able to set ON the proximity profile. I know that the UUIDs have changed since the example and current proxreport.h have the following UUID, for which I have tried but was not able to turn on... Can someone shed some lights on this.  I am probably missing something simple (which is always the case for me :)).

// Proximity Profile Service UUIDs
#define LINK_LOSS_SERVICE_UUID          0x1803
#define IMMEDIATE_ALERT_SERVICE_UUID    0x1802
#define TX_PWR_LEVEL_SERVICE_UUID       0x1804
 
// Proximity Profile Attribute UUIDs
#define PROXIMITY_ALERT_LEVEL_UUID      0x2A06
#define PROXIMITY_TX_PWR_LEVEL_UUID     0x2A07

When I try to write "Characteristic Value Handle" for above UUIDs I get INVALID_HANDLE. I was able to write 01 to 0x2A06.
Any help is appreciated and thanks in advance.
Laith

 

Proximity BLE cc2540
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • kazola
    Posted by kazola
    on Feb 14 2012 05:14 AM
    Verified Answer
    Verified by 1960865
    Guru10665 points

    Hi,

    there is some info for you here:

    http://e2e.ti.com/support/low_power_rf/f/538/t/134385.aspx

    Please let us know. It is fairly easy to set up the proximity profile.

    IMPORTANT NOTE: the USB has to be flashed with the HostTestRelease firmware AND the keyfob with the KEYFOB firmware. I'm not sure if the SimpleBLEPeripheral includes proximity features. Flash the keyfob with the KeyFob firmware.



    Please click the     Verify Answer     button on a post if it answers your question! :)

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • 1960865
    Posted by 1960865
    on Feb 14 2012 11:14 AM
    Intellectual775 points

    Kazola, thanks for your reply.

    I did try out the link you sent out. but that does not explain this though...in the code we have the following

    // Proximity Profile Service UUIDs
    #define LINK_LOSS_SERVICE_UUID          0x1803
    #define IMMEDIATE_ALERT_SERVICE_UUID    0x1802
    #define TX_PWR_LEVEL_SERVICE_UUID       0x1804
    

    but when I try to "Discover Characteristic by UUID" using the UUID 0x1802 to 0x1804 i get all the following which is not making sense.
    
    
    0x1802
    [1] : <Tx> - 12:16:56.259
    -Type : 0x01 (Command)
    -Opcode : 0xFD88 (GATT_DiscCharsByUUID)
    -Data Length : 0x08 (8) byte(s)
    ConnHandle : 0x0000 (0)
    StartHandle : 0x0001 (1)
    EndHandle : 0xFFFF (65535)
    Type : 02:18
    Dump(Tx):
    01 88 FD 08 00 00 01 00 FF FF 02 18

    ------------------------------------------------------------------------------------------------------------------------
    [2] : <Rx> - 12:16:56.329
    -Type : 0x04 (Event)
    -EventCode : 0xFF (HCI_LE_ExtEvent)
    -Data Length : 0x06 (6) bytes(s)
    Event : 0x067F (GAP_HCI_ExtentionCommandStatus)
    Status : 0x00 (Success)
    OpCode : 0xFD88 (GATT_DiscCharsByUUID)
    DataLength : 0x00 (0)
    Dump(Rx):
    04 FF 06 7F 06 00 88 FD 00

    ------------------------------------------------------------------------------------------------------------------------
    [3] : <Rx> - 12:16:58.281
    -Type : 0x04 (Event)
    -EventCode : 0xFF (HCI_LE_ExtEvent)
    -Data Length : 0x06 (6) bytes(s)
    Event : 0x0509 (ATT_ReadByTypeRsp)
    Status : 0x1A (The Procedure Is Completed)
    ConnHandle : 0x0000 (0)
    PduLen : 0x00 (0)
    Dump(Rx):
    04 FF 06 09 05 1A 00 00 00

    ------------------------------------------------------------------------------------------------------------------------


    0x1803
    -------------------------------------------------------------------
    [1] : <Tx> - 12:17:26.324
    -Type : 0x01 (Command)
    -Opcode : 0xFD88 (GATT_DiscCharsByUUID)
    -Data Length : 0x08 (8) byte(s)
    ConnHandle : 0x0000 (0)
    StartHandle : 0x0001 (1)
    EndHandle : 0xFFFF (65535)
    Type : 03:18
    Dump(Tx):
    01 88 FD 08 00 00 01 00 FF FF 03 18

    ------------------------------------------------------------------------------------------------------------------------
    [2] : <Rx> - 12:17:26.433
    -Type : 0x04 (Event)
    -EventCode : 0xFF (HCI_LE_ExtEvent)
    -Data Length : 0x06 (6) bytes(s)
    Event : 0x067F (GAP_HCI_ExtentionCommandStatus)
    Status : 0x00 (Success)
    OpCode : 0xFD88 (GATT_DiscCharsByUUID)
    DataLength : 0x00 (0)
    Dump(Rx):
    04 FF 06 7F 06 00 88 FD 00

    ------------------------------------------------------------------------------------------------------------------------
    [3] : <Rx> - 12:17:28.430
    -Type : 0x04 (Event)
    -EventCode : 0xFF (HCI_LE_ExtEvent)
    -Data Length : 0x06 (6) bytes(s)
    Event : 0x0509 (ATT_ReadByTypeRsp)
    Status : 0x1A (The Procedure Is Completed)
    ConnHandle : 0x0000 (0)
    PduLen : 0x00 (0)
    Dump(Rx):
    04 FF 06 09 05 1A 00 00 00

    -------------------------------------------------------------------

    0x1804
    -------------------------------------------------------------------
    [1] : <Tx> - 12:17:50.370
    -Type : 0x01 (Command)
    -Opcode : 0xFD88 (GATT_DiscCharsByUUID)
    -Data Length : 0x08 (8) byte(s)
    ConnHandle : 0x0000 (0)
    StartHandle : 0x0001 (1)
    EndHandle : 0xFFFF (65535)
    Type : 04:18
    Dump(Tx):
    01 88 FD 08 00 00 01 00 FF FF 04 18

    ------------------------------------------------------------------------------------------------------------------------
    [2] : <Rx> - 12:17:50.479
    -Type : 0x04 (Event)
    -EventCode : 0xFF (HCI_LE_ExtEvent)
    -Data Length : 0x06 (6) bytes(s)
    Event : 0x067F (GAP_HCI_ExtentionCommandStatus)
    Status : 0x00 (Success)
    OpCode : 0xFD88 (GATT_DiscCharsByUUID)
    DataLength : 0x00 (0)
    Dump(Rx):
    04 FF 06 7F 06 00 88 FD 00

    ------------------------------------------------------------------------------------------------------------------------
    [3] : <Rx> - 12:17:52.445
    -Type : 0x04 (Event)
    -EventCode : 0xFF (HCI_LE_ExtEvent)
    -Data Length : 0x06 (6) bytes(s)
    Event : 0x0509 (ATT_ReadByTypeRsp)
    Status : 0x1A (The Procedure Is Completed)
    ConnHandle : 0x0000 (0)
    PduLen : 0x00 (0)
    Dump(Rx):
    04 FF 06 09 05 1A 00 00 00

    -------------------------------------------------------------------
    
    
    What am I doing wrong?
    thanks
    Laith
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • 1960865
    Posted by 1960865
    on Feb 16 2012 06:24 AM
    Intellectual775 points

    FYI, the link was very helpful.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • kazola
    Posted by kazola
    on Feb 16 2012 09:31 AM
    Guru10665 points

    I'm sorry, I'm on a trip so I cannot remember this things right now. But I remember that if you set "02" to 0x0022, you are going to put the keyfob in proximity alert loud mode ;) Bye!



    Please click the     Verify Answer     button on a post if it answers your question! :)

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • GregS
    Posted by GregS
    on Feb 16 2012 10:28 AM
    Expert4155 points

    Hello,

    Also try sending a FindInfoReq and look at the handle <--> UUID pairs.

    BR,

    -Greg

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • kazola
    Posted by kazola
    on Feb 16 2012 11:05 AM
    Verified Answer
    Verified by 1960865
    Guru10665 points

    Hi,

    I've made somebody in the lab check this since it is also interesting for me:

    Within the result of the command GregS suggested there is...

    Handle		: 0x0022
    Data : 06:2A

    Which you can see matches the values at the top of the thread. Please be aware "Alert" and "Service" UUIDs are different concepts. Bye.



    Please click the     Verify Answer     button on a post if it answers your question! :)

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Senthil kumar103423
    Posted by Senthil kumar103423
    on May 02 2012 23:50 PM
    Prodigy250 points

    Hi all,

    While Discovering the characteristic of PROXIMITY_ALERT_LEVEL_UUID 0x2A06 , i could able to get two handles 0x0025 for Link loss alert and 0x0028 for path loss alert ,Upon setting 0x0025 to 02 ,whenever the timeout occur ,keyfob will beep ,because GAPROLE_WAITING_AFTER_TIMEOUT will occur .

    But when I write the handle 0x0028 with value '02 ' ,immediately Keyfob will start beeping and whenever i restart my keyfob it will beep because GAPROLE_CONNECTED will occur ! But my question is ,when ever pathloss is enabled then Whenever the connection is about to leave the proximity ,it (keyfob )should give alarm !

    Thanks in advance ,

    Link loss is well understood ,but i need some help in understanding how path loss is working ??

    my assumption : The Key fob will perform the Buzzer (for some time ) and led will glow till it is in the connection and when ever it is about to leave the proximity what is the expected output ??? when the connection is lost , LED will stop glow !

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • rutvik malekar
    Posted by rutvik malekar
    on Jun 08 2012 04:26 AM
    Prodigy115 points

    Thank you Sentil Kumar , I finally got the Proximity Alert working

    Proximity Bluetooth Low Energy
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • senthil kumar69729
    Posted by senthil kumar69729
    on Jun 08 2012 04:28 AM
    Expert1075 points

    Hi rutvik ,

    Kindly press Verify Answer , if your question is answered ! 

    Regards,

    Senthil

    NiceDay,

    Senthil

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use