Demo of how to use CC1200 radios to send data.

Dependencies:   CC1200

CC1200 Example Project

This project shows how to use my Mbed OS CC1200 driver to send messages over the air. It connects to the radio chips, configures them (using a couple of different configurations converted from SmartRF), and sends a message from a transmitter chip to a receiver.

Hardware Setup

This program assumes that two CC1200s are connected to your processor's SPI bus. The CC1200s' circuit boards must be configured for the 900MHz band. Also, if you are connecting the two radios together directly with a cable, make sure to include an attenuator (-20dB should work) to prevent overloading the radios' RX inputs.

I used a custom circuit board for my testing, but you should also be able to use an Mbed board connected to two CC1200 eval kits to run the program.

Note: License free transmission on the 900MHz band is only legal in Region 2 countries (North and South America). Make sure to follow all local regulations covering radio transmissions!

Committer:
MultipleMonomials
Date:
Fri Aug 28 16:15:10 2020 -0700
Revision:
1:7e7812669c9c
Parent:
0:ea2678a73bde
Update CC1200 library

Who changed what in which revision?

UserRevisionLine numberNew contents of line
MultipleMonomials 0:ea2678a73bde 1 """
MultipleMonomials 0:ea2678a73bde 2 mbed SDK
MultipleMonomials 0:ea2678a73bde 3 Copyright (c) 2016 ARM Limited
MultipleMonomials 0:ea2678a73bde 4
MultipleMonomials 0:ea2678a73bde 5 Licensed under the Apache License, Version 2.0 (the "License");
MultipleMonomials 0:ea2678a73bde 6 you may not use this file except in compliance with the License.
MultipleMonomials 0:ea2678a73bde 7 You may obtain a copy of the License at
MultipleMonomials 0:ea2678a73bde 8
MultipleMonomials 0:ea2678a73bde 9 http://www.apache.org/licenses/LICENSE-2.0
MultipleMonomials 0:ea2678a73bde 10
MultipleMonomials 0:ea2678a73bde 11 Unless required by applicable law or agreed to in writing, software
MultipleMonomials 0:ea2678a73bde 12 distributed under the License is distributed on an "AS IS" BASIS,
MultipleMonomials 0:ea2678a73bde 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
MultipleMonomials 0:ea2678a73bde 14 See the License for the specific language governing permissions and
MultipleMonomials 0:ea2678a73bde 15 limitations under the License.
MultipleMonomials 0:ea2678a73bde 16 """
MultipleMonomials 0:ea2678a73bde 17
MultipleMonomials 0:ea2678a73bde 18 from os.path import join, abspath, dirname
MultipleMonomials 0:ea2678a73bde 19
MultipleMonomials 0:ea2678a73bde 20 #ROOT = abspath(join(dirname(__file__), "."))
MultipleMonomials 0:ea2678a73bde 21
MultipleMonomials 0:ea2678a73bde 22 ##############################################################################
MultipleMonomials 0:ea2678a73bde 23 # Build System Settings
MultipleMonomials 0:ea2678a73bde 24 ##############################################################################
MultipleMonomials 0:ea2678a73bde 25 #BUILD_DIR = abspath(join(ROOT, "build"))
MultipleMonomials 0:ea2678a73bde 26
MultipleMonomials 0:ea2678a73bde 27 # ARM
MultipleMonomials 0:ea2678a73bde 28 #ARM_PATH = "C:/Program Files/ARM"
MultipleMonomials 0:ea2678a73bde 29
MultipleMonomials 0:ea2678a73bde 30 # GCC ARM
MultipleMonomials 0:ea2678a73bde 31 #GCC_ARM_PATH = ""
MultipleMonomials 0:ea2678a73bde 32
MultipleMonomials 0:ea2678a73bde 33 # IAR
MultipleMonomials 0:ea2678a73bde 34 #IAR_PATH = "C:/Program Files (x86)/IAR Systems/Embedded Workbench 7.0/arm"
MultipleMonomials 0:ea2678a73bde 35
MultipleMonomials 0:ea2678a73bde 36 # Goanna static analyser. Please overload it in private_settings.py
MultipleMonomials 0:ea2678a73bde 37 #GOANNA_PATH = "c:/Program Files (x86)/RedLizards/Goanna Central 3.2.3/bin"
MultipleMonomials 0:ea2678a73bde 38
MultipleMonomials 0:ea2678a73bde 39 #BUILD_OPTIONS = []
MultipleMonomials 0:ea2678a73bde 40
MultipleMonomials 0:ea2678a73bde 41 # mbed.org username
MultipleMonomials 0:ea2678a73bde 42 #MBED_ORG_USER = ""
MultipleMonomials 0:ea2678a73bde 43
MultipleMonomials 0:ea2678a73bde 44 # Print compiler warnings and errors as link format
MultipleMonomials 0:ea2678a73bde 45 #PRINT_COMPILER_OUTPUT_AS_LINK = False