Ammar Rana

MyWireless application data transmission

Discussion created by Ammar Rana on Sep 21, 2007
Latest reply on Sep 24, 2007 by Ammar Rana
Hi all,
I am using My wireless application and Mc13213 SRB and NCB. While working with the application demo , i am facing problem regarding the data transmission. I have created the simple application 07a and 07b through Beekit , its all function and cases are working , except the function for Handle MCPS and Transmit Uart data. I have tried all the things , but the code never call these functions , i have tried to change the MCPS cases with MLME cases , and it worked and called the MLME function.
Following are those event and the function
 
if (events & evtMessageFromMCPS) // Program Never Ever call this event 
    {     
       /* Get the message from MCPS */
      pMsgIn = MSG_DeQueue(&mMcpsNwkInputQueue);
      if (pMsgIn)
      {             
             
        App_HandleMcpsInput(pMsgIn);
        /* Messages from the MCPS must always be freed. */
        MSG_Free(pMsgIn); 
       }
       else { Uartutil_Print("Bug finder ");
      }
      }
 

    App_TransmitUartData();
    TS_SendEvent(gZappTaskID_c, evtListen);
    break;
  }
static void App_HandleMcpsInput(mcpsToNwkMessage_t *pMsgIn)
{
  switch(pMsgIn->msgType)
  {
    /* The MCPS-Data confirm is sent by the MAC to the network
       or application layer when data has been sent. */
  case gMcpsDataCnf_c:
    if(mcPendingPackets)
      mcPendingPackets--;
    break;
  case gMcpsDataInd_c:
    /* Copy the received data to the UART. */
    UartUtil_Tx(pMsgIn->msgData.dataInd.pMsdu, pMsgIn->msgData.dataInd.msduLength);
    break;
  }
}
 
So , any suggestion what to do . I ll be very thankful .
 
chiao.


Message Edited by AmZig on 2007-09-21 04:17 PM

Outcomes