Raspberry simulate mavlink

I know that I can connect a raspberry pi via the serial port to a pixhawk.
Is it possible to simulate the messages that the pixhawk will receive ?
What settings in the raspberry files ?
In particular, it is about the GPS position of the object.
Actually the fixed, static position of the object.