Menu

#468 win32: simulated IO message is corrupred

closed-fixed
theShed
None
2014-05-09
2014-03-04
Andrey B
No

if you build Win32 demo ch.exe and connect to it via TCP/IP using Putty and send a 50 byte line
q1q2q3q4q5w1w2w3w4w5r1r2r3r4r5t1t2t3t4t5y1y2y3y4y5

an unexpected line would reach Shell:
q1q2q3q4q5w1w2w3t2t3t4t5y1y2y3y4

the problem with this line is not that it is truncated, but that at index 17th we are expecting to see 'w4' and we see see 't2', which is at index 33 in the original message

So, 16 bytes get through, they 16 bytes are skipped, then some more bytes get through

more into at http://forum.chibios.org/phpbb/viewtopic.php?f=2&t=1750

Discussion

  • Andrey B

    Andrey B - 2014-03-04

    I've increased SERIAL_BUFFERS_SIZE to 64 and the bytes are not being skipped any more.

     
  • theShed

    theShed - 2014-03-04

    Same problem happens with the Linux/Posix build.
    Increasing SERIAL_BUFFERS_SIZE to 32 seems to fix it.

     
  • theShed

    theShed - 2014-03-04

    Fixed Win32 & Linux builds in repository: r6752
    Increased SERIAL_BUFFERS_SIZE to 32

     
  • Giovanni Di Sirio

    Thanks for fixin, tagging.

     
  • Giovanni Di Sirio

    • status: open --> open-fixed
     
  • Giovanni Di Sirio

    Will be fixed in 2.6.4stable, 2.7.0unstable, fixed in repository.

     
  • Giovanni Di Sirio

    • assigned_to: theShed
     
  • Giovanni Di Sirio

    • status: open-fixed --> closed-fixed
     

Log in to post a comment.