Hi @qiuqiuggl, welcome to the forum!
This thread discusses custom mavlink messages being handled by the Raspberry Pi companion computer. Note that if you decide to use a custom message that you want to interface with ArduSub or QGroundControl then you’ll also need to modify and rebuild them so that they can handle the additional message type correctly.