• 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 » how could i measure/test the connection interval?
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

how could i measure/test the connection interval?

how could i measure/test the connection interval?

This question is answered
Martin Romero
Posted by Martin Romero
on Dec 20 2011 08:23 AM
Intellectual325 points

Hi everyone! I need to measure my connection interval which was set in 100 ms.

But i need to do some tests and i don´t sure that the connection interval was set correctly.

I proved with an oscilloscope the SimpleBlePeripheral disabling

all periodic and external events.

In Osal.c:

osal_run_system( void ){

...

osal_pwrmgr_powerconserve();

P1_7 ^= 1;

}

So for only in a connection interval the proccessor should wake up.

But when i measure the P1_7 pin shows a signal of 500ms instead of 100ms. 


Any help will be appreciated.

Thanks, Greetings to all!

Martin Romero

cc2540 & connection interval & measurements
Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Igor Sherer
    Posted by Igor Sherer
    on Dec 20 2011 08:43 AM
    Guru21965 points

    Hi,

     

    There are some wrap issues in your post, some information is missing.

    Is it possible for you to break the lines so it can be readable?

    Br,

    Igor

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Romero
    Posted by Martin Romero
    on Dec 21 2011 06:26 AM
    Verified Answer
    Verified by Joakim Lindh
    Intellectual325 points
    Thanks to all, i've resolved my problem.
    Therea are two ways to verify the connection interval.
    One is as application note "AN092" said, 
    and the other, which is easier, is :
    ...
        P1_7=0;
    osal_pwrmgr_powerconserve(); // Put the processor/system into sleep
    P1_7=1;
    ...
    If no events, in the oscilloscope you can see the connection interval through P1_7. 
    
    
    Bye!
    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 Dec 21 2011 07:31 AM
    Guru10665 points

    In fact I was about to suggest to:

    P1_7 ^=1;
    osal_pwrmgr_powerconserve();
    
    
    In other words, to change the order of the statements :)
    So we can mark all this as solved.
    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.
  • Martin Romero
    Posted by Martin Romero
    on Dec 21 2011 07:46 AM
    Intellectual325 points

    Kazola,

    Your solution is also valid, thanks

    Bye!

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • oguzhan avci
    Posted by oguzhan avci
    on Mar 07 2012 13:02 PM
    Prodigy130 points

    Hi Martin, I have the CC2540 development kit, and I want to send a data from a computer through the CC2540 dongle and receive it at the keyfob, and then I want to take this data from the keyfob's test pins and send it to another hardware through a wired-connection. I am able to send the data from the computer and receive it at the keyfob, but I don't know how to assign the received data to the test pins of the keyfob, I think it has something to do with the osal.c file and I need to make certain changes so that I can observe the received data at the test pins of the keyfob and then take it to another hardware through wired connection. I am using the Simple BLE Application that is provided by TI. Can you possibly help me?

    Thanks,

    Oguz 

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Romero
    Posted by Martin Romero
    on Mar 08 2012 08:01 AM
    Intellectual325 points

    Hi Oguz... Once you have received the data from pc app to the keyfob, if you want to output this data over the test pins

    you should configure these test pins as output.

    For example in SimpleBLEPeripheral.c, in the SimpleBLEPeripheral_Init function,

    when the example sets the ports, you should configure the test pins like:

    P2SEL = 0; // Configure Port 2 as GPIO

    P2DIR = 0xFF; // All port2 pins as output

    You should use the pins that are mapped in keyfob.

    Then if you want to output data over this pins, you could do

    P2 = dataByte;

    If you want send this data to another micro you could use i2c or spi.

    In the cc2540 datasheet explains what pins that you should set and tells you how these protocols work.

    Best regards,

    Martín Romero

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • oguzhan avci
    Posted by oguzhan avci
    on Mar 08 2012 10:22 AM
    Prodigy130 points

    Thank you for the response. Do you happen to know if the data is transmitted from the dongle serially or parallel? Also I need to send the received data to the test pins as it is easier to get the data from, and test pins have the P1_2, P1_3, P1_4, P1_5, P1_7, P0_0, P0_1, P0_6, P0_7 connected to CC2540.  Also P0_0, P0_1 are connected to the 2 buttons on the keyfob, and P1_2, P1_3, P1_4, P1_5, P1_7 are connected to the Acc meter, so I cant use them, it seems like I can only use P0_6, P0_7 to assign the received data and then take it from. How can I assign 8 bit data to 2 pins? Also you say P2= dataByte, in the SimpleBLEPeripheral.c what corresponds to dataByte? 

    Thank you in advance,

    Oguz

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Romero
    Posted by Martin Romero
    on Mar 09 2012 05:28 AM
    Intellectual325 points

    You can use SPI to output data serially. You can view Keyfob example which uses spi to comunicate with accelerometer.

    // Accelerometer connected at:
    // P1_2 = -/CS
    // P1_3 = SCK
    // P1_4 = MISO
    // P1_5 = MOSI <-- The data is output on this pin.
    // P1_7 = CS/DATA_READY
    (In HAL_BOARD_CFG_H you can configure SPI protocol)
    With an oscilloscope you can check the output data.
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • oguzhan avci
    Posted by oguzhan avci
    on Mar 10 2012 02:52 AM
    Prodigy130 points

    Can you please tell me what part of the SimpleBLEPeripheral.c's code (In which method) I will implement this SPI in the Keyfob example?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Martin Romero
    Posted by Martin Romero
    on Mar 12 2012 08:09 AM
    Intellectual325 points

    Hi!

    In SimpleBLEPeripheral project...

    In HAL\Target\CC2540EB\Config\   you can find HAL_BOARD_CFG_H file, which contains SPI Api. 

    Probably you have to modify the code for adapt to your goal.

    Then, in SimpleBLEPeripheral_Main you should call the SPI_INIT() macro after to the HalDriverInit().

    The Keyfob project is an example of how to use SPI.

    Best regards,

    Martín Romero

    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