Two way serial communication with raspberry Pi (radio project)

But I still have the problem, that I cannot use "echo" from my computer to fill this variable.

Why not? There is no debug stuff in the code that reads from the serial port. If you are using the Serial Monitor to see the Arduino output, try typing the value in the text field and hitting the send icon. If you are using some other method to see the serial output, describe that method.