Finally I solved the problem by installing gtkterm on Raspberry Pi.sudo apt-get install gtkterm
After installing gtkterm I can send ASCII codes to the serial device (motor controller) and rotate the servo motor :)
Now all I need to write a Python program to control the motor. Can anybody help me about how I can write codes of gtkterm on Python?