Hi there, good news.
Forget the wrong msg ID from above.
I managed to get the channel open! I don't really know what did the trick in the end, but checking every single step of my program worked wonders.
After setting the necessary parts I frequently get the UART Answer:
[A4] [03] [40] [00] [01] [03] which stands for EVENT_TX (successful).
Which leads me with another question:
I also have the ANT AP2DK1. There is an USB Board included which should be able to receive my messages. I've set up ANTware II and established an RF communication between two USB moduls. So the USB modul is working.
My own prototype is definitly sending broadcast messages. I also tried different channel, device, etc. setting but none of them seem to change the receiving part.
Any suggestions here?
One more thing:
It looks like my prototype isn't able to receive and interprete the answer from the AP2. The UART buffer and the interrupt do work, but if I follow the correct routine (like in the example codes) I can't get the channel open, because I don't get to the point where my prototype receives and shedules the correct msg (RESPONE_NO_ERROR).
The code segment I'm talking about:
case RESPONSE_NO_ERROR:
{
if (pucEventBuffer_[3] == MESG_OPEN_CHANNEL_ID)
{
IOBOARD_LED3_OUT &= ~IOBOARD_LED3_BIT; // Turn ON LED
printf("Initialization is complete.\n");
}
else if (pucEventBuffer_[3] == MESG_NETWORK_KEY_ID)
{
//Once we get a response to the set network key
//command, start opening the Weight Scale channel
WGTTX_Open(WGTTX_CHANNEL, (USHORT) WGTTX_SERIAL_NUMBER, WEIGHT_TX_TYPE);
}
To clarify: I don't follow the subroutine from above. Instead I send the UART commands to assign the channel, wait a while, and then send the following commands to get the channel open and start transmitting broadcast messages.
Thanks so far and have a nice weekend
Holger