Welcome Guest,Register Now
Log In

ANT Forum

Welcome guest, please Login or Register

   

MSP430 to nrf24AP2 - UART

RankRankRankRank

Total Posts: 523

Joined 2012-11-15

PM

I am having trouble getting a response from the nrf chip back to the MSP430F4xx2. I have a UART set up and running at 4800 baud (same as selected on nrf chip). I have gotten some odd response from the chip after I reset it using RESET# line.

Example:
char ANT_AssignChannel(UCHAR ucChannel, UCHAR ucChannelType, UCHAR ucNetworkNumber)
{
UCHAR send_data[5];

send_data[0] = 3; //data transmit length
send_data[1] = ANT_ASSIGNCHANNEL;
send_data[2] = ucChannel;
send_data[3] = ucChannelType;
send_data[4] = ucNetworkNumber;

UART_MCUSend(send_data,5);

rxWait(); //wait to receive response from ANT

return SUCCESS;
}//end ANT_AssignChannel

What would be most helpful is a sample project that uses UART. I found the samples using synchronous serial but haven't seen anything using a UART.

Thanks!

Andy      
Rank

Total Posts: 11

Joined 2010-11-22

PM

Is it possible for you to share the hardware connections ?      
Avatar
RankRankRankRank

Total Posts: 662

Joined 2012-10-09

PM

There is sample code in the ANT+ Adopter Zone using UART. What kind of "odd response" are you getting? You should be receiving a Startup Message once ANT is done resetting.

By the way, noticed in the code that it does not seem you are sending the sync byte and CRC, unless you are adding that in UART_MCUSend().