Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

How to run CW Test Mode for AP2 Async Mode

RankRankRankRank

Total Posts: 523

Joined 2012-11-15

PM


I'd like to check AP2 module of the transmitted power from Spectrum analyzer.Debugging code long days still do not have success.According to the nRF24AP2_Product_Specification written CW test code. Don't know where the problem,Is the use of NRF24LE1 to control AP2 module.Who can guidance or send a test of code?
Looking forward to you reply!      
RankRankRank

Total Posts: 55

Joined 2008-10-24

PM

In order to test ANT RF power with Spectrum, the command : BOOL ANT_InitCWTestMode(void) must be called
before the CW test mode setting message: BOOL ANT_SetCWTMode(UCHAR ucTransmitPower, UCHAR ucRFChannel).
The command should be executed only directly after a Reset or a System Reset command, this is very important sequence;
failure to do so may result in unpredictable results.

//Example Usage:
BOOL ANT_ResetSystem(void);
Timer_DelayTime(50000) // delay for 500ms;
ANT_InitCWTestMode(void)
// Wait for RESPONSE_NO_ERROR
ANT_SetCWTMode(3, 57); // set RF power to 0dBm and CW 2457Mhz.

The RF power has listed in page 79 of “ ANT Message Protocol and Usage”; you may need to refer to the document for more detail.      
RankRankRankRank

Total Posts: 523

Joined 2012-11-15

PM

Thank you very much kebinw carrier output can already
System reset is very important, Written after each commands need to check zhe respond message, when and how to check respond message? After each command must increase Opt.ZeroPad1Opt.ZeroPad2?
English is very poor hope you can understand my questions.Thanks again,have a good day!!!      
RankRankRank

Total Posts: 55

Joined 2008-10-24

PM

The response/ Event messages sent from ANT device to the micro-controller, either in response to a message or as generated by an RF event on the ANT device.

There is a reference design embedded source code inside ANT Dev_KitCD; the sample code shows the archeture of the ANT EVENT handler and ResponseFunc usage. You can also download it from our website:http://www.thisisant.com/pages/ant/ant-embedded-reference-code.