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.

MSP430I2040: Not receiving active_power, frequency parameter from MSP430 via UART to CC1352 controller

Part Number: MSP430I2040
Other Parts Discussed in Thread: SYSCONFIG

Hi,

I have interfaced MSP430i2040 and CC1352 via UART and reused the Design Center code[of MSP430] in my CC1352 to receive electrical parameters. Though I am able to get VRMS, IRMS, VPeak, IPeak and Power Factor, but unable to receive active_power, frequency, reactive power, Apparent Power etc parameters. As soon my device is powered MSP430 continously sends data and my callback is called and data is received. 

If I connect the TX and RX of MSP430 of my board to the MSP430 Evaluation board, then I get all correct parameters which I can see in the GUI based pc application provided by TI. 

These are my CommandHandler_registerCmdListeners() :

Comm_addCmdListener(COMMAND_HANDLER_EM_GUI_ID_BYTE,
COMMAND_HANDLER_VRMS_ID,
&Handler_vrms);

Comm_addCmdListener(COMMAND_HANDLER_EM_GUI_ID_BYTE,
COMMAND_HANDLER_IRMS_ID,
&Handler_irms);

Comm_addCmdListener(COMMAND_HANDLER_EM_GUI_ID_BYTE,
COMMAND_HANDLER_VPEAK_ID,
&Handler_vpeak);

Comm_addCmdListener(COMMAND_HANDLER_EM_GUI_ID_BYTE,
COMMAND_HANDLER_IPEAK_ID,
&Handler_ipeak);

Comm_addCmdListener(COMMAND_HANDLER_EM_GUI_ID_BYTE,
COMMAND_HANDLER_POWER_FACTOR_ID,
&Handler_power_factor);

Comm_addCmdListener(COMMAND_HANDLER_EM_GUI_ID_BYTE,
COMMAND_HANDLER_FREQUENCY_ID,
&Handler_frequency);

Comm_addCmdListener(COMMAND_HANDLER_EM_GUI_ID_BYTE,
COMMAND_HANDLER_ACTIVE_POWER_ID,
&Handler_active_power);

Comm_addCmdListener(COMMAND_HANDLER_EM_GUI_ID_BYTE,
COMMAND_HANDLER_REACTIVE_POWER_ID,
&Handler_reactive_power);

Please suggest me how can I debug the issue. ?

Regards,

Praveen T V

  • Hi Praveen

    >> I have interfaced MSP430i2040 and CC1352 via UART and reused the Design Center code[of MSP430] in my CC1352 to receive electrical parameters.

    Could you please comment which side (CC1352 or i2040) send parameter?

    >> If I connect the TX and RX of MSP430 of my board to the MSP430 Evaluation board, then I get all correct parameters which I can see in the GUI based pc application provided by TI.

    Could you please comment which MSP430 Evaluation board is used and in which PC GUI all correct parameters can be seen?

  • Hi Mr. Xiaodong Li,

    My issue is solved thanks for your time, the issue was with CC1352 ring buffer size configuration in the sysconfig, it was set default to 32, due to which my MSP430 data was getting truncated, once changing it to 256, I am able to receive all the values from MSP.

    Thanks,

    Praveen T V

  • Hi Praveen

    Thanks for your update!

**Attention** This is a public forum