sending control-Z to serial port
hello every body
I wrote a program for my serial port for acting like minicom (but very simple) and I wanted to communicate to a gprs modem that I connected it to my serial port. every thing is good and I can send any command and receive its answer and action except control-Z and that is neccesery for me to sending sms via gprs modem, first of all I ignored SIGTSTP in my program for preventing it to stop but it does not work then I wrote function to send 26 (I think code of control+Z)to serial port that it does not work again.
what can I do
please help me.
this is the signal handler and my fuction in my program:
SerialSetSpeed( port, speed);
SerialWrite( port, &ch, 2);