<p>From the look of it, and given that you already two different slicers, it look like this may be a hardware issue.  I have had very similar error messages with my cheap Chinese printer and this is ultimately why <strong>I ended up always printing via the SD card and stop worrying</strong>.</p>

<p>That said, the error is about the serial connection over your USB cable.  I was about to write a list of suggestions, but I found out that your manufacturer already has a troubleshooting guide for your printer <a href="https://printrbot.zendesk.com/hc/en-us/articles/204376564" rel="nofollow noreferrer">here</a>.</p>

<p>Adding my own suggestions to those of Printrbot, this is the final troubleshooting guide (the linked page has detailed instructions for each step but 6 and 7):</p>

<ol>
<li>Cycle power</li>
<li>Update your Operating System.</li>
<li>[Windows users only] run a VCP (Virtual Com Port) driver wizard</li>
<li>Check physical connections and swap power and usb cables.</li>
<li>Use a standard 2.0 USB input rather than USB 3.0, if applicable</li>
<li>Make sure that your printer is away from any potential source of EMI (Electro-Magnetic Interference).  Microwaves ovens, many types of energy-saving lamps and power bricks/adapters are known offenders.</li>
<li>If possible, reduce the serial speed of your connection (revert if this does not solve the issue, as it may effect print speed and quality).</li>
<li>Flash your Printrboard</li>
</ol>

<p>To clarify what these tips are all about:</p>

<ul>
<li>Step 1 is about making sure you don't have your computer and printer in "dirty states" (as in: with their serial buffer corrupted or stuck).</li>
<li>Step 2-3 are about making sure you have as many known software bugs and problems patched as you can, as well as all the latest features.  This is especially important if you are asking for help, as nobody is going to downgrade their own machines just to replicate a user' unique state.</li>
<li>Step 4-7 are about diminishing the possibility that the signal in your cables gets disrupted and mangled along the way between the computer and the printer.</li>
<li>Step 8 is like 2-3 but for your printer firmware, rather than your computer software.</li>
</ul>

CC BY-SA 3.0
2018-01-12T17:14:10.427Z
Thanks so much!  I'll give that a try when I get home and hope for the best.
Yatalia
CC BY-SA 3.0
2018-01-13T02:24:36.473Z
I tried using the SD card option way back when, but it didn't work for whatever reason (it was probably just heating up and I didn't know it, I was very new back then).  Tried going with the SD card option again, and boom.  Success.  Not sure what the issue was, but whatever it was, it is gone when using the SD card.  Thanks again!
Yatalia
CC BY-SA 3.0
2018-01-12T16:28:21.327Z
2018-01-12T16:28:21.327Z
mac
<p><strong>Disclaimer</strong>: I have read about this elsewhere but haven't found a solution.</p>

<p><strong>Printer</strong>: Printrbot Simple Metal with heated bed</p>

<p><strong>Slicer</strong>: Cura 15.04.6 (also tried Cura 3.1)</p>

<p><strong>Printing software</strong>: Whatever Cura 15.04.6 comes with when printing from USB</p>

<p>The print goes well for the first couple layers then just stops.  It stays heated, fan keeps blowing, but print has failed.  Here is the error:</p>

<p><code>...
Send: N19517G1 X47.047 Y59.035 E1574.00486*126
Recv: ok
Send: N19518G1 X68.604 Y74.097 E1574.44219*122
Serial timeout while writing to serial port, trying again.
Unexpected error while writing serial port: SerialException: 'WriteFile failed ([Error 22] The device does not recognize the command.)' @ machineCom.py:_sendCommand:565
Changing monitoring state from 'Printing' to 'Error: SerialException: 'WriteFile failed ...'
Connection closed, closing down monitor</code></p>

<p>I have gotten this using Cura 3.1 to slice as well as Cura 15.04.6 (though the error above was using the Cura 15.04.6).  I've tried using a different interface for printing, but nothing helps.</p>

<p>Any ideas on solving this?  I feel like I am missing a small but simple detail here to making it work.</p>

<p>[Edit] Added printing info at top to make it a little more clear what I was using.</p>

