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-I2040S: Checksum Validation

Part Number: EVM430-I2040S
Other Parts Discussed in Thread: MSP430I2040, MSP-FET

Team,

I am using a EVM MSP430i2040 Energy metering and could communicate through UART with Raspberry pi using c code and able to get general details like Meter Name, Meter Configuration and Version details. But i could not get actual meter readings from EVM. 

I am suspecting CRC might be wrong but same CRC works for retrieving other general details from EVM. Could someone validate below CRC?

TI provided CRC writeup:

The end of the frame is a check sum byte, which is a modulus 256 byte sum of each byte from the beginning of the header to the end of the data field.

Header Frame  + Data Frame

{0x68, 0x99, 0x99, 0x99, 0x99, 0x99, 0x99, 0x68, 0x23, 0x02, 0x61, 0x00}

CRC Output,

0xEC

  • Hello Ravaan,

    It appears that the CRC output is correct based on our calculation. I broke down this exact packet in great detail at the end of the following thread.

    On the MSP430 side, I would recommend debugging your code with a debugger like the MSP-FET and if possible, monitor the UART packets with a logic analyzer. Perhaps, that command isn't enabled by your configuration settings, which makes sense why nothing is received. Check the command state machine in the emeter-dlt645.c file. On the RPi side, can you check what's received versus what's calculated by the MSP430i2040?

    Regards,

    James

    MSP Customer Applications

  • Hi James,

    Yes I ordered a MSP-FET Debugger, using which i can able to understand better, Problem is with configuration and now i could able to communicate with EVM.

    Thanks for your support.

  • Outstanding! Thank you for letting us know this resolved your issue.

    Regards,

    James

    MSP Customer Applications

**Attention** This is a public forum