Animate rig/body on serial data

Hello to all,

first i am new to blender, so sorry for my stupid question. and my bad englisch.
I know i should google but i find everything and nothing to my problem so i hope someone can help me an point me in the right direction.

i want to move my rig/body/bones in blender on data which i get from serial port (quaternion).
Like i said in the internet you can finde everything and nothing

Maybe someone has a link to a tutorial or a code or a post with the same question?
Would be very nice if someone has helpfull link or something

Thanks and best regards