Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Retransmission timeout and Persist timeout Problem

Retransmission timeout and Persist timeout Problem

Scheduled Pinned Locked Moved C / C++ / MFC
c++helpphpvisual-studiotutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    suchithrac
    wrote on last edited by
    #1

    I am trying to establish TCP/IP communication between DSP board(that runs Code Composer Studio, an IDE to compile and run C code) and host PC(that runs VC++ application) While sending the data from CCS to VC, sometimes "Retransmission Timeout" error occurs, and at other instance "Persist Timeout" occurs, after this timeout the transmission stops. How to address these errors in VC++ MFC code. (CAsyncSocket class and the member functions are used for reception of data at VC++ end)

    I 1 Reply Last reply
    0
    • S suchithrac

      I am trying to establish TCP/IP communication between DSP board(that runs Code Composer Studio, an IDE to compile and run C code) and host PC(that runs VC++ application) While sending the data from CCS to VC, sometimes "Retransmission Timeout" error occurs, and at other instance "Persist Timeout" occurs, after this timeout the transmission stops. How to address these errors in VC++ MFC code. (CAsyncSocket class and the member functions are used for reception of data at VC++ end)

      I Offline
      I Offline
      Intersect
      wrote on last edited by
      #2

      suchithra, from your post, I can understand the problem wel, but you didn't mentioned whether you were using any wired/wireless communication. Look, I have done so many programs for interfacing, establishments of communications for different mechatronic devices etc. & faced lots of probs. The best practice would be throughing Exceptions, so that you can understand where the problem is. I rather suggest you- 1. Use UDP protocol other than using TCP/IP protocol. 2. If you are sending bulk data, then check for stack overflow 3. Try to Impliment of your own timeout block or extend socket timeout value 4. Swap your globally stored data to local veriable, so that before every recieve, your global block should be cleaned. 5. Check your h/w connection for communication. "Retransmission Timeout" error occurs: 1. It means either no data is being recieved by your VC++ aps(use Exceptions to check atallit recieve any data from sender or not) or it recieves few data, after that communication lost (cause by stack overflow/ h/w issue), which is quite obvious in TCP/IP protocol for large data transfer. Use UDP only.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups