problem in using modem

I am using p89c51Rd2 chip
serial port is connected to modem port
after dialling connection is established but ,didn't receive "CONNECTED 9600" string to progarmm
is problem with speed of serial port? I have treid using getchar and GetByte routine

Parents
  • How did you get it to dial and connect?

    If you did it by sending commands to the modem, then the baud rate etc should be OK?

    Are you sure that the modem is actually sending the string?

    Can you receive anything back from the modem?
    What if you just send "AT" - do you get "OK"?

    Are you sure that you've correctly set up your command & response termination characters?

    "didn't receive "CONNECTED 9600" string to progarmm"

    These "verbose" response strings are intended for manual use by a human operator sitting at a terminal - you are wasting your effort trying to parse them in an automatic system!
    You would be far better to switch to the "terse" responses, where the modem just sends a numeric code - these are far easier to interpret programmatically!

    See the Manual for your modem.

    Have you tried debugging this in the simulator, using the PC's serial port?

Reply
  • How did you get it to dial and connect?

    If you did it by sending commands to the modem, then the baud rate etc should be OK?

    Are you sure that the modem is actually sending the string?

    Can you receive anything back from the modem?
    What if you just send "AT" - do you get "OK"?

    Are you sure that you've correctly set up your command & response termination characters?

    "didn't receive "CONNECTED 9600" string to progarmm"

    These "verbose" response strings are intended for manual use by a human operator sitting at a terminal - you are wasting your effort trying to parse them in an automatic system!
    You would be far better to switch to the "terse" responses, where the modem just sends a numeric code - these are far easier to interpret programmatically!

    See the Manual for your modem.

    Have you tried debugging this in the simulator, using the PC's serial port?

Children
More questions in this forum