• 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 to make a program ?
Share
Low Power RF & Wireless Connectivity
  • Forums
  • Announcements
  • Files
  • E2E Wiki
Options
  • Subscribe via RSS

Forums

How to make a program ?

This question is answered
Drave Dravenburgh
Posted by Drave Dravenburgh
on Feb 18 2012 13:04 PM
Prodigy200 points

Hello,

i bought the MiniDK for my Thesis. I have already programmed my Atmega8 and now i have to transfer the program to the CC2540. My problem is that i don't know how to start.

I have already read the guides and debugged the SimpleBLEPeripherial.

What i know is that during the initialization OSAL has to register my app as a task. After the initialization OSAL is waiting for events which trigger the tasks.

What i need is a procedure how to change the SimpleBLEPheripherial so that my program works.

If you give me an example for the following program i will surely understand what to do further.

The program is very simple.

For the KeyFob:

The ADC has to be started every 4ms (256Hz).

The converted values (10bit or larger) have to be sent with an baudrate of 57000 to the dongle, that all should be done continously without requests.

The dongle is installed properly as a serial port, so that the data can be processed by a software.

Keyfob and dongle should know each other so that by pressing a key a link should be established and the data should be sent

Thats all.

Thx

Andi

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Drave Dravenburgh
    Posted by Drave Dravenburgh
    on May 03 2012 14:46 PM
    Prodigy200 points

    Yes, you are right. And i can't answer your questions :D

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Don Clark
    Posted by Don Clark
    on May 04 2012 19:32 PM
    Prodigy130 points

    Actually, and no offense meant, I was replying to kazola, who has been a great help and shows lots of patience.

    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 May 05 2012 06:49 AM
    Guru11075 points

    Hi, I've been outside for a few weeks and I've lost the meaning of the thread. Why we do not all verify this one and starts a new one with the remaining doubts?

    I think the thread title does no longer represents its content.

    Thanks!



    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.
  • Drave Dravenburgh
    Posted by Drave Dravenburgh
    on May 05 2012 15:22 PM
    Prodigy200 points

    By the time i made the program, its not that difficult as i thought. The only thing you need is time.

    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 May 05 2012 20:43 PM
    Guru11075 points

    :)

    Nice to hear this. Verify the thread to keep the forum cleaner then. 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.
  • Drave Dravenburgh
    Posted by Drave Dravenburgh
    on May 06 2012 07:08 AM
    Verified Answer
    Verified by Drave Dravenburgh
    Prodigy200 points

    I took the Heartrate example, i only had to change the heartrate.c:

    Interrupt Timer3: Starting ADC and sending Notification, but not at the same cycle.

    HAL_ISR_FUNCTION( Timer1ADCInterrupt, T3_VECTOR )
        {
              
              
           if(Timer1ADCIntFlag==0){
             ++NotifyHilf;
            Timer1ADCIntFlag=1;
          // 250Hz Abtastung und Filterung und Mittelwert Bildung
           adc_wert = HalAdcRead(HAL_ADC_CHANNEL_0,HAL_ADC_RESOLUTION_10);
           // bandpass_out=bandpass(adc_wert);
           // mittelwert_out=mittelwert_berechnen(abs(bandpass_out));
          }
          else{
            //heartRateMeasNotify();
    //              if(PortHilf==1)
    //                {P1=1;PortHilf=0;}
    //              else
    //                {P1=0;PortHilf=1;}
            Timer1ADCIntFlag=0;
          }
         if(NotifyHilf==100)
         {NotifyHilf=0;
         heartRateMeasNotify();
         }
          
        }

    Best friend is "Find in Files" CTRL+SHIFT+F

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • SATYA VENKATA
    Posted by SATYA VENKATA
    on May 09 2013 03:49 AM
    Prodigy110 points

    Hi Drave, 

                   I am new to bluegiga BLE112, i am struggling to configure this module. when i went through bluegiga website I got some info about ble112 but I am unable to configure this module and i did nnot understand about BGscript. 

    Can you please give explanation about BGscript and how to configure and programe BLE112 module please

    Thank you

    Regards

    Satya

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
12
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