Skip to content

esdad697/ask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CC1101

Raspberry Pi test program for SmartRF Studio.
Note: Raspi need wiringPi

Hardware connection

check cc1101_raspi.h for Pin description

CC1101 Vdd = 3.3V CC1101 max. digital voltage level = 3.3V (not 5V tolerant)

CC1101<->Raspi

Vdd    -    3.3V (P1-01)
SI     -    MOSI (P1-19)
SO     -    MISO (P1-21)
CS     -    SS   (P1-24)
SCLK   -    SCK  (P1-23)
GDO2   -    GPIO (P1-22)
GDO0   -    not used in this demo
GND    -    P1-25

General description of RF packet

-> pkt_len [1byte] | rx_addr [1byte] | tx_addr [1byte] | payload data [1..60bytes]

pkt_len = count of bytes which shall transfered over air (rx_addr + tx_addr + payload data)
rx_addr = address of device, which shall receive the message (0x00 = broadcast to all devices)
tx_addr = transmitter or my address. the receiver should know who has sent a message.
payload = 1 to 60 bytes payload data.

TX Bytes example:
-> 0x06 0x03 0x01 0x00 0x01 0x02 0x03

Basic configuration

use uint8_t CC1100::begin(volatile uint8_t &My_addr) always as first configuration step.

Device address

Not used in this implementation. Be sure address filtering is not enabled (PKTCTRL1_ADR_CHK = 0) so the ADDR register is don’t care.

SmartRF Studio

Copy register output directly in cc1100_raspi.cpp

Raspberry Pi

How to compile Raspi Demo files

be sure first, that you have already wiringPi installed on your Raspberry Pi hardware.

'm' makes tx and rx

tx is transmitter

rx is receiver

t and r are single character commands that call tx and rx

About

StudioRF Test Program for Raspberry Pi with CC1101

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages