Sending with Y-Modem fails with u-boot (intermittent)
Open Date: 2011-01-31 22:31
Letztes Update: 2012-05-14 01:09
Reporter: | damorin | Eigentümer: | yutakapon |
---|---|---|---|
Priority: | 5 - Medium | MileStone: | (None) |
Type: | Bugs | Severity: | 5 - Medium |
Component: | Tera Term | Status: | Closed |
Resolution | Fixed |
Details
Hi,
sending a file with Y-MODEM is failing quite often when the target is u-boot (2010-12 version) but it is working all the time with HyperTerminal (to my great dismay).
With a serial port monitor, I noticed that TeraTerm is not waiting for the first 'C' to start sending the first block. It is looking like its not flushing its receive buffer before starting.
Kommentar
It turns out that there was an XP hot fix that started to insert zero length packets into the USB stream if the bytes being transferred was an even multiple of 64 for the usbser.sys driver. http://support.microsoft.com/kb/943198
The default is to NOT insert zero length packets into the USB stream for XP and I think every other Windows OS (including 7 and Vista).
To fix, all I had to do was change the max packet size that TeraTerm sends from 1024 to 1023.