'RS232 Communication protocols

I want to show my inverter data in my Flutter app. I have successfuly established a connection between app and device through RS232.My question is how to calculate CRC and in which format to send the Query? The Query command is ^P005GS\<CRC\>\<cr\>



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source