CC BY-SA 3.0
2018-01-12T07:37:10.860Z
What printer? what generate the error? what have you read? why what you read does not solve the issue? what other information do you want that was not available there?
mac
CC BY-SA 3.0
2018-01-12T15:10:33.213Z
Excellent questions, first two answered in the edit.  As for what I have read and why it didn't work, you know those times when you read so much and try so much that you forget what you've even read and tried?  That's the case here.  As for what else I want, honestly I just want to start printing again, and I couldn't find solutions to let me do that elsewhere (I'm sure the solution is out there, just didn't find it).
Yatalia
<ultimaker-cura><g-code>
SerialException: 'WriteFile failed ([Error 22]...' Printrbot Simple Metal using Cura 15.04.6
Yatalia
# SerialException: 'WriteFile failed ([Error 22]...' Printrbot Simple Metal using Cura 15.04.6

(Asked by: username_0 on 2018-01-12)

**Disclaimer**: I have read about this elsewhere but haven't found a solution.

**Printer**: Printrbot Simple Metal with heated bed

**Slicer**: Cura 15.04.6 (also tried Cura 3.1)

**Printing software**: Whatever Cura 15.04.6 comes with when printing from USB

The print goes well for the first couple layers then just stops. It stays heated, fan keeps blowing, but print has failed. Here is the error:

`...
Send: N19517G1 X47.047 Y59.035 E1574.00486*126
Recv: ok
Send: N19518G1 X68.604 Y74.097 E1574.44219*122
Serial timeout while writing to serial port, trying again.
Unexpected error while writing serial port: SerialException: 'WriteFile failed ([Error 22] The device does not recognize the command.)' @ machineCom.py:_sendCommand:565
Changing monitoring state from 'Printing' to 'Error: SerialException: 'WriteFile failed ...'
Connection closed, closing down monitor`

I have gotten this using Cura 3.1 to slice as well as Cura 15.04.6 (though the error above was using the Cura 15.04.6). I've tried using a different interface for printing, but nothing helps.

Any ideas on solving this? I feel like I am missing a small but simple detail here to making it work.

[Edit] Added printing info at top to make it a little more clear what I was using.

**Tags:** ultimaker-cura, g-code
> **Comments:**
> **username_1**: What printer? what generate the error? what have you read? why what you read does not solve the issue? what other information do you want that was not available there?  
> **username_0**: Excellent questions, first two answered in the edit.  As for what I have read and why it didn't work, you know those times when you read so much and try so much that you forget what you've even read and tried?  That's the case here.  As for what else I want, honestly I just want to start printing again, and I couldn't find solutions to let me do that elsewhere (I'm sure the solution is out there, just didn't find it).  

---

## 1 answers

### Answer by username_1 on 2018-01-12. Score: 1 | Accepted answer

From the look of it, and given that you already two different slicers, it look like this may be a hardware issue. I have had very similar error messages with my cheap Chinese printer and this is ultimately why **I ended up always printing via the SD card and stop worrying**.

That said, the error is about the serial connection over your USB cable. I was about to write a list of suggestions, but I found out that your manufacturer already has a troubleshooting guide for your printer [here](https://printrbot.zendesk.com/hc/en-us/articles/204376564).

Adding my own suggestions to those of Printrbot, this is the final troubleshooting guide (the linked page has detailed instructions for each step but 6 and 7):

1. Cycle power
2. Update your Operating System.
3. [Windows users only] run a VCP (Virtual Com Port) driver wizard
4. Check physical connections and swap power and usb cables.
5. Use a standard 2.0 USB input rather than USB 3.0, if applicable
6. Make sure that your printer is away from any potential source of EMI (Electro-Magnetic Interference). Microwaves ovens, many types of energy-saving lamps and power bricks/adapters are known offenders.
7. If possible, reduce the serial speed of your connection (revert if this does not solve the issue, as it may effect print speed and quality).
8. Flash your Printrboard

To clarify what these tips are all about:

* Step 1 is about making sure you don't have your computer and printer in "dirty states" (as in: with their serial buffer corrupted or stuck).
* Step 2-3 are about making sure you have as many known software bugs and problems patched as you can, as well as all the latest features. This is especially important if you are asking for help, as nobody is going to downgrade their own machines just to replicate a user' unique state.
* Step 4-7 are about diminishing the possibility that the signal in your cables gets disrupted and mangled along the way between the computer and the printer.
* Step 8 is like 2-3 but for your printer firmware, rather than your computer software.

> **Comments:**
> **username_0**: Thanks so much!  I'll give that a try when I get home and hope for the best.  
> **username_0**: I tried using the SD card option way back when, but it didn't work for whatever reason (it was probably just heating up and I didn't know it, I was very new back then).  Tried going with the SD card option again, and boom.  Success.  Not sure what the issue was, but whatever it was, it is gone when using the SD card.  Thanks again!  

---

