Send AT commands
I´m trying to send to the modem an AT command to send an USSD code but I´m having some troubles.
I open port number 2 (I think is the modem port...) and send ATD*121#\r
but using the atdbg program I get:
ERROR: Header error -<0> +<f1>
ERROR: Header error -<f1> +<ee>
ERROR: Header error -<ee> +<e8>
ERROR: Header error -<e8> +<5b>
I know that I have to send ATD*121#\r to the modem because using atdbg when I dial directly the ussd command *121# code, I get ATD*121#\r.
What I´m not sure is the way to send it to the modem.
Any idea of how to do it or where to get information??
Thanks in advance and sorry for my english.