I'd like to gather some data from the ECU via a serial connection.

AIM (broadcast format)

5 byte packets, (aligned to 0xA3, although A3 is weirdly not the first byte, see the AIM-serial/RS232 specs)

Triggerframe format is supported

=> response 0x20 type, and the beginning of the frame are the (appr 76byte) runtime values exactly same as in comm.c and offsets specified in vemstune config/*.ini (vemstune displays all runtime data from these).

Can you provide an example in C?

Sending a TF (send+receive) example in Perl via other channel.