USB moves data in scheduled batches. A USB-serial adapter therefore does not pass every received byte to the PC immediately; it sends a batch when its buffer fills or a timer expires. FTDI chips call this the «Latency Timer», 16 ms by default.
What goes wrong
- Frames split: at 9600 bps a 17-byte request takes about 19 ms on the wire. If the adapter hands data over every 16 ms, the PC gets two chunks with a gap longer than 3.5 characters (4 ms), so the RTU frame splits in two and both halves fail the CRC.
- Frames merge: several short replies can arrive in one chunk and look like one frame.
- Replies arrive late: a request-response round trip can take tens of milliseconds longer. A master with a tight timeout reports «no response».
What to do
- FTDI: Device Manager → Ports (COM) → port Properties → Port Settings → Advanced → lower Latency Timer from 16 to 2–4 ms. Other chips (CH340, CP210x …) differ by driver.
- Frame by length, not time: Modbus requests reveal their length from the function code (reads and single writes 8 bytes, multiple writes 7 + byte count + 2). PortDock Modbus Slave reassembles requests this way and uses a 20 ms minimum gap on USB ports.
- Give time-based framing more room: with USB adapters set the idle gap to about 20 ms. PortDock Serial points this out on USB ports.
- Give the master's timeout headroom: device response time + adapter latency (up to 2 × latency timer per round trip).
How to recognise it
If one request appears as two lines in the log and both show «CRC FAIL», it was split. Line timestamps clustering at roughly 16 ms steps point to the latency timer.
How many bytes arrive in 16 ms
Counting the wire time of one byte (11 bits for Modbus RTU), the number of bytes that arrive between two 16 ms hand-overs depends on the baud rate. Frames longer than this always arrive in two or more chunks; shorter frames split too when a hand-over falls inside them.
| Baud | 1 byte | Bytes in 16 ms |
|---|---|---|
| 9600 | 1.15 ms | about 14 |
| 19200 | 0.57 ms | about 28 |
| 38400 | 0.29 ms | about 56 |
| 115200 | 0.095 ms | about 168 |
Check the current value with PortDock
- Pick the port in Port Inspector (or Serial's «Check connection…») to read the FTDI latency timer (LatencyTimer) without administrator rights. 16 ms or more is flagged as «Worth a look».
- With TX tied to RX (DB9 pins 2–3), the connection test measures the one-byte round trip. A median of 10 ms or more points at the adapter settings first.
- After changing the value you may need to replug the adapter. FTDI does not recommend 1 ms, so try 2–4 ms.
Published 2026-10-17