This topic is now archived and is closed to further replies.


Modem communications

Recommended Posts

dummybert    122
Hi! As a first test I''m doing a program that sends chars over the serial com to manage a modem that is plugged to it (I want to control it directly with Hayes AT commands). I have studied the reference in the Microsoft manuals about ''Serial Communications'' and I''ve decided to use non-overlapped writting/reading and have two threads (one for writting, one for reading). The problem I have is that the modem doesn''t answer any char I send. I know that I''m sending characters ''cause I''ve connected two PC''s through serial port and I''ve checked that the chars are really sent, besides the modem RD light blows when I send something. I think that the problem lies on the "dcb" configuration of the serial port, or even in the flow control with the modem. I have tried disabling the flow control and setting de DTR line to 1, but it still doesn''t work. Do you have any idea of what can be wrong? Thanx in advance.

Share this post

Link to post
Share on other sites