This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

eZ430-RF2480 sensor monitor example



Hello,

I'm a noob and have a question. I recently purchased a eZ430-RF2480 for a project. I downloaded IAR and the source for the sensor monitor app.  My goal is to read two analog ports and send the data to the pc as text, (ascii for hyperterminal)  and not hexidecimal data.  I first would like to tackle the data translation. Where and how do I convert the hexidecimal data to text data??? Also can the analog inputs be set up to read differential voltages??

Thanks

  • Does anyone have any updates on this?  LPRF Rocks the world and takissd seem to reference it in other posts, but I have not yet seen the entire solution.

    Just like G, I am using the ez430-rf2480 ZASA app and am completely perplexed. I have been trying to figure out the MT, sapi and zaccel process in the ZASA sample app and can't determine where zaccel writes to the PC.  If you, or anyone, can point me to the posts that describe exactly how this happens, I would be very appreciative. 

    I see the zb_RecieveDataIndication and the ZACCEL_RCV_DATA_IND but I cannot determine if the MT_SAPI call to MT_BuildAndSendZToolResponse (or other) is where the text is sent to the PC.

     

  • Hi Darrin,

    The data is sent to the PC using the halUARTWrite function called in mt.c file. Refer to the definition of the funtion and I think you will know how it writes to the PC. Use the Hyperterminal with baudrate of 9600 and the normal configurations to see meaningful data on screen. I modified the function definition a bit to view the contents of the 9, 10 and 11 element of the pBuf which actually is the location of payload data

    void mtTx(uint8 *pBuf)
    {
      uint8 tmp = SOP_VALUE;
      char array[15];
      int i;
     
      halUARTWrite(HAL_PORT_MT, &tmp, 1);
      tmp = *pBuf + MT_RPC_FRAME_HDR_SZ;
      //Packet Contents
      for (i = 0; i < 128; i++) {
        //if (pBuf[i] != 0 && i<20) { //For all 15 values of the buffer
          if (pBuf[i] != 0 && i==9 || i==10 || i==11) {
          sprintf(array,"%x",pBuf[i]);
          printStr(array);     
        }
      } 
      halUARTWrite(HAL_PORT_MT, pBuf, tmp);
      tmp = calcFCS(pBuf, tmp);
      halUARTWrite(HAL_PORT_MT, &tmp, 1);
      printStr("\n");
    }

    Hope this helps