can't use fopen() with a modem????

I am trying to open my modem to dial i number but I cant seem to get it open for command mode when using "fopen()".


I open "com1:" and that is OK, I get now error.

But it doesnt activate the "TR" indicator on the modem.


When I us ethe hyperterminal to "connect" to com1:

or echo atdt >com1: the "TR" indicator lights up.

But I can't seem to get it to work with "fopen()"




Any ideas?


Comments

  • : I am trying to open my modem to dial i number but I cant seem to get it open for command mode when using "fopen()".


    : I open "com1:" and that is OK, I get now error.

    : But it doesnt activate the "TR" indicator on the modem.


    : When I us ethe hyperterminal to "connect" to com1:

    : or echo atdt >com1: the "TR" indicator lights up.

    : But I can't seem to get it to work with "fopen()"


    :

    : Any ideas?


    Hi,

    After you opened stream with fopen(), did you use

    fprintf() to output "atdt" string to the stream?

    It should work.


    Eugene.


  • : : I am trying to open my modem to dial i number but I cant seem to get it open for command mode when using "fopen()".


    : : I open "com1:" and that is OK, I get now error.

    : : But it doesnt activate the "TR" indicator on the modem.


    : : When I us ethe hyperterminal to "connect" to com1:

    : : or echo atdt >com1: the "TR" indicator lights up.

    : : But I can't seem to get it to work with "fopen()"


    : :

    : : Any ideas?


    : Hi,

    : After you opened stream with fopen(), did you use

    : fprintf() to output "atdt" string to the stream?

    : It should work.


    : Eugene.





  • : : I am trying to open my modem to dial i number but I cant seem to get it open for command mode when using "fopen()".


    : : I open "com1:" and that is OK, I get now error.

    : : But it doesnt activate the "TR" indicator on the modem.


    : : When I us ethe hyperterminal to "connect" to com1:

    : : or echo atdt >com1: the "TR" indicator lights up.

    : : But I can't seem to get it to work with "fopen()"


    : :

    : : Any ideas?


    : Hi,

    : After you opened stream with fopen(), did you use

    : fprintf() to output "atdt" string to the stream?

    : It should work.


    : Eugene.





Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories