element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Benefits of Membership
    • Achievement Levels
    • Members Area
    • Personal Blogs
    • Feedback and Support
    • What's New on element14
  • Learn
    Learn
    • Learning Center
    • eBooks
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Dev Tools
    • Manufacturers
    • Raspberry Pi
    • RoadTests & Reviews
    • Avnet Boards Community
    • Product Groups
  • Store
    Store
    • Visit Your Store
    • 'Choose another store...'
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
RoadTests & Reviews
  • Products
  • More
RoadTests & Reviews
Blog SimpleLink™︎ Sub-1 GHz Wireless Microcontroller - Create a Transmitter with SmartRF Studio Part 1
  • Blog
  • RoadTest Forum
  • Documents
  • RoadTests
  • Reviews
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
RoadTests & Reviews requires membership for participation - click to join
  • ccs
  • sub-1ghz
  • cc1310
  • radio
  • texas_instruments
  • smartrf
  • simplelink
  • ti-rtos
  • launchpad
  • feature_tutorial
  • ti_rt
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Related
Recommended

SimpleLink™︎ Sub-1 GHz Wireless Microcontroller - Create a Transmitter with SmartRF Studio Part 1

Jan Cumps
Jan Cumps
26 Jul 2016

Time to create our first Radio project. A transmitter.

 

image

 

We start with the empty project from the previous blog, and use SmartRF Studio to configure our Sender profile.

 

 

SmartRF Studio

 

We've used SmartRF Studio in the second blog post to try out our radios. The application can talk directly to the on-board radio, whatever firmware you've loaded.

Super handy to test out different settings and packet sizes. But there's more.

SmartRF Studio can also generate initialisation code and source and header files for the API of the radio.

Once you are satisfied with your experiments in the tool, it can generate that source code for you. Source code that puts your radio in the exact same mode as you've just tried out.

 

image

 

For my exercise, I put the frequency to the Europe range for sub-1 GHz.

I've put transmission power to 10 dBM. I have both LaunchPad laying on the same table here, so there's no reason to go full power.

 

Generate Code

 

I have a dedicated CCS workspace for the Sender radio (check my blog on how to create a dedicated Sender workspace).

I've created an empty TI-RTOS project for the CC1310 LaunchPad in that workspace.

In that empty project, I've created a new folder called smartrf. A location to hold the radio's configuration and source code.

 

image

 

I let SmartRF create 3 files in that folder.

  • aes.xml - The SmartRF configuration storage file - that one holds all the settings we've made in SmartRF Studio.
    This file is not part of your final firmware, but you'd better safe it so you can recreate your settings in SmartRF Studio later.
  • smartrf_tx.c - the API initialisation and implementation
  • smartrf_tx.h - the API header

I've only created the TX Packet API. When exporting the code, you can choose whether you want TX, RX or both APIs, and if you want continuous or packet mode.

My first program is going to send packets. That's why I've excluded the RX and continuous API parts when generating the files.

 

In CCS, add the smartrf folder to the include directories (so that the builder finds the .h file).

Do a first compilation. You program should compile without errors, and still behaves as a blinky.

We've once more created a stable situation for ourselves. All code used up until now is tools generated. It's good to validate that nothing is wrong with that before customising it.

 

In Part 2, We'll add (read: borrow from a TI-RTOS example) our transmitter code.

The screen grab below is a preview of our firmware sending data from the TX LaunchPad, while SmartRF Studio and the second LaunchPad capture the signal.

image

 

 

SimpleLinkTm Sub-1 GHz Wireless Microcontroller - Check  Received Signal Strength
SimpleLinkTm Sub-1 GHz Wireless Microcontroller - Use SmartRF to Try Radio Configs
SimpleLinkTm Sub-1 GHz Wireless Microcontroller - Debug 2 LaunchPads at the Same Time
SimpleLinkTm Sub-1 GHz Wireless Microcontroller - Side Note: Recognise your PuTTY Sessions
SimpleLinkTm Sub-1 GHz Wireless Microcontroller - Side Note: Recognise your Code Composer Studio Sessions
SimpleLinkTm Sub-1 GHz Wireless Microcontroller - Debug a Sender to Receiver Conversation
SimpleLinkTm Sub-1 GHz Wireless Microcontroller - Side Note: Start a Fresh Project
SimpleLinkTm Sub-1 GHz Wireless Microcontroller - Create a Transmitter with SmartRF Studio Part 1
SimpleLinkTm Sub-1 GHz Wireless Microcontroller - Create a Transmitter with SmartRF Studio Part 2
SimpleLinkTm Sub-1 GHz Wireless Microcontroller - Sensor Controller Engine Part 1: Dry Run
SimpleLinkTm Sub-1 GHz Wireless Microcontroller - Sensor Controller Engine Part 2: RTOS Integration
SimpleLinkTm Sub-1 GHz Wireless Microcontroller - Sensor Controller Engine Part 3: Wake Up Options
SimpleLinkTm Sub-1 GHz Wireless Microcontroller - Side Note : Measure Power Use of Sensor Controller Engine
SimpleLinkTm Sub-1 GHz Wireless Microcontroller - ToolKit for Range Testing

on TI E2E community: How to connect a CC1310 LaunchPad to the SIGFOX network

  • Sign in to reply
  • Jan Cumps
    Jan Cumps over 7 years ago in reply to volly

    Most likely I had to go for lunch or do something else with my life. It was supposed to be a single post originally.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • volly
    volly over 7 years ago

    Jan Cumps, at first I thought...uuuummmm why so elementary, then when I moved on to Part 2, that's when I appreciated the simplicity....

    Thanks Bud.

    YV.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube