LowPowerLab Forum

Hardware support => General topics => Topic started by: Dana on June 01, 2017, 12:20:21 PM

Title: readAllRegs() returns all FFs
Post by: Dana on June 01, 2017, 12:20:21 PM
My design is from Sparkfun - using a Sparkfun Redboard with level converters to their SparkFun RFM69 Breakout (915MHz) board. I have connected everything per their
hookup diagram and verified all connections via ohmmeter. I have also checked all voltages. I do not have a spectrum analyzer.

All example sketches I have tried were uploaded correctly. The serial monitor shows the correct prints for the sketches I have tried.

I used the SFE_RFM69HCW_example.ino and changed the nodes appropriately for the two transceivers. I cannot get the boards to talk to each other.

I wrote a sketch that simply initializes the transceiver and then calls readAllRegs(). I get FFs returned in all registers.

Here is the code segment:

void setup()
{
  // Open a serial port so we can send keystrokes to the module:
 
  Serial.begin(9600);
  Serial.print("Node ");
  Serial.print(MYNODEID,DEC);
  Serial.println(" ready"); 

  // Set up the indicator LED (optional):
 
  pinMode(LED,OUTPUT);
  digitalWrite(LED,LOW);
  pinMode(GND,OUTPUT);
  digitalWrite(GND,LOW);
   
  // Initialize the RFM69HCW:

  if(radio.initialize(FREQUENCY, MYNODEID, NETWORKID))
  {
    Serial.println("RFM69 initialized"); 
    radio.setHighPower(); // Always use this for RFM69HCW
 
    // Turn on encryption if desired:
    if (ENCRYPT)
      radio.encrypt(ENCRYPTKEY);
  }
  else
  {
    Serial.println("RFM69 not initialized"); 
  }
}

void loop() {
  // put your main code here, to run repeatedly:

  if(bOnce)
  {
    radio.readAllRegs();
    bOnce = false;
  }
}


I get "RFM69 initialized" on the serial monitor, followed by all registers showing FF - 11111111

Any ideas on how to debug this would be appreciated.

Dana

Title: Re: readAllRegs() returns all FFs
Post by: Felix on June 01, 2017, 12:48:18 PM
You may want to contact sparkfun since its their hardware and code.
This forum is primarily supporting LowPowerLab products.
Title: Re: readAllRegs() returns all FFs
Post by: Dana on June 01, 2017, 01:01:24 PM
Thanks. I will try them. I was just wondering if readAllRegs should work the way I use in the loop.

Dana
Title: Re: readAllRegs() returns all FFs
Post by: Felix on June 01, 2017, 01:41:51 PM
Maybe a faulty board or improper wiring, your use of readAllRegs() is correct.