Marlin · Communication

Marlin: Line Number is not Last Line Number+1

Most often: long or poor USB cable, electrical noise from motors. First step: use a short shielded USB cable with a ferrite.

By cnccode · Updated
On this page
  1. What it means
  2. Common causes
  3. How to clear it
  4. Same group: communication
  5. Frequently asked questions

What it means

Data from the host (USB) was lost or garbled. The host resends the line; many resends make blobs and pauses.

Common causes

  • Long or poor USB cable, electrical noise from motors
  • Host computer is too slow or a power-saving USB port
  • Baud rate too high for the cable

How to clear it

  1. Use a short shielded USB cable with a ferrite
  2. Do not run the USB cable next to motor wires
  3. Lower the baud rate in host and firmware to 115200 for a test
  4. Print from SD card to rule out the connection

Before you continue: After the correction do not start in the middle of the program. Go back to the last tool change, use single block and a low rapid override, and watch the distance to go.

Same group: communication

Messages of Marlin 2.1 and current Klipper. The exact wording can differ a little between versions and printer brands that change the firmware. Marlin and Klipper are open-source projects; this site is independent.

The error comes back?

Post your printer, firmware version, the full message and the start code.

Ask the community

Frequently asked questions

What does Marlin "Line Number is not Last Line Number+1" mean?
Data from the host (USB) was lost or garbled. The host resends the line; many resends make blobs and pauses.
How do I fix Marlin "Line Number is not Last Line Number+1"?
Use a short shielded USB cable with a ferrite. Do not run the USB cable next to motor wires. Lower the baud rate in host and firmware to 115200 for a test. Print from SD card to rule out the connection.
Was this page helpful?