Closed davidsthayer closed 10 years ago
My first thought is unless you know what all is going on inside of Mirf I would try to remove it.
My second thought is that since you are using a common module that I imagine someone else has taken through FCC testing with an Arduino, there ought to be some code out there.
Okay everyone: The test lab requires our transmitter to output a constant wave carrier signal for analysis of our system. The Nordic product spec has details of what settings need to be programmed to do this. We've tried placing these basic elements in a sketch but so far we're uncertain of our output. We have a spectrum analyzer system set up for our frequency band to verify that we're getting a signal. I've include the Manufacturer's code and our sketch below that.
This is what Nordic says (p.78) in the product spec:
Appendix C - Constant carrier wave output for testing The output power of a radio is a critical factor for achieving wanted range. Output power is also the first test criteria needed to qualify for all telecommunication regulations. Configuration
This is what we have so far:
// Send and wait for a reply as fast as possible
include
include
include
include
include
void setup() {
Mirf.spi = &MirfHardwareSpi; Mirf.init();
//Mirf.setRADDR((byte )"clie1"); Mirf.payload = sizeof(unsigned long); Mirf.channel = 2; Mirf.setTADDR((byte )"serv1"); // 7 CONST WAVE = 1, 6 ALWAYS 0, 5 RF_DR_LOW, 4 = 1 byte my_rf_reg[] = {0b10011110,0}; // Set to 0dB 2mbps
Mirf.writeRegister(RF_SETUP, (byte *) my_rf_reg, 1); Mirf.config();
digitalWrite(8, HIGH); // Write CE to HIGH
delay(2); }
void loop () {
}
So far we don't seem to be getting anything. Anyone want to weigh in on this?