I am now have some issues about 87000. following is the demo code .
UINT8 Measurement(void)
{
UINT8 u8Status = 0;
u8Status = TPMS_READ_VOLTAGE(gu16UUMA);
u8Status |= TPMS_COMP_VOLTAGE(&u8CompVol,gu16UUMA);
u8Status |= TPMS_READ_TEMPERATURE(gu16UUMA);
u8Status |= TPMS_COMP_TEMPERATURE(&u8CompTemp,gu16UUMA);
u8Status |= TPMS_READ_PRESSURE(gu16UUMA, 1u);
if( TPMS_COMP_PRESSURE(&u16CompPress,gu16UUMA))
{
gu16UUMA[UUMA_PRESSURE] = 0xFFFF;
}
u8Status |=TPMS_READ_ACCEL_XZ(gu16UUMA,1,0,7,7);
if( TPMS_COMP_ACCEL_XZ(u16CompAccelXZ,gu16UUMA))
{gu16UUMA[UUMA_Z] = 0xFFFF;
}
tRDEData.u8ElapsedTime = 1u;
return u8Status;
}
what is the meaning
u8Status |= TPMS_READ_PRESSURE(gu16UUMA, 1u);
if( TPMS_COMP_PRESSURE(&u16CompPress,gu16UUMA))
{ gu16UUMA[UUMA_PRESSURE] = 0xFFFF; }
could I use the following code
u8Status |= TPMS_READ_PRESSURE(gu16UUMA, 1u);
u8Status |= TPMS_COMP_PRESSURE(&u16CompPress,gu16UUMA);
Hi, Can you tell me where did you get this code from? Did you write it yourself?
Hi,
Please find below a detailed answer from our TPMS apps engineer.
If the returned status is 0, it means the pressure value returned by TPMS_COMP_PRESSURE is valid and can be used. If the value is not 0, it means there has been a problem (overflow/undeflow) or we suspect there is a problem, so the value may not be accurate.
In the code, when there is:
if( TPMS_COMP_PRESSURE(&u16CompPress,gu16UUMA))
{ gu16UUMA[UUMA_PRESSURE] = 0xFFFF; }
Hello
I also want to ask:The Measuring randomly or not .
if there is a Measurement error .could I Measure it again ,does the next time will occure error again?
if there is a Measurement error .what should I do next?