Results 1 to 3 of 3

Thread: Serial Communications problem - Resolved

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2003
    Location
    England
    Posts
    13

    Serial Communications problem - Resolved

    Dear All,

    I am trying to transmit and receive a single file over a serial port using MSComm. I have a bootload cable between COM1 and COM2, and two seperate programs, (one to transmit and the other to receive the file).

    I am able to happily transmit and receive text files and bitmap files of any size. Unfortunately when I attempt to send any other file types (*.dll, *.exe, *.jpg), both programs lock up. The problem is caused by the receiving com port. During file transfer, I ack and nack file receipt. However, when transmitting the above file types, the receiving com port becomes unable to transmit any data to acknoweldge the receipt of the file, and thus they both lock up.

    I have no idea why this is happening, and would appreciate any answers which may shed some light on the situation.

    Cheers!
    Last edited by VisBeg; Aug 7th, 2003 at 08:12 AM.

  2. #2

    Thread Starter
    New Member
    Join Date
    Mar 2003
    Location
    England
    Posts
    13

    Talking

    Found the problem.

    In case anyone was wondering, it was because the code I was re-using,(from my older version), was utilising XOn\XOff. This was preventing the "ack" being sent back to the transmitter. Removal of the protocol lines, allows the programs to run perfectly

  3. #3
    New Member
    Join Date
    Dec 2003
    Location
    Hyderabad, India
    Posts
    2

    Me Facing the same problem...

    Hi!
    I guess I'm facing a similar problem with flow control. It would be very helpful to me if you can elaborate on the flow control and how to set it and stuff....pls help me out, its urgent...

    Yaswanth

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width