VE Direct Text Mode Checksum

Dear community

I am trying to read the VE Direct Text mode protocol on an STM32 controller via UART.
This is working quite well.
Since I occasionally receive incorrect values, I would like to cross-check the received data with the checksum.
I have already looked at the programming examples and basically understand them.

However, my problem is that I am getting two different checksums.
One is short (green) and the other is very long (red).
According to my research, the long one is an asynchronous message from the HEX protocol.
Since the message appears randomly between text mode transmissions, it is very difficult to check the checksum in between.

Is there a way to disable this asynchronous message, or how can I handle it correctly?
I have a SmarSolar Charger MPPT 250/60 with firmware v3.16 and bootloader v1.07.

I would appreciate any feedback.

Thank you in advance

There are not two different checksums…
There are only HEX frames embedded into the main text data stream.
In your case, incidentally into the text checksum field.

Eliminate hex frames when they appear and you’ll be OK.
Parse at character level the income stream and eliminate/discard anything that starts with and including “:”, up until and including first “\n” after “:”.

The hex frame is defined as:
1

So in your case, eliminate blue marked info.
What remains is the correct info.