hi @YaoHan404 ,
I'm assuming that you communicate with IMU via UART.
We have an openimu driver which can be downloaded from https://github.com/Aceinna/python-openimu.git
You will find how to parse IMU data in function parse_buffer() in openimu.py file.
"z1" packet is the IMU 9 DOF data you are looking for, function parse_buffer() can parse "z1", and you can find detailed description of "z1" in "app_config/IMU/openimu.json".