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.

EVM430-FR6043: How to retrieve the data sent via UART back to VFR value?

Part Number: EVM430-FR6043

Hello All,

I'm sending the VFR data to my PC application via UART using the below code. I'm only interested in VFR Data at the moment to calculate Volume passed through pipe W.R.T  Time elapsed.

I have few doubts regarding how to convert the received bytes back to VFR Value in my PC Application. I'm trying to Plot Volume vs Time graph in my application.

Is the VFR Data 24 bit in size ? I can see the values are sent like

// Send float values

uartTxHexByte(ptr[3]);
uartTxHexByte(ptr[2]);
uartTxHexByte(ptr[1]);
uartTxHexByte(ptr[0]);

I'm waiting for the delimiter sign "!" so that I know its the VFR Value to be sent .

How to convert these bytes back to VFR Value on the receiving end?

void uartTxUSSResult(uint8_t delimiter, float *data)
{
    uint8_t *ptr;

    // Send delimiter
    if (delimiter == '!')
    {
  //  uartTxByte(delimiter);
    // Send comma
   // uartTxByte(',');

    ptr = (uint8_t *) data;

    // Send float values
    uartTxHexByte(ptr[3]);
    uartTxHexByte(ptr[2]);
    uartTxHexByte(ptr[1]);
    uartTxHexByte(ptr[0]);


    // Send new line return
    uartTxByte('\n');
    uartTxByte('\r');
    }
}

Also I have one more Query regarding the Meter Constant value.  What is the Significance of  Meter Constant value ? I tried changing the meter constant value in my setup and I noticed It changes the VFR Values.

So what is the Ideal Meter Constant ? I'm trying to design an Ultrasonic Spirometer and currently in R&D Phase for the project. I have already designed a Commercial Turbine Based Spirometer , but Now I'm into Ultrasonic Design.

**Attention** This is a public forum