Make a protocol to crontrol motors

AntoineBoatProject:
My question is : How I can send the informations ! and not, What informations I have to send !
I use just MySerial.write() and I send the bytes one by one...

Thank you

What are the capabilities of the receiver? I'll assume some common serial interface that is not an issue.
You have a motor driver that controls PWM to the the motor.
All you should need to send is the desired duty cycle and the direction you want the motor to turn. That would be a number from 0 to 100 for duty cycle and a bit for direction. So all you need to send are two bytes of data. Whether it is binary, hex, ascii or EBCDIC only effects how you write the parser. Then decide which byte to send first and which second. If you think you need a start byte or address or something else then that is dependent upon the environment the device is operating in.