Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

CW Test Mode (0x48)

Avatar
Rank

Total Posts: 21

Joined 0

PM

I have been developing communication to nRF24AP2 through a pic24FJ64GB004 and am getting RTS signals after each message sent trying to test the radio out to antennae, but no 2.4GHz continuous signal out?

while(1)
{
send:
system reset (A4,01,4A,00,EF)
delayms(1000)
wait for RTS
CW test init(A4,01,53,00,F6)
wait for RTS
CW test mode (A4,03,48,00,03,00,EC)
wait for RTS
delayms(2000)
}//end while

Any help would be appreciated.
Cy Drollinger      
RankRankRank

Total Posts: 95

Joined 2010-05-03

PM

Hi,

Do you receive RESPONSE_NO_ERROR from ANT after sending the command 0x53 "Init CW Test Mode"?

After sending command 0x53 "Init CW Test Mode", you need to wait for RESPONSE_NO_ERROR from ANT before sending the command 0x48 "CW Test Mode".      
Avatar
Rank

Total Posts: 21

Joined 0

PM

The data out of the nRF24AP2 when a CW InitTest (53) is sent is the following A4, 03, 40, 00, 53, 00, B4. The message has the sync 3-data, is a channel response, data1 00, data2 53, data3 00 and checksum B4. The data give the message about the event and are found in antdefines.h, hmm?      
RankRankRank

Total Posts: 95

Joined 2010-05-03

PM

Hi,

So you are getting RESPONSE_NO_ERROR after sending command 0x53 "Init CW Test Mode". After that, you can send command 0x48 "Set CW Test Mode" which then you will also receive RESPONSE_NO_ERROR.

Do you see this sequence of events?      
RankRankRankRank

Total Posts: 523

Joined 2012-11-15

PM

After sending [A4 03 48 00 00 00 FF] nRfAP2 sends back [A4 06 40 00 48 00 A7]. Some random antdefines.h file may interpret some errors as transfer failed and NVM Full Error. The interpretation seems a bit flaky without a datasheet indication and the solution to a failed transfer and a NVM full error?

Thank you for your consideration of my problem!
cy      
RankRankRank

Total Posts: 95

Joined 2010-05-03

PM

Hi,

Where do you get transfer failed and NVM full errors? Could you post a log of how you are setting up CW test mode?

Have you tried setting CW test mode using ANTware II? If so, are you picking any signal?

You can also use the device log from ANTware II to verify your set up for CW test mode.      
RankRankRankRank

Total Posts: 523

Joined 2012-11-15

PM

receive: [A4 01 6F 81 4B]
send: [A4 01 4A 00 EF] soft reset
wait: until RTS goes low
receive: [A4 03 40 00 53 00 B4] ?
wait: a sec.
send: [A4 01 53 00 F6] CW Init Test
wait: until RTS goes low
receive:[A4 03 40 00 53 00 B4] CW Init no error
send:[A4 03 48 00 00 00 EF] CW Test
wait: until RTS goes low
receive:[A4 03 40 00 48 00 AF] CW Test no error

I would have expected the radio to output a 2.4GHz sine wave but only see a 1.8V DC, with noise, output.

Cy Drollinger      
RankRankRank

Total Posts: 95

Joined 2010-05-03

PM

Hello,

What are you using to look for the output signal? You should be using a spectrum analyzer.

Also, I have used ANTware II to setup CW test mode using nRF24AP2 as well as your parameters; i.e. Tx power = - 20 dB and channel frequency = 2400 MHz. The result is there is a signal displayed on the spectrum analyzer so your setup for the CW test mode should work.

Also, what revision of the nRF24AP2 is yours?