Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Initialization for Low-level CC1101
08-24-2017, 03:10 PM
Post: #1
Initialization for Low-level CC1101
I have a sketch that I previous ran on original Panstamp AVRs using the old library that utilized the low-level CC1101 library.

The old sketch runs on the Panstamp AVR2 using the old library correctly, but I've been working on updating the code to use the current Panstamp library.

I'm having a relatively basic problem where after initializing the CC1101 object, the board will hang if I execute cc1101.init() or cc1101.reset().

My understanding is that with the way the current Panstamp board definition works, initializing isn't necessary. However, to increase the range of my boards, I configure a bunch of settings using cc1101.writeReg() to tune the exact RF frequency, RF bandwidth, baud rate (to 4800 baud), and a number of other parameters based on experimentation in the locations where my boards are deployed in conjunction with the SmartTI program to generate the hex register values I need.

These register value changes don't seem to take effect once the board definition's default initialization sequence occurs.

What is the recommended way in the current version of the Panstamp library to do low-level initialization?

Thanks!
Find all posts by this user
Quote this message in a reply
08-24-2017, 04:37 PM (This post was last modified: 08-24-2017 04:38 PM by dberenguer.)
Post: #2
RE: Initialization for Low-level CC1101
Hi @jkao,

You should change default register values (CC1101_DEFVAL_*) from arduino_avr/cores/panstamp/cc1101.h

Kind regards,

Daniel Berenguer
http://www.panstamp.com
Visit this user's website Find all posts by this user
Quote this message in a reply
08-26-2017, 04:01 PM
Post: #3
RE: Initialization for Low-level CC1101
Great, that worked. Thanks!

(08-24-2017 04:37 PM)dberenguer Wrote:  Hi @jkao,

You should change default register values (CC1101_DEFVAL_*) from arduino_avr/cores/panstamp/cc1101.h

Kind regards,
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)