Menu

Com recieve buffer to big

Help
Viperfang
2007-10-26
2013-05-20
  • Viperfang

    Viperfang - 2007-10-26

    I have a modem in annother part of my house. I need to be able to control if from the other side, where there is no phone line.

    I have com2tcp installed on the machine with the modem and connected to its com port (com3)

    On the other machine I have com2tcp and com0com installed which is allowing me to link hyperterminal to it.

    Using a remote desktop application I can monitor the modems status using its application that came with the driver.

    If I send a command to the modem, ATH0 for instance, my remote desktop shows me that the modem has gone off hook, but hyperterminal does not show the response. It is not until I have issues 10 or so commands that and command echos or responses get returned, and then its all at once and then the process begins again.

    Can I shorten the return buffer as I dont think its small enough?

    Thanks in advance

    Viperfang

     
    • Vyacheslav Frolov

      You can try to change in com2tcp.cpp

        BYTE cbufRead[64];

      and/or

        BYTE cbufRecv[64];

      to

        BYTE cbufRead[1];

      and

        BYTE cbufRecv[1];

       

Log in to post a comment